Skip to content

Commit 47d58a0

Browse files
committed
Moved api from javax to jakarta
Signed-off-by: Jonathan Coustick <[email protected]>
1 parent b04ab8c commit 47d58a0

36 files changed

+141
-141
lines changed

api/src/main/java/javax/json/EmptyArray.java renamed to api/src/main/java/jakarta/json/EmptyArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

17-
package javax.json;
17+
package jakarta.json;
1818

1919
import java.io.Serializable;
2020
import java.util.AbstractList;

api/src/main/java/javax/json/EmptyObject.java renamed to api/src/main/java/jakarta/json/EmptyObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

17-
package javax.json;
17+
package jakarta.json;
1818

1919
import java.io.Serializable;
2020
import java.util.AbstractMap;

api/src/main/java/javax/json/Json.java renamed to api/src/main/java/jakarta/json/Json.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

17-
package javax.json;
17+
package jakarta.json;
1818

1919
import java.io.InputStream;
2020
import java.io.OutputStream;
@@ -25,11 +25,11 @@
2525
import java.util.Collection;
2626
import java.util.Map;
2727
import java.util.Optional;
28-
import javax.json.spi.JsonProvider;
29-
import javax.json.stream.JsonGenerator;
30-
import javax.json.stream.JsonGeneratorFactory;
31-
import javax.json.stream.JsonParser;
32-
import javax.json.stream.JsonParserFactory;
28+
import jakarta.json.spi.JsonProvider;
29+
import jakarta.json.stream.JsonGenerator;
30+
import jakarta.json.stream.JsonGeneratorFactory;
31+
import jakarta.json.stream.JsonParser;
32+
import jakarta.json.stream.JsonParserFactory;
3333

3434
/**
3535
* Factory class for creating JSON processing objects.

api/src/main/java/javax/json/JsonArray.java renamed to api/src/main/java/jakarta/json/JsonArray.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

17-
package javax.json;
17+
package jakarta.json;
1818

1919
import java.util.List;
2020
import java.util.function.Function;
@@ -195,7 +195,7 @@ default <T, K extends JsonValue> List<T> getValuesAs(Function<K, T> func) {
195195
/**
196196
* Returns the {@code String} value of {@code JsonString} at the specified
197197
* position in this JSON array values. If {@code JsonString} is found,
198-
* its {@link javax.json.JsonString#getString()} is returned. Otherwise,
198+
* its {@link jakarta.json.JsonString#getString()} is returned. Otherwise,
199199
* the specified default value is returned.
200200
*
201201
* @param index index of the {@code JsonString} value
@@ -221,7 +221,7 @@ default <T, K extends JsonValue> List<T> getValuesAs(Function<K, T> func) {
221221
/**
222222
* Returns the int value of the {@code JsonNumber} at the specified position.
223223
* If the value at that position is a {@code JsonNumber},
224-
* this method returns {@link javax.json.JsonNumber#intValue()}. Otherwise
224+
* this method returns {@link jakarta.json.JsonNumber#intValue()}. Otherwise
225225
* this method returns the specified default value.
226226
*
227227
* @param index index of the {@code JsonNumber} value

api/src/main/java/javax/json/JsonArrayBuilder.java renamed to api/src/main/java/jakarta/json/JsonArrayBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

17-
package javax.json;
17+
package jakarta.json;
1818

1919
import java.math.BigDecimal;
2020
import java.math.BigInteger;
@@ -28,7 +28,7 @@
2828
* <p>Methods in this class can be chained to perform multiple values to
2929
* the array.</p>
3030
*
31-
* <p>The class {@link javax.json.Json} contains methods to create the builder
31+
* <p>The class {@link jakarta.json.Json} contains methods to create the builder
3232
* object. The example code below shows how to build an empty {@code JsonArray}
3333
* instance.
3434
* <pre>

api/src/main/java/javax/json/JsonBuilderFactory.java renamed to api/src/main/java/jakarta/json/JsonBuilderFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

17-
package javax.json;
17+
package jakarta.json;
1818

1919
import java.util.Collection;
2020
import java.util.Map;

api/src/main/java/javax/json/JsonException.java renamed to api/src/main/java/jakarta/json/JsonException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

17-
package javax.json;
17+
package jakarta.json;
1818

1919
/**
2020
* <code>JsonException</code> indicates that some exception happened during

api/src/main/java/javax/json/JsonMergePatch.java renamed to api/src/main/java/jakarta/json/JsonMergePatch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

17-
package javax.json;
17+
package jakarta.json;
1818

1919
/**
2020
* <p>This interface represents an implementation of a JSON Merge Patch

api/src/main/java/javax/json/JsonNumber.java renamed to api/src/main/java/jakarta/json/JsonNumber.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

17-
package javax.json;
17+
package jakarta.json;
1818

1919
import java.math.BigDecimal;
2020
import java.math.BigInteger;

api/src/main/java/javax/json/JsonObject.java renamed to api/src/main/java/jakarta/json/JsonObject.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

17-
package javax.json;
17+
package jakarta.json;
1818

1919
import java.util.Map;
2020

@@ -171,7 +171,7 @@ public interface JsonObject extends JsonStructure, Map<String, JsonValue> {
171171
/**
172172
* Returns the string value of the associated {@code JsonString} mapping
173173
* for the specified name. If {@code JsonString} is found, then its
174-
* {@link javax.json.JsonString#getString()} is returned. Otherwise,
174+
* {@link jakarta.json.JsonString#getString()} is returned. Otherwise,
175175
* the specified default value is returned.
176176
*
177177
* @param name whose associated value is to be returned as String
@@ -197,7 +197,7 @@ public interface JsonObject extends JsonStructure, Map<String, JsonValue> {
197197
/**
198198
* Returns the int value of the associated {@code JsonNumber} mapping
199199
* for the specified name. If {@code JsonNumber} is found, then its
200-
* {@link javax.json.JsonNumber#intValue()} is returned. Otherwise,
200+
* {@link jakarta.json.JsonNumber#intValue()} is returned. Otherwise,
201201
* the specified default value is returned.
202202
*
203203
* @param name whose associated value is to be returned as int

0 commit comments

Comments
 (0)