@@ -2712,7 +2712,6 @@ protected static class ParseResult {
2712
2712
private Map <Location , JsonNode > extra = new LinkedHashMap <>();
2713
2713
private Map <Location , JsonNode > unsupported = new LinkedHashMap <>();
2714
2714
private Map <Location , String > invalidType = new LinkedHashMap <>();
2715
- private List <Location > warnings = new ArrayList <>();
2716
2715
private List <Location > missing = new ArrayList <>();
2717
2716
2718
2717
public ParseResult () {
@@ -2730,10 +2729,6 @@ public void missing(String location, String key) {
2730
2729
missing .add (new Location (location , key ));
2731
2730
}
2732
2731
2733
- public void warning (String location , String key ) {
2734
- warnings .add (new Location (location , key ));
2735
- }
2736
-
2737
2732
public void invalidType (String location , String key , String expectedType , JsonNode value ) {
2738
2733
invalidType .put (new Location (location , key ), expectedType );
2739
2734
}
@@ -2763,11 +2758,6 @@ public List<String> getMessages() {
2763
2758
String message = "attribute " + location + l .key + " is missing" ;
2764
2759
messages .add (message );
2765
2760
}
2766
- for (Location l : warnings ) {
2767
- String location = l .location .equals ("" ) ? "" : l .location + "." ;
2768
- String message = "attribute " + location +l .key ;
2769
- messages .add (message );
2770
- }
2771
2761
for (Location l : unsupported .keySet ()) {
2772
2762
String location = l .location .equals ("" ) ? "" : l .location + "." ;
2773
2763
String message = "attribute " + location + l .key + " is unsupported" ;
0 commit comments