mirror of
https://github.com/apache/jclouds.git
synced 2025-03-01 05:49:06 +00:00
Avoid use of primitive wrapper constructors
Deprecated in Java 9.
This commit is contained in:
parent
62410d31ae
commit
e423bc949e
@ -79,7 +79,7 @@ public class DatapointHandler extends ParseSax.HandlerForGeneratedRequestWithRes
|
||||
private Double doubleOrNull() {
|
||||
String string = currentText.toString().trim();
|
||||
if (!string.equals("")) {
|
||||
return new Double(string);
|
||||
return Double.valueOf(string);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ public class ElasticStackComputeServiceAdapter implements
|
||||
@Override
|
||||
public boolean apply(Image input) {
|
||||
String toParse = input.getUserMetadata().get("size");
|
||||
return toParse != null && new Float(toParse) <= size;
|
||||
return toParse != null && Float.parseFloat(toParse) <= size;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user