Skip to content

Commit 264c139

Browse files
committed
give up
1 parent b078fcd commit 264c139

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/ConvertProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@ public static Type fromString(String processorTag, String propertyName, String t
155155
}
156156
}
157157

158-
private final float ABS_MAX_EXACT_FLOAT = 0x1p24f - 1;
159158
private static boolean isExactIntegerFloat(Object value) {
159+
final float ABS_MAX_EXACT_FLOAT = 0x1p24f - 1;
160160
if (value instanceof Float == false) {
161161
return false;
162162
}
163163
float v = (Float) value;
164164
return v == (long) v && -ABS_MAX_EXACT_FLOAT <= v && v <= ABS_MAX_EXACT_FLOAT;
165165
}
166166

167-
private final double ABS_MAX_EXACT_DOUBLE = 0x1p53 - 1;
168167
private static boolean isExactIntegerDouble(Object value) {
168+
final double ABS_MAX_EXACT_DOUBLE = 0x1p53 - 1;
169169
if (value instanceof Double == false) {
170170
return false;
171171
}

0 commit comments

Comments
 (0)