Skip to content

Commit 6375003

Browse files
committed
Fix compilation issue
1 parent eed8227 commit 6375003

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util/OpenAPIDeserializer.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,7 +2712,6 @@ protected static class ParseResult {
27122712
private Map<Location, JsonNode> extra = new LinkedHashMap<>();
27132713
private Map<Location, JsonNode> unsupported = new LinkedHashMap<>();
27142714
private Map<Location, String> invalidType = new LinkedHashMap<>();
2715-
private List<Location> warnings = new ArrayList<>();
27162715
private List<Location> missing = new ArrayList<>();
27172716

27182717
public ParseResult() {
@@ -2730,10 +2729,6 @@ public void missing(String location, String key) {
27302729
missing.add(new Location(location, key));
27312730
}
27322731

2733-
public void warning(String location, String key) {
2734-
warnings.add(new Location(location, key));
2735-
}
2736-
27372732
public void invalidType(String location, String key, String expectedType, JsonNode value) {
27382733
invalidType.put(new Location(location, key), expectedType);
27392734
}
@@ -2763,11 +2758,6 @@ public List<String> getMessages() {
27632758
String message = "attribute " + location + l.key + " is missing";
27642759
messages.add(message);
27652760
}
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-
}
27712761
for (Location l : unsupported.keySet()) {
27722762
String location = l.location.equals("") ? "" : l.location + ".";
27732763
String message = "attribute " + location + l.key + " is unsupported";

0 commit comments

Comments
 (0)