Skip to content

Commit 7fec575

Browse files
Simplify JsonTypeInfo stub
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent 158a75e commit 7fec575

File tree

1 file changed

+2
-8
lines changed
  • java/ql/test/stubs/jackson-databind-2.10/com/fasterxml/jackson/annotation

1 file changed

+2
-8
lines changed

java/ql/test/stubs/jackson-databind-2.10/com/fasterxml/jackson/annotation/JsonTypeInfo.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@ public static enum Id {
1414
CLASS("@class"),
1515
MINIMAL_CLASS("@c");
1616

17-
private final String _defaultPropertyName;
17+
private Id(String defProp) { }
1818

19-
private Id(String defProp) {
20-
this._defaultPropertyName = defProp;
21-
}
22-
23-
public String getDefaultPropertyName() {
24-
return this._defaultPropertyName;
25-
}
19+
public String getDefaultPropertyName() { return null; }
2620
}
2721
}

0 commit comments

Comments
 (0)