Set return type from double to float
This commit is contained in:
parent
ee9a6db15a
commit
caee3c9080
1 changed files with 2 additions and 2 deletions
|
|
@ -199,7 +199,7 @@ public class StringUtils {
|
|||
previous = c;
|
||||
}
|
||||
|
||||
list.add(builder.toString());
|
||||
if (builder.length() > 0) list.add(builder.toString());
|
||||
|
||||
return list.toArray(new String[0]);
|
||||
}
|
||||
|
|
@ -306,7 +306,7 @@ public class StringUtils {
|
|||
}
|
||||
}
|
||||
|
||||
public static double parseFloat(String str, float def) {
|
||||
public static float parseFloat(String str, float def) {
|
||||
try {
|
||||
return Float.parseFloat(str);
|
||||
} catch (NumberFormatException e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue