From 04b4238f66f6864e10f8a6d9b48f187bd7b2b7e7 Mon Sep 17 00:00:00 2001 From: Claudio Nave Date: Wed, 4 Feb 2026 21:18:14 +0100 Subject: [PATCH] Add simple native formatting test --- util/HelloWorld.java | 8 ++++++++ util/test-native.sh | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 util/HelloWorld.java diff --git a/util/HelloWorld.java b/util/HelloWorld.java new file mode 100644 index 000000000..5591323b3 --- /dev/null +++ b/util/HelloWorld.java @@ -0,0 +1,8 @@ +class HelloWorld { + public static void main(String[] args) { + System + .out + .println + ("Hello, World!"); + } +} \ No newline at end of file diff --git a/util/test-native.sh b/util/test-native.sh index a8643baf2..41a9da87c 100755 --- a/util/test-native.sh +++ b/util/test-native.sh @@ -28,3 +28,5 @@ if [[ $status -ne 2 ]]; then echo "google-java-format_linux (native) without arguments should have printed usage help and exited with 2, but did not :(" exit 1 fi + +core/target/google-java-format util/HelloWorld.java \ No newline at end of file