Skip to content

Commit 32caa54

Browse files
committed
Package renamed: javax -> jakarta
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
1 parent f950c0f commit 32caa54

38 files changed

+224
-215
lines changed

api/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.
4+
Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
55
66
This program and the accompanying materials are made available under the
77
terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,12 +23,12 @@
2323
<parent>
2424
<groupId>org.eclipse.ee4j</groupId>
2525
<artifactId>project</artifactId>
26-
<version>1.0.5</version>
26+
<version>1.0.6-SNAPSHOT</version>
2727
</parent>
2828

2929
<groupId>jakarta.json.bind</groupId>
3030
<artifactId>jakarta.json.bind-api</artifactId>
31-
<version>1.1.0-SNAPSHOT</version>
31+
<version>2.0.0-SNAPSHOT</version>
3232
<packaging>jar</packaging>
3333

3434
<name>JSON-B API</name>
@@ -90,7 +90,7 @@
9090
<non.final>false</non.final>
9191
<skip.release.tests>false</skip.release.tests>
9292
<spec.version>1.1</spec.version>
93-
<jakarta.json.version>1.1.5</jakarta.json.version>
93+
<jakarta.json.version>2.0-SNAPSHOT</jakarta.json.version>
9494
<api_package>jakarta.json.bind</api_package>
9595
<legal.doc.source>${project.basedir}/..</legal.doc.source>
9696
<vendor.name>Oracle Corporation</vendor.name>

api/src/main/java/javax/json/bind/Jsonb.java renamed to api/src/main/java/jakarta/json/bind/Jsonb.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2020 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
@@ -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.bind;
17+
package jakarta.json.bind;
1818

1919
import java.io.InputStream;
2020
import java.io.OutputStream;
@@ -30,7 +30,7 @@
3030
* <li>{@code toJson}: serialize Java objects content tree to JSON input
3131
* </ul>
3232
*
33-
* <p>Instance of this class is created using {@link javax.json.bind.JsonbBuilder JsonbBuilder}
33+
* <p>Instance of this class is created using {@link jakarta.json.bind.JsonbBuilder JsonbBuilder}
3434
* builder methods:</p>
3535
* <pre>{@code
3636
* // Example 1 - Creating Jsonb using default JsonbBuilder instance provided by default JsonbProvider
@@ -76,14 +76,14 @@
7676
* <p><b>Encoding</b></p>
7777
* <blockquote>
7878
* In deserialization operations ({@code fromJson}), encoding of JSON data is detected automatically.
79-
* Use the {@link javax.json.bind.JsonbConfig JsonbConfig} API to configure expected
79+
* Use the {@link jakarta.json.bind.JsonbConfig JsonbConfig} API to configure expected
8080
* input encoding used within deserialization operations. Client applications are
8181
* expected to supply a valid character encoding as defined in the
8282
* <a href="http://tools.ietf.org/html/rfc7159">RFC 7159</a> and supported by Java Platform.
8383
*
8484
* In serialization operations ({@code toJson}), UTF-8 encoding is used by default
8585
* for writing JSON data.
86-
* Use the {@link javax.json.bind.JsonbConfig JsonbConfig} API to configure the
86+
* Use the {@link jakarta.json.bind.JsonbConfig JsonbConfig} API to configure the
8787
* output encoding used within serialization operations. Client applications are
8888
* expected to supply a valid character encoding as defined in the
8989
* <a href="http://tools.ietf.org/html/rfc7159">RFC 7159</a> and supported by Java Platform.

api/src/main/java/javax/json/bind/JsonbBuilder.java renamed to api/src/main/java/jakarta/json/bind/JsonbBuilder.java

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2020 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
@@ -14,14 +14,15 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

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

19-
import javax.json.bind.spi.JsonbProvider;
20-
import javax.json.spi.JsonProvider;
19+
import jakarta.json.bind.spi.JsonbProvider;
20+
21+
import jakarta.json.spi.JsonProvider;
2122

2223
/**
2324
* JsonbBuilder class provides the client's entry point to the JSON Binding
24-
* API. It builds {@link javax.json.bind.Jsonb Jsonb} instances based on all
25+
* API. It builds {@link jakarta.json.bind.Jsonb Jsonb} instances based on all
2526
* parameters and configuration provided before calling {@code build()} method.
2627
*
2728
* For most use-cases, only one instance of JsonbBuilder is required within the
@@ -35,10 +36,10 @@ public interface JsonbBuilder {
3536

3637
/**
3738
* Set configuration which will be set to the newly created
38-
* {@link javax.json.bind.Jsonb Jsonb} instance.
39+
* {@link jakarta.json.bind.Jsonb Jsonb} instance.
3940
*
4041
* @param config
41-
* Configuration for {@link javax.json.bind.Jsonb Jsonb} instance.
42+
* Configuration for {@link jakarta.json.bind.Jsonb Jsonb} instance.
4243
*
4344
* @return This {@code JsonbBuilder} instance.
4445
*/
@@ -49,60 +50,60 @@ public interface JsonbBuilder {
4950
* to be used for all <a href="https://projects.eclipse.org/projects/ee4j.jsonp/">JSON-P</a> related operations.
5051
*
5152
* @param jsonpProvider
52-
* {@link javax.json.spi.JsonProvider JsonProvider} instance
53+
* {@link jakarta.json.spi.JsonProvider JsonProvider} instance
5354
* to be used by Jsonb to lookup JSON-P implementation.
5455
*
5556
* @return This {@code JsonbBuilder} instance.
5657
*/
5758
JsonbBuilder withProvider(JsonProvider jsonpProvider);
5859

5960
/**
60-
* Returns a new instance of {@link javax.json.bind.Jsonb Jsonb} based on the
61+
* Returns a new instance of {@link jakarta.json.bind.Jsonb Jsonb} based on the
6162
* parameters and configuration specified previously in this builder.
6263
*
63-
* @return Jsonb A new instance of {@link javax.json.bind.Jsonb Jsonb} class.
64+
* @return Jsonb A new instance of {@link jakarta.json.bind.Jsonb Jsonb} class.
6465
* Always a non-null valid object.
6566
*
66-
* @throws javax.json.bind.JsonbException If an error was encountered while
67+
* @throws jakarta.json.bind.JsonbException If an error was encountered while
6768
* creating the Jsonb instance, such as (but not limited to) no JSON
6869
* Binding provider found, or classes provide conflicting annotations.
6970
*
7071
* @throws IllegalArgumentException If there's an error processing the set
7172
* parameters, such as the non-null parameter is assigned null value, or
7273
* unrecognized property is set in
73-
* {@link javax.json.bind.JsonbConfig JsonbConfig}.
74+
* {@link jakarta.json.bind.JsonbConfig JsonbConfig}.
7475
*/
7576
Jsonb build();
7677

7778
/**
78-
* Create a new {@link javax.json.bind.Jsonb} instance using the default
79+
* Create a new {@link jakarta.json.bind.Jsonb} instance using the default
7980
* {@code JsonbBuilder} implementation provided as returned from
80-
* {@link javax.json.bind.spi.JsonbProvider#provider()} method.
81+
* {@link jakarta.json.bind.spi.JsonbProvider#provider()} method.
8182
*
82-
* @return new {@link javax.json.bind.Jsonb Jsonb} instance.
83+
* @return new {@link jakarta.json.bind.Jsonb Jsonb} instance.
8384
*/
8485
static Jsonb create() {
8586
return JsonbProvider.provider().create().build();
8687
}
8788

8889
/**
89-
* Create a new {@link javax.json.bind.Jsonb} instance using the default
90+
* Create a new {@link jakarta.json.bind.Jsonb} instance using the default
9091
* {@code JsonbBuilder} implementation provided as returned from
91-
* {@link javax.json.bind.spi.JsonbProvider#provider()} method, configured
92+
* {@link jakarta.json.bind.spi.JsonbProvider#provider()} method, configured
9293
* with provided configuration.
9394
*
9495
* @param config
95-
* Provided configuration for {@link javax.json.bind.Jsonb} instance.
96+
* Provided configuration for {@link jakarta.json.bind.Jsonb} instance.
9697
*
97-
* @return new {@link javax.json.bind.Jsonb Jsonb} instance.
98+
* @return new {@link jakarta.json.bind.Jsonb Jsonb} instance.
9899
*/
99100
static Jsonb create(JsonbConfig config) {
100101
return JsonbProvider.provider().create().withConfig(config).build();
101102
}
102103

103104
/**
104105
* Create a new {@code JsonbBuilder} instance as returned by the default
105-
* {@link javax.json.bind.spi.JsonbProvider#provider()} method.
106+
* {@link jakarta.json.bind.spi.JsonbProvider#provider()} method.
106107
*
107108
* @return new {@code JsonbBuilder} instance.
108109
*/
@@ -112,7 +113,7 @@ static JsonbBuilder newBuilder() {
112113

113114
/**
114115
* Create a new {@code JsonbBuilder} instance as returned by
115-
* {@link javax.json.bind.spi.JsonbProvider#provider(String)}
116+
* {@link jakarta.json.bind.spi.JsonbProvider#provider(String)}
116117
* method.
117118
*
118119
* @param providerName
@@ -129,7 +130,7 @@ static JsonbBuilder newBuilder(final String providerName) {
129130
* {@code provider#create} call.
130131
*
131132
* @param provider
132-
* {@link javax.json.spi.JsonProvider JsonProvider} instance
133+
* {@link jakarta.json.spi.JsonProvider JsonProvider} instance
133134
* used for creating {@code JsonBuilder instances}.
134135
*
135136
* @return new {@code JsonbBuilder} instance.

api/src/main/java/javax/json/bind/JsonbConfig.java renamed to api/src/main/java/jakarta/json/bind/JsonbConfig.java

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2020 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
@@ -14,13 +14,16 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
*/
1616

17-
package javax.json.bind;
17+
package jakarta.json.bind;
18+
19+
import jakarta.json.bind.adapter.JsonbAdapter;
20+
21+
import jakarta.json.bind.config.PropertyNamingStrategy;
22+
import jakarta.json.bind.config.PropertyVisibilityStrategy;
23+
24+
import jakarta.json.bind.serializer.JsonbDeserializer;
25+
import jakarta.json.bind.serializer.JsonbSerializer;
1826

19-
import javax.json.bind.adapter.JsonbAdapter;
20-
import javax.json.bind.config.PropertyNamingStrategy;
21-
import javax.json.bind.config.PropertyVisibilityStrategy;
22-
import javax.json.bind.serializer.JsonbDeserializer;
23-
import javax.json.bind.serializer.JsonbSerializer;
2427
import java.lang.reflect.Array;
2528
import java.util.Collections;
2629
import java.util.HashMap;
@@ -38,21 +41,21 @@
3841
* Some providers may support additional properties.
3942
* <dl>
4043
* <dt><code>jsonb.to.json.formatted</code> - java.lang.Boolean
41-
* <dd>Controls whether or not the {@link javax.json.bind.Jsonb Jsonb} {@code toJson()}
44+
* <dd>Controls whether or not the {@link jakarta.json.bind.Jsonb Jsonb} {@code toJson()}
4245
* methods will format the resulting JSON data with line breaks and indentation. A
4346
* true value for this property indicates human readable indented
4447
* data, while a false value indicates unformatted data.
4548
* Default value is false (unformatted) if this property is not specified.
4649
* </dl>
4750
* <dl>
4851
* <dt><code>jsonb.to.json.encoding</code> - java.lang.String
49-
* <dd>The {@link javax.json.bind.Jsonb Jsonb} serialization {@code toJson()} methods
52+
* <dd>The {@link jakarta.json.bind.Jsonb Jsonb} serialization {@code toJson()} methods
5053
* will default to this property for encoding of output JSON data. Default
5154
* value is 'UTF-8' if this property is not specified.
5255
* </dl>
5356
* <dl>
5457
* <dt><code>jsonb.from.json.encoding</code> - java.lang.String
55-
* <dd>The {@link javax.json.bind.Jsonb Jsonb} deserialization {@code fromJson()}
58+
* <dd>The {@link jakarta.json.bind.Jsonb Jsonb} deserialization {@code fromJson()}
5659
* methods will default to this property encoding of input JSON data if the
5760
* encoding cannot be detected.
5861
* </dl>

api/src/main/java/javax/json/bind/JsonbException.java renamed to api/src/main/java/jakarta/json/bind/JsonbException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2020 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
@@ -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.bind;
17+
package jakarta.json.bind;
1818

1919
/**
2020
* Root class for all JSON Binding exceptions.

api/src/main/java/javax/json/bind/adapter/JsonbAdapter.java renamed to api/src/main/java/jakarta/json/bind/adapter/JsonbAdapter.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2020 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
@@ -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.bind.adapter;
17+
package jakarta.json.bind.adapter;
1818

1919
/**
2020
* <p>Allows to define custom mapping for given java type. The target type could be string or some
@@ -26,8 +26,8 @@
2626
* <p>On deserialization it works the reverse way: JSON data are deserialized into "Adapted" type which is converted
2727
* to "Original" type after that.</p>
2828
*
29-
* <p>Adapters are registered using {@link javax.json.bind.JsonbConfig#withAdapters(JsonbAdapter[])} method
30-
* or using {@link javax.json.bind.annotation.JsonbTypeAdapter} annotation on class field.</p>
29+
* <p>Adapters are registered using {@link jakarta.json.bind.JsonbConfig#withAdapters(JsonbAdapter[])} method
30+
* or using {@link jakarta.json.bind.annotation.JsonbTypeAdapter} annotation on class field.</p>
3131
*
3232
* @param <Original> The type that JSONB doesn't know how to handle
3333
* @param <Adapted> The type that JSONB knows how to handle out of the box
@@ -60,8 +60,8 @@
6060
* }
6161
* </pre>
6262
*
63-
* @see javax.json.bind.JsonbConfig
64-
* @see javax.json.bind.annotation.JsonbTypeAdapter
63+
* @see jakarta.json.bind.JsonbConfig
64+
* @see jakarta.json.bind.annotation.JsonbTypeAdapter
6565
* @since JSON Binding 1.0
6666
*/
6767
public interface JsonbAdapter<Original, Adapted> {

api/src/main/java/javax/json/bind/adapter/package-info.java renamed to api/src/main/java/jakarta/json/bind/adapter/package-info.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2020 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
@@ -21,4 +21,4 @@
2121
*
2222
* @since JSON Binding 1.0
2323
*/
24-
package javax.json.bind.adapter;
24+
package jakarta.json.bind.adapter;

api/src/main/java/javax/json/bind/annotation/JsonbAnnotation.java renamed to api/src/main/java/jakarta/json/bind/annotation/JsonbAnnotation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2020 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
@@ -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.bind.annotation;
17+
package jakarta.json.bind.annotation;
1818

1919
import java.lang.annotation.Documented;
2020
import java.lang.annotation.Retention;

api/src/main/java/javax/json/bind/annotation/JsonbCreator.java renamed to api/src/main/java/jakarta/json/bind/annotation/JsonbCreator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2020 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
@@ -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.bind.annotation;
17+
package jakarta.json.bind.annotation;
1818

1919
import java.lang.annotation.ElementType;
2020
import java.lang.annotation.Retention;

api/src/main/java/javax/json/bind/annotation/JsonbDateFormat.java renamed to api/src/main/java/jakarta/json/bind/annotation/JsonbDateFormat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2020 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
@@ -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.bind.annotation;
17+
package jakarta.json.bind.annotation;
1818

1919
import java.lang.annotation.ElementType;
2020
import java.lang.annotation.Retention;

0 commit comments

Comments
 (0)