Skip to content

Commit 7c53efb

Browse files
committed
Solve conflicts
Signed-off-by: Jorge Bescos Gascon <[email protected]>
2 parents fbc40b5 + 21733cf commit 7c53efb

File tree

15 files changed

+119
-366
lines changed

15 files changed

+119
-366
lines changed

.github/workflows/maven.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2021 Contributors to the Eclipse Foundation
2+
# Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation
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
@@ -16,20 +16,24 @@ on:
1616
pull_request:
1717
push:
1818

19+
concurrency:
20+
group: ${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
build:
2125
name: Test on JDK ${{ matrix.java_version }}
2226
runs-on: ubuntu-latest
2327

2428
strategy:
2529
matrix:
26-
java_version: [ 11, 17-ea ]
30+
java_version: [ 11, 17, 21 ]
2731

2832
steps:
2933
- name: Checkout for build
30-
uses: actions/checkout@v2.3.4
34+
uses: actions/checkout@v3
3135
- name: Set up JDK
32-
uses: actions/setup-java@v2
36+
uses: actions/setup-java@v3
3337
with:
3438
distribution: 'zulu'
3539
java-version: ${{ matrix.java_version }}

api/pom.xml

+23-20
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) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
4+
Copyright (c) 2011, 2023 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,14 +23,14 @@
2323
<parent>
2424
<groupId>org.eclipse.ee4j</groupId>
2525
<artifactId>project</artifactId>
26-
<version>1.0.7</version>
26+
<version>1.0.8</version>
2727
<relativePath/>
2828
</parent>
2929

3030
<groupId>jakarta.json</groupId>
3131
<artifactId>jakarta.json-api</artifactId>
3232

33-
<version>2.1.1-SNAPSHOT</version>
33+
<version>2.1.4-SNAPSHOT</version>
3434
<name>Jakarta JSON Processing API</name>
3535
<description>Jakarta JSON Processing defines a Java(R) based framework for parsing, generating, transforming, and querying JSON documents.</description>
3636
<url>https://github.com/eclipse-ee4j/jsonp</url>
@@ -83,7 +83,7 @@
8383
<spotbugs.exclude>${project.basedir}/../etc/spotbugs-exclude.xml</spotbugs.exclude>
8484
<spotbugs.skip>false</spotbugs.skip>
8585
<spotbugs.threshold>Low</spotbugs.threshold>
86-
<spotbugs.version>4.3.0</spotbugs.version>
86+
<spotbugs.version>4.7.3.5</spotbugs.version>
8787

8888
<non.final>false</non.final>
8989
<extension.name>jakarta.json</extension.name>
@@ -95,20 +95,15 @@
9595
<build>
9696
<pluginManagement>
9797
<plugins>
98-
<plugin>
99-
<groupId>org.commonjava.maven.plugins</groupId>
100-
<artifactId>directory-maven-plugin</artifactId>
101-
<version>0.3.1</version>
102-
</plugin>
10398
<plugin>
10499
<groupId>org.codehaus.mojo</groupId>
105100
<artifactId>buildnumber-maven-plugin</artifactId>
106-
<version>1.4</version>
101+
<version>3.2.0</version>
107102
</plugin>
108103
<plugin>
109104
<groupId>org.codehaus.mojo</groupId>
110105
<artifactId>build-helper-maven-plugin</artifactId>
111-
<version>3.2.0</version>
106+
<version>3.4.0</version>
112107
</plugin>
113108
<plugin>
114109
<groupId>org.glassfish.copyright</groupId>
@@ -118,7 +113,7 @@
118113
<plugin>
119114
<groupId>org.apache.maven.plugins</groupId>
120115
<artifactId>maven-compiler-plugin</artifactId>
121-
<version>3.8.1</version>
116+
<version>3.11.0</version>
122117
</plugin>
123118
<plugin>
124119
<groupId>org.glassfish.build</groupId>
@@ -128,7 +123,7 @@
128123
<plugin>
129124
<groupId>org.apache.felix</groupId>
130125
<artifactId>maven-bundle-plugin</artifactId>
131-
<version>5.1.1</version>
126+
<version>5.1.9</version>
132127
<configuration>
133128
<instructions>
134129
<_noextraheaders>true</_noextraheaders>
@@ -138,22 +133,22 @@
138133
<plugin>
139134
<groupId>org.apache.maven.plugins</groupId>
140135
<artifactId>maven-jar-plugin</artifactId>
141-
<version>3.2.0</version>
136+
<version>3.3.0</version>
142137
</plugin>
143138
<plugin>
144139
<groupId>org.apache.maven.plugins</groupId>
145140
<artifactId>maven-source-plugin</artifactId>
146-
<version>3.2.1</version>
141+
<version>3.3.0</version>
147142
</plugin>
148143
<plugin>
149144
<groupId>org.apache.maven.plugins</groupId>
150145
<artifactId>maven-javadoc-plugin</artifactId>
151-
<version>3.3.0</version>
146+
<version>3.5.0</version>
152147
</plugin>
153148
<plugin>
154149
<groupId>org.apache.maven.plugins</groupId>
155150
<artifactId>maven-enforcer-plugin</artifactId>
156-
<version>3.0.0</version>
151+
<version>3.4.0</version>
157152
</plugin>
158153
<plugin>
159154
<groupId>com.github.spotbugs</groupId>
@@ -270,13 +265,12 @@
270265
<artifactId>maven-compiler-plugin</artifactId>
271266
<configuration>
272267
<release>9</release>
268+
<createMissingPackageInfoClass>false</createMissingPackageInfoClass>
273269
<compilerArgs>
274270
<arg>-Xlint:all</arg>
275271
<arg>-Xdoclint:all</arg>
276-
<arg>-Werror</arg>
277272
</compilerArgs>
278273
<showDeprecation>true</showDeprecation>
279-
<showWarnings>true</showWarnings>
280274
</configuration>
281275
<executions>
282276
<execution>
@@ -337,6 +331,16 @@
337331
!org.eclipse.parsson,
338332
*
339333
</Import-Package>
334+
<!-- optional to allow usage with hk2 resource locator as a fallback -->
335+
<Require-Capability><![CDATA[
336+
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)
337+
(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
338+
osgi.serviceloader;
339+
filter:="(osgi.serviceloader=jakarta.json.spi.JsonProvider)";
340+
osgi.serviceloader="jakarta.json.spi.JsonProvider";
341+
cardinality:=multiple;resolution:=optional
342+
]]>
343+
</Require-Capability>
340344
</instructions>
341345
</configuration>
342346
<executions>
@@ -402,7 +406,6 @@ Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">
402406
<groupId>com.github.spotbugs</groupId>
403407
<artifactId>spotbugs-maven-plugin</artifactId>
404408
<configuration>
405-
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
406409
<fork>true</fork>
407410
<excludeFilterFile>${spotbugs.exclude}</excludeFilterFile>
408411
<failThreshold>High</failThreshold>

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

+4-1
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

+4-1
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/Json.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2024 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
@@ -255,7 +255,7 @@ public static JsonArrayBuilder createArrayBuilder(JsonArray array) {
255255

256256
/**
257257
* Creates a JSON array builder, initialized with the content of specified {@code collection}.
258-
* If the @{code collection} contains {@link Optional}s then resulting JSON array builder
258+
* If the {@code collection} contains {@link Optional}s then resulting JSON array builder
259259
* contains the value from the {@code collection} only if the {@link Optional} is not empty.
260260
*
261261
* @param collection the initial data for the builder

0 commit comments

Comments
 (0)