Skip to content

Commit af8bf60

Browse files
authored
Merge branch 'main' into marcono1234/nesting-limit
2 parents ecae000 + 18cf79a commit af8bf60

File tree

11 files changed

+44
-41
lines changed

11 files changed

+44
-41
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
22+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2323
- name: "Set up JDK ${{ matrix.java }}"
2424
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
2525
with:
@@ -35,9 +35,9 @@ jobs:
3535
runs-on: ubuntu-latest
3636

3737
steps:
38-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
38+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3939
- name: "Set up GraalVM"
40-
uses: graalvm/setup-graalvm@2f25c0caae5b220866f732832d5e3e29ff493338 # v1.2.1
40+
uses: graalvm/setup-graalvm@2911b2304bee2c2f59b9a67bf45f025a6b6de4b1 # v1.2.2
4141
with:
4242
java-version: '17'
4343
distribution: 'graalvm'
@@ -54,7 +54,7 @@ jobs:
5454
runs-on: ubuntu-latest
5555

5656
steps:
57-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
57+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5858
- name: "Set up JDK 17"
5959
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
6060
with:

.github/workflows/check-android-compatibility.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
17+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1818

1919
- name: Set up JDK 11
2020
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1

.github/workflows/check-api-compatibility.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Check out old version
22-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
22+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2323
with:
2424
ref: ${{ github.event.pull_request.base.sha }}
2525
path: 'gson-old-japicmp'
@@ -40,7 +40,7 @@ jobs:
4040
mvn --batch-mode --no-transfer-progress install -DskipTests
4141
4242
- name: Check out new version
43-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
43+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4444

4545
- name: Check API compatibility
4646
id: check-compatibility

.github/workflows/codeql-analysis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
28+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2929

3030
- name: Set up JDK 17
3131
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
@@ -36,7 +36,7 @@ jobs:
3636

3737
# Initializes the CodeQL tools for scanning
3838
- name: Initialize CodeQL
39-
uses: github/codeql-action/init@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
39+
uses: github/codeql-action/init@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
4040
with:
4141
languages: ${{ matrix.language }}
4242
# Run all security queries and maintainability and reliability queries
@@ -50,4 +50,4 @@ jobs:
5050
mvn compile --batch-mode --no-transfer-progress
5151
5252
- name: Perform CodeQL Analysis
53-
uses: github/codeql-action/analyze@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
53+
uses: github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11

gson/bnd.bnd

-19
This file was deleted.

gson/pom.xml

+22-1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,27 @@
131131
<goals>
132132
<goal>bnd-process</goal>
133133
</goals>
134+
<configuration>
135+
<bnd><![CDATA[
136+
Bundle-SymbolicName: com.google.gson
137+
Bundle-Name: ${project.name}
138+
Bundle-Description: ${project.description}
139+
Bundle-Vendor: Google Gson Project
140+
Bundle-ContactAddress: ${project.parent.url}
141+
142+
# Optional dependency for JDK's sun.misc.Unsafe
143+
# https://bnd.bndtools.org/chapters/920-faq.html#remove-unwanted-imports-
144+
Import-Package: sun.misc;resolution:=optional, *
145+
146+
-removeheaders: Private-Package
147+
148+
-exportcontents:\
149+
com.google.gson,\
150+
com.google.gson.annotations,\
151+
com.google.gson.reflect,\
152+
com.google.gson.stream
153+
]]></bnd>
154+
</configuration>
134155
</execution>
135156
</executions>
136157
</plugin>
@@ -263,7 +284,7 @@
263284
<plugin>
264285
<groupId>org.moditect</groupId>
265286
<artifactId>moditect-maven-plugin</artifactId>
266-
<version>1.2.1.Final</version>
287+
<version>1.2.2.Final</version>
267288
<executions>
268289
<execution>
269290
<id>add-module-info</id>

gson/src/main/java/com/google/gson/internal/$Gson$Types.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -392,23 +392,24 @@ private static Type resolve(
392392
ParameterizedType original = (ParameterizedType) toResolve;
393393
Type ownerType = original.getOwnerType();
394394
Type newOwnerType = resolve(context, contextRawType, ownerType, visitedTypeVariables);
395-
boolean changed = !equal(newOwnerType, ownerType);
395+
boolean ownerChanged = !equal(newOwnerType, ownerType);
396396

397397
Type[] args = original.getActualTypeArguments();
398+
boolean argsChanged = false;
398399
for (int t = 0, length = args.length; t < length; t++) {
399400
Type resolvedTypeArgument =
400401
resolve(context, contextRawType, args[t], visitedTypeVariables);
401402
if (!equal(resolvedTypeArgument, args[t])) {
402-
if (!changed) {
403+
if (!argsChanged) {
403404
args = args.clone();
404-
changed = true;
405+
argsChanged = true;
405406
}
406407
args[t] = resolvedTypeArgument;
407408
}
408409
}
409410

410411
toResolve =
411-
changed
412+
ownerChanged || argsChanged
412413
? newParameterizedTypeWithOwner(newOwnerType, original.getRawType(), args)
413414
: original;
414415
break;

pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<dependency>
101101
<groupId>com.google.truth</groupId>
102102
<artifactId>truth</artifactId>
103-
<version>1.4.2</version>
103+
<version>1.4.3</version>
104104
</dependency>
105105
</dependencies>
106106
</dependencyManagement>
@@ -338,12 +338,12 @@
338338
<plugin>
339339
<groupId>org.apache.maven.plugins</groupId>
340340
<artifactId>maven-surefire-plugin</artifactId>
341-
<version>3.2.5</version>
341+
<version>3.3.0</version>
342342
</plugin>
343343
<plugin>
344344
<groupId>org.apache.maven.plugins</groupId>
345345
<artifactId>maven-jar-plugin</artifactId>
346-
<version>3.4.1</version>
346+
<version>3.4.2</version>
347347
</plugin>
348348
<plugin>
349349
<groupId>org.apache.maven.plugins</groupId>
@@ -380,7 +380,7 @@
380380
<plugin>
381381
<groupId>org.apache.maven.plugins</groupId>
382382
<artifactId>maven-release-plugin</artifactId>
383-
<version>3.0.1</version>
383+
<version>3.1.0</version>
384384
<configuration>
385385
<autoVersionSubmodules>true</autoVersionSubmodules>
386386
<!-- Disable Maven Super POM release profile and instead use own one -->

proto/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<!-- This is duplicated here because that is recommended by `artifact:check-buildplan` -->
3232
<project.build.outputTimestamp>2024-05-19T18:54:10Z</project.build.outputTimestamp>
3333

34-
<protobufVersion>4.27.0</protobufVersion>
34+
<protobufVersion>4.27.2</protobufVersion>
3535

3636
<!-- Overwrite property from parent; this module is currently not deployed -->
3737
<gson.isInternalModule>true</gson.isInternalModule>

test-graal-native-image/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<dependency>
4949
<groupId>org.junit.jupiter</groupId>
5050
<artifactId>junit-jupiter</artifactId>
51-
<version>5.10.2</version>
51+
<version>5.10.3</version>
5252
<scope>test</scope>
5353
</dependency>
5454

test-shrinker/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
<plugin>
199199
<groupId>org.apache.maven.plugins</groupId>
200200
<artifactId>maven-failsafe-plugin</artifactId>
201-
<version>3.2.5</version>
201+
<version>3.3.0</version>
202202
<executions>
203203
<execution>
204204
<goals>

0 commit comments

Comments
 (0)