added benchmark subproject
This commit is contained in:
@@ -218,9 +218,9 @@ public class JSONParser extends ValueParser {
|
||||
try {
|
||||
String text = parseNumber(stream);
|
||||
if (text.indexOf('.') > 0) {
|
||||
floatValue(Double.valueOf(text));
|
||||
floatValue(Double.parseDouble(text));
|
||||
} else {
|
||||
integerValue(Long.valueOf(text));
|
||||
integerValue(Long.parseLong(text));
|
||||
}
|
||||
continue;
|
||||
} catch (NumberFormatException nfe) {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
package net.woggioni.worth.serialization.json;
|
||||
package net.woggioni.worth.utils;
|
||||
|
||||
public class Chronometer {
|
||||
|
@@ -199,7 +199,7 @@ class ListObjectValue implements ObjectValue {
|
||||
|
||||
@Override
|
||||
public void put(String key, Value value2Put) {
|
||||
value.add(new ObjectEntry(key, value2Put));
|
||||
value.add(new ObjectEntry<>(key, value2Put));
|
||||
}
|
||||
|
||||
|
||||
|
@@ -97,10 +97,6 @@ public interface Value {
|
||||
public final ObjectValue.Implementation objectValueImplementation = ObjectValue.Implementation.valueOf(
|
||||
System.getProperty(ObjectValue.class.getName() + ".implementation", "TreeMap"));
|
||||
|
||||
@Builder.Default
|
||||
public final boolean useReferences = Boolean.valueOf(
|
||||
System.getProperty(Value.class.getName() + ".useReferences", "false"));
|
||||
|
||||
@Builder.Default
|
||||
public final int maxDepth =
|
||||
Integer.parseInt(System.getProperty(Value.class.getName() + ".maxDepth", "1048576"));
|
||||
|
Reference in New Issue
Block a user