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 {
5050 private static final String DEFAULT_PROVIDER
5151 = "org.eclipse.jsonp.JsonProviderImpl" ;
5252
53+ /**
54+ * Default constructor.
55+ */
5356 protected JsonProvider () {
5457 }
5558
@@ -70,7 +73,7 @@ public static JsonProvider provider() {
7073 }
7174 try {
7275 Class <?> clazz = Class .forName (DEFAULT_PROVIDER );
73- return (JsonProvider ) clazz .newInstance ();
76+ return (JsonProvider ) clazz .getConstructor (). newInstance ();
7477 } catch (ClassNotFoundException x ) {
7578 throw new JsonException (
7679 "Provider " + DEFAULT_PROVIDER + " not found" , x );
Original file line number Diff line number Diff line change 2424 */
2525public class JsonParsingException extends JsonException {
2626
27+ /**
28+ * The location of the incorrect JSON.
29+ */
2730 private final JsonLocation location ;
2831
2932 /**
You can’t perform that action at this time.
0 commit comments