Skip to content

Commit e528996

Browse files
committed
no var variable type for compatibility with 1.8
1 parent ad57f00 commit e528996

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/cedarsoftware/util/io/JsonWriter.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,7 @@ public void writeEnumSet(final EnumSet<?> enumSet, boolean showType) throws IOEx
22372237
Class elementType = (Class) getValueByReflect(enumSet, elementTypeField);
22382238
writeJsonUtf8String(elementType.getName(), out);
22392239

2240-
var mapOfFileds = MetaUtils.getDeepDeclaredFields(elementType);
2240+
Map<String, Field> mapOfFileds = MetaUtils.getDeepDeclaredFields(elementType);
22412241
//Field[] enumFields = elementType.getDeclaredFields();
22422242
int enumFieldsCount = mapOfFileds.size();
22432243

@@ -2253,7 +2253,7 @@ public void writeEnumSet(final EnumSet<?> enumSet, boolean showType) throws IOEx
22532253
}
22542254

22552255
boolean firstInSet = true;
2256-
for (var e : enumSet) {
2256+
for (Enum e : enumSet) {
22572257
if (!firstInSet)
22582258
{
22592259
out.write(",");
@@ -2272,7 +2272,7 @@ public void writeEnumSet(final EnumSet<?> enumSet, boolean showType) throws IOEx
22722272
{
22732273
boolean firstInEntry = true;
22742274
out.write('{');
2275-
for (var f : mapOfFileds.values())
2275+
for (Field f : mapOfFileds.values())
22762276
{
22772277
firstInEntry = writeField(e, firstInEntry, f.getName(), f, false);
22782278
}

0 commit comments

Comments
 (0)