[java] add useNullForUnknownEnumValue option (#633)

This commit is contained in:
Jérémie Bresson
2018-07-26 11:00:45 +02:00
committed by GitHub
parent 44d419c1a1
commit a8e8acead7
282 changed files with 449 additions and 419 deletions

View File

@@ -64,7 +64,7 @@ public class EnumArrays {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
}
@@ -104,7 +104,7 @@ public class EnumArrays {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
}

View File

@@ -55,7 +55,7 @@ public enum EnumClass {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
}

View File

@@ -65,7 +65,7 @@ public class EnumTest {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
}
@@ -107,7 +107,7 @@ public class EnumTest {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
}
@@ -147,7 +147,7 @@ public class EnumTest {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
}
@@ -187,7 +187,7 @@ public class EnumTest {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
}

View File

@@ -73,7 +73,7 @@ public class MapTest {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
}

View File

@@ -85,7 +85,7 @@ public class Order {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
}

View File

@@ -55,7 +55,7 @@ public enum OuterEnum {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
}

View File

@@ -103,7 +103,7 @@ public class Pet {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
}