Skip to content

Commit 04b4354

Browse files
committed
make the build jdk18 friendly (no comp warnings)
Signed-off-by: Lukas Jungmann <[email protected]>
1 parent 1b1f531 commit 04b4354

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

api/src/main/java/jakarta/json/EmptyArray.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,6 +32,9 @@ final class EmptyArray extends AbstractList<JsonValue> implements JsonArray, Ser
3232
/** for serialization */
3333
private static final long serialVersionUID = 7295439472061642859L;
3434

35+
/** Default constructor. */
36+
EmptyArray() {}
37+
3538
@Override
3639
public JsonValue get(int index) {
3740
throw new IndexOutOfBoundsException("Index: " + index);

api/src/main/java/jakarta/json/EmptyObject.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,6 +31,9 @@ final class EmptyObject extends AbstractMap<String, JsonValue> implements JsonOb
3131
/** for serialization */
3232
private static final long serialVersionUID = -1461653546889072583L;
3333

34+
/** Default constructor. */
35+
EmptyObject() {}
36+
3437
@Override
3538
public Set<Entry<String, JsonValue>> entrySet() {
3639
return Collections.<Entry<String, JsonValue>>emptySet();

api/src/main/java/jakarta/json/stream/JsonParsingException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,7 +30,7 @@ public class JsonParsingException extends JsonException {
3030
/**
3131
* The location of the incorrect JSON.
3232
*/
33-
private final JsonLocation location;
33+
private transient final JsonLocation location;
3434

3535
/**
3636
* Constructs a new runtime exception with the specified detail message.

0 commit comments

Comments
 (0)