Skip to content

Commit 6ea9d3a

Browse files
Milchreisjazzido
authored andcommitted
Removes unnecessary code (tabulapdf#379)
1 parent 2ab8579 commit 6ea9d3a

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

src/main/java/technology/tabula/CommandLineApp.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -284,16 +284,8 @@ public static List<Float> parseFloatList(String option) throws ParseException {
284284
String[] f = option.split(",");
285285
List<Float> rv = new ArrayList<>();
286286
try {
287-
for (int i = 0; i < f.length; i++) {
288-
final String element = f[i];
289-
290-
if (element.startsWith("%")) {
291-
292-
rv.add(Float.parseFloat(element));
293-
} else {
294-
rv.add(Float.parseFloat(element));
295-
}
296-
287+
for (final String element : f) {
288+
rv.add(Float.parseFloat(element));
297289
}
298290
return rv;
299291
} catch (NumberFormatException e) {

0 commit comments

Comments
 (0)