@@ -128,11 +128,11 @@ private static final Boolean like(Object o1, Object o2) {
128128 private static final Object add (Object o1 , Object o2 ) {
129129 if (isLong (o1 )) {
130130 if (isLong (o2 )) return toLong (o1 ) + toLong (o2 );
131- else if (isDouble (o2 )) return new Double (o1 .toString ()) + toDouble (o2 );
131+ else if (isDouble (o2 )) return Double . valueOf (o1 .toString ()) + toDouble (o2 );
132132 else return null ;
133133 } else if (isDouble (o1 )) {
134134 if (isDouble (o2 )) return toDouble (o1 ) + toDouble (o2 );
135- else if (isLong (o2 )) return toDouble (o1 ) + new Double (o2 .toString ());
135+ else if (isLong (o2 )) return toDouble (o1 ) + Double . valueOf (o2 .toString ());
136136 else return null ;
137137 }
138138 return null ;
@@ -158,11 +158,11 @@ private static final double toDouble(Object o) {
158158 private static final Object subtract (Object o1 , Object o2 ) {
159159 if (isLong (o1 )) {
160160 if (isLong (o2 )) return toLong (o1 ) - toLong (o2 );
161- else if (isDouble (o2 )) return new Double (o1 .toString ()) - toDouble (o2 );
161+ else if (isDouble (o2 )) return Double . valueOf (o1 .toString ()) - toDouble (o2 );
162162 else return null ;
163163 } else if (isDouble (o1 )) {
164164 if (isDouble (o2 )) return toDouble (o1 ) - toDouble (o2 );
165- else if (isLong (o2 )) return toDouble (o1 ) - new Double (o2 .toString ());
165+ else if (isLong (o2 )) return toDouble (o1 ) - Double . valueOf (o2 .toString ());
166166 else return null ;
167167 }
168168 return null ;
@@ -171,11 +171,11 @@ private static final Object subtract(Object o1, Object o2) {
171171 private static final Object multiply (Object o1 , Object o2 ) {
172172 if (isLong (o1 )) {
173173 if (isLong (o2 )) return toLong (o1 ) * toLong (o2 );
174- else if (isDouble (o2 )) return new Double (o1 .toString ()) * toDouble (o2 );
174+ else if (isDouble (o2 )) return Double . valueOf (o1 .toString ()) * toDouble (o2 );
175175 else return null ;
176176 } else if (isDouble (o1 )) {
177177 if (isDouble (o2 )) return toDouble (o1 ) * toDouble (o2 );
178- else if (isLong (o2 )) return toDouble (o1 ) * new Double (o2 .toString ());
178+ else if (isLong (o2 )) return toDouble (o1 ) * Double . valueOf (o2 .toString ());
179179 else return null ;
180180 }
181181 return null ;
@@ -184,11 +184,11 @@ private static final Object multiply(Object o1, Object o2) {
184184 private static final Object divide (Object o1 , Object o2 ) {
185185 if (isLong (o1 )) {
186186 if (isLong (o2 )) return toLong (o1 ) / toLong (o2 );
187- else if (isDouble (o2 )) return new Double (o1 .toString ()) / toDouble (o2 );
187+ else if (isDouble (o2 )) return Double . valueOf (o1 .toString ()) / toDouble (o2 );
188188 else return null ;
189189 } else if (isDouble (o1 )) {
190190 if (isDouble (o2 )) return toDouble (o1 ) / toDouble (o2 );
191- else if (isLong (o2 )) return toDouble (o1 ) / new Double (o2 .toString ());
191+ else if (isLong (o2 )) return toDouble (o1 ) / Double . valueOf (o2 .toString ());
192192 else return null ;
193193 }
194194 return null ;
@@ -205,11 +205,11 @@ private static final Boolean in(Object o1, Object o2) {
205205 private static final Boolean greaterThan (Object o1 , Object o2 ) {
206206 if (isLong (o1 )) {
207207 if (isLong (o2 )) return toLong (o1 ) > toLong (o2 );
208- else if (isDouble (o2 )) return new Double (o1 .toString ()) > toDouble (o2 );
208+ else if (isDouble (o2 )) return Double . valueOf (o1 .toString ()) > toDouble (o2 );
209209 else return null ;
210210 } else if (isDouble (o1 )) {
211211 if (isDouble (o2 )) return toDouble (o1 ) > toDouble (o2 );
212- else if (isLong (o2 )) return toDouble (o1 ) > new Double (o2 .toString ());
212+ else if (isLong (o2 )) return toDouble (o1 ) > Double . valueOf (o2 .toString ());
213213 else return null ;
214214 }
215215 return null ;
0 commit comments