summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/main/java')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/query/IntItem.java2
-rw-r--r--container-search/src/main/java/com/yahoo/search/yql/ProgramParser.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/query/IntItem.java b/container-search/src/main/java/com/yahoo/prelude/query/IntItem.java
index 93b4687a2da..2e24937856c 100644
--- a/container-search/src/main/java/com/yahoo/prelude/query/IntItem.java
+++ b/container-search/src/main/java/com/yahoo/prelude/query/IntItem.java
@@ -157,7 +157,7 @@ public class IntItem extends TermItem {
catch (NumberFormatException e) {
return new BigInteger(numberString);
}
- return new Double(numberString);
+ return Double.valueOf(numberString);
}
/** Sets the number expression of this - a number or range */
diff --git a/container-search/src/main/java/com/yahoo/search/yql/ProgramParser.java b/container-search/src/main/java/com/yahoo/search/yql/ProgramParser.java
index b7dc080b52a..ea4a07508b6 100644
--- a/container-search/src/main/java/com/yahoo/search/yql/ProgramParser.java
+++ b/container-search/src/main/java/com/yahoo/search/yql/ProgramParser.java
@@ -1371,7 +1371,7 @@ final class ProgramParser {
case yqlplusParser.INT:
return Integer.valueOf(text);
case yqlplusParser.FLOAT:
- return new Double(text);
+ return Double.valueOf(text);
case yqlplusParser.STRING:
return StringUnescaper.unquote(text);
case yqlplusParser.TRUE: