Automated rollback of commit 0ee34d35de.

PiperOrigin-RevId: 603802046
pull/15706/head
Sandy Zhang 1 year ago committed by Copybara-Service
parent 60b80c6976
commit 9252b64ef3
  1. 2
      .github/workflows/test_java.yml
  2. 6
      java/core/src/main/java/com/google/protobuf/Descriptors.java
  3. 4
      java/pom.xml

@ -73,8 +73,6 @@ jobs:
protobuf-bom: protobuf-bom:
name: Protobuf Maven BOM name: Protobuf Maven BOM
runs-on: ubuntu-latest runs-on: ubuntu-latest
# TODO Re-enable this once it works
if: false
steps: steps:
- name: Checkout pending changes - name: Checkout pending changes
uses: protocolbuffers/protobuf-ci/checkout@v2 uses: protocolbuffers/protobuf-ci/checkout@v2

@ -415,7 +415,11 @@ public final class Descriptors {
if (strings.length == 1) { if (strings.length == 1) {
return strings[0].getBytes(Internal.ISO_8859_1); return strings[0].getBytes(Internal.ISO_8859_1);
} }
return String.join("", strings).getBytes(Internal.ISO_8859_1); StringBuilder descriptorData = new StringBuilder();
for (String part : strings) {
descriptorData.append(part);
}
return descriptorData.toString().getBytes(Internal.ISO_8859_1);
} }
private static FileDescriptor[] findDescriptors( private static FileDescriptor[] findDescriptors(

@ -112,8 +112,8 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version> <version>3.6.1</version>
<configuration> <configuration>
<source>1.7</source> <source>1.8</source>
<target>1.7</target> <target>1.8</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>

Loading…
Cancel
Save