From cdcc0a201137f3cc93a96cc7670a63d7cc434142 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Mon, 28 Oct 2024 20:11:23 +0000 Subject: [PATCH] chore: skip formatting test-jdk17 files in firestore (#3320) In firestore, [RecordMapperTest.java](https://github.com/googleapis/java-firestore/blob/main/google-cloud-firestore/src/test-jdk17/java/com/google/cloud/firestore/RecordMapperTest.java) has Java Records which is incompatible with java formatter 1.7. This PR is to skip these files. --- hermetic_build/library_generation/owlbot/bin/format_source.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hermetic_build/library_generation/owlbot/bin/format_source.sh b/hermetic_build/library_generation/owlbot/bin/format_source.sh index 9402be778b..efc51b8940 100755 --- a/hermetic_build/library_generation/owlbot/bin/format_source.sh +++ b/hermetic_build/library_generation/owlbot/bin/format_source.sh @@ -36,6 +36,9 @@ do elif [[ $file =~ .*/samples/snippets/src/.*/java/com/example/spanner/.*.java ]]; then echo "File skipped formatting: $file" + elif [[ $file =~ .*/test-jdk17/java/com/google/cloud/firestore/.*java ]]; + then + echo "File skipped formatting: $file" else echo $file >> $tmp_file fi