diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 97f522e819..e842ff66c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: "Set up JDK ${{ matrix.java }}" uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 with: @@ -35,9 +35,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: "Set up GraalVM" - uses: graalvm/setup-graalvm@2f25c0caae5b220866f732832d5e3e29ff493338 # v1.2.1 + uses: graalvm/setup-graalvm@2911b2304bee2c2f59b9a67bf45f025a6b6de4b1 # v1.2.2 with: java-version: '17' distribution: 'graalvm' @@ -54,7 +54,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: "Set up JDK 17" uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 with: diff --git a/.github/workflows/check-android-compatibility.yml b/.github/workflows/check-android-compatibility.yml index c21d6bd96f..b7af3bdad2 100644 --- a/.github/workflows/check-android-compatibility.yml +++ b/.github/workflows/check-android-compatibility.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Set up JDK 11 uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 diff --git a/.github/workflows/check-api-compatibility.yml b/.github/workflows/check-api-compatibility.yml index 683f4bf1f5..21985e1881 100644 --- a/.github/workflows/check-api-compatibility.yml +++ b/.github/workflows/check-api-compatibility.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Check out old version - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: ref: ${{ github.event.pull_request.base.sha }} path: 'gson-old-japicmp' @@ -40,7 +40,7 @@ jobs: mvn --batch-mode --no-transfer-progress install -DskipTests - name: Check out new version - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Check API compatibility id: check-compatibility diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c772663a8e..11c34fee53 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -25,7 +25,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Set up JDK 17 uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 @@ -36,7 +36,7 @@ jobs: # Initializes the CodeQL tools for scanning - name: Initialize CodeQL - uses: github/codeql-action/init@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7 + uses: github/codeql-action/init@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11 with: languages: ${{ matrix.language }} # Run all security queries and maintainability and reliability queries @@ -50,4 +50,4 @@ jobs: mvn compile --batch-mode --no-transfer-progress - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7 + uses: github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11 diff --git a/gson/bnd.bnd b/gson/bnd.bnd deleted file mode 100644 index 626a0c5bec..0000000000 --- a/gson/bnd.bnd +++ /dev/null @@ -1,19 +0,0 @@ -Bundle-SymbolicName: com.google.gson -Bundle-Name: ${project.name} -Bundle-Description: ${project.description} -Bundle-Vendor: Google Gson Project -Bundle-ContactAddress: ${project.parent.url} -Bundle-RequiredExecutionEnvironment: JavaSE-1.7, JavaSE-1.8 -Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.7))" - -# Optional dependency for JDK's sun.misc.Unsafe -# https://bnd.bndtools.org/chapters/920-faq.html#remove-unwanted-imports- -Import-Package: sun.misc;resolution:=optional, * - --removeheaders: Private-Package - --exportcontents:\ - com.google.gson,\ - com.google.gson.annotations,\ - com.google.gson.reflect,\ - com.google.gson.stream diff --git a/gson/pom.xml b/gson/pom.xml index 9170ee5a26..304715dd7f 100644 --- a/gson/pom.xml +++ b/gson/pom.xml @@ -131,6 +131,27 @@ bnd-process + + + @@ -263,7 +284,7 @@ org.moditect moditect-maven-plugin - 1.2.1.Final + 1.2.2.Final add-module-info diff --git a/gson/src/main/java/com/google/gson/internal/$Gson$Types.java b/gson/src/main/java/com/google/gson/internal/$Gson$Types.java index 6ccdaa3eb5..8bef78afce 100644 --- a/gson/src/main/java/com/google/gson/internal/$Gson$Types.java +++ b/gson/src/main/java/com/google/gson/internal/$Gson$Types.java @@ -392,23 +392,24 @@ private static Type resolve( ParameterizedType original = (ParameterizedType) toResolve; Type ownerType = original.getOwnerType(); Type newOwnerType = resolve(context, contextRawType, ownerType, visitedTypeVariables); - boolean changed = !equal(newOwnerType, ownerType); + boolean ownerChanged = !equal(newOwnerType, ownerType); Type[] args = original.getActualTypeArguments(); + boolean argsChanged = false; for (int t = 0, length = args.length; t < length; t++) { Type resolvedTypeArgument = resolve(context, contextRawType, args[t], visitedTypeVariables); if (!equal(resolvedTypeArgument, args[t])) { - if (!changed) { + if (!argsChanged) { args = args.clone(); - changed = true; + argsChanged = true; } args[t] = resolvedTypeArgument; } } toResolve = - changed + ownerChanged || argsChanged ? newParameterizedTypeWithOwner(newOwnerType, original.getRawType(), args) : original; break; diff --git a/pom.xml b/pom.xml index f7e07e562e..ea48e65115 100644 --- a/pom.xml +++ b/pom.xml @@ -100,7 +100,7 @@ com.google.truth truth - 1.4.2 + 1.4.3 @@ -338,12 +338,12 @@ org.apache.maven.plugins maven-surefire-plugin - 3.2.5 + 3.3.0 org.apache.maven.plugins maven-jar-plugin - 3.4.1 + 3.4.2 org.apache.maven.plugins @@ -380,7 +380,7 @@ org.apache.maven.plugins maven-release-plugin - 3.0.1 + 3.1.0 true diff --git a/proto/pom.xml b/proto/pom.xml index 96dafcc8a7..77245fb111 100644 --- a/proto/pom.xml +++ b/proto/pom.xml @@ -31,7 +31,7 @@ 2024-05-19T18:54:10Z - 4.27.0 + 4.27.2 true diff --git a/test-graal-native-image/pom.xml b/test-graal-native-image/pom.xml index 3d99364e08..35321fde8a 100644 --- a/test-graal-native-image/pom.xml +++ b/test-graal-native-image/pom.xml @@ -48,7 +48,7 @@ org.junit.jupiter junit-jupiter - 5.10.2 + 5.10.3 test diff --git a/test-shrinker/pom.xml b/test-shrinker/pom.xml index bd23c2984a..afc7e3a084 100644 --- a/test-shrinker/pom.xml +++ b/test-shrinker/pom.xml @@ -198,7 +198,7 @@ org.apache.maven.plugins maven-failsafe-plugin - 3.2.5 + 3.3.0