Skip to content

Commit cdcc0a2

Browse files
authored
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.
1 parent b16b933 commit cdcc0a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hermetic_build/library_generation/owlbot/bin/format_source.sh

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ do
3636
elif [[ $file =~ .*/samples/snippets/src/.*/java/com/example/spanner/.*.java ]];
3737
then
3838
echo "File skipped formatting: $file"
39+
elif [[ $file =~ .*/test-jdk17/java/com/google/cloud/firestore/.*java ]];
40+
then
41+
echo "File skipped formatting: $file"
3942
else
4043
echo $file >> $tmp_file
4144
fi

0 commit comments

Comments
 (0)