File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
api/src/main/java/jakarta/json Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ public abstract class JsonProvider {
50
50
private static final String DEFAULT_PROVIDER
51
51
= "org.eclipse.jsonp.JsonProviderImpl" ;
52
52
53
+ /**
54
+ * Default constructor.
55
+ */
53
56
protected JsonProvider () {
54
57
}
55
58
@@ -70,7 +73,7 @@ public static JsonProvider provider() {
70
73
}
71
74
try {
72
75
Class <?> clazz = Class .forName (DEFAULT_PROVIDER );
73
- return (JsonProvider ) clazz .newInstance ();
76
+ return (JsonProvider ) clazz .getConstructor (). newInstance ();
74
77
} catch (ClassNotFoundException x ) {
75
78
throw new JsonException (
76
79
"Provider " + DEFAULT_PROVIDER + " not found" , x );
Original file line number Diff line number Diff line change 24
24
*/
25
25
public class JsonParsingException extends JsonException {
26
26
27
+ /**
28
+ * The location of the incorrect JSON.
29
+ */
27
30
private final JsonLocation location ;
28
31
29
32
/**
You can’t perform that action at this time.
0 commit comments