diff options
| author | 2022-12-06 09:55:21 +0000 | |
|---|---|---|
| committer | 2022-12-06 15:10:32 +0000 | |
| commit | c8c95288c70b8d05dfaa25cf52fa3621a35f1596 (patch) | |
| tree | 271ed04f2b93ea43d1f4ca6d3104cacb36b880c2 /test/519-bound-load-class/src/Main.java | |
| parent | da91abf4ec6686fce3e17668743ee8f85191e1f3 (diff) | |
ART: Change indentation to 4 spaces in run-test shards 15-19.
Created with
for testName in \
`git grep -E '^ public static void main\(String\[\]' \
-- test/*<i>-*/src/Main.java | \
sed '-es/\/src\/Main.java:.*//'`; \
do \
find $testName/ -type f -name *.java | \
xargs sed -E '-es/^(( )+)/\1\1/' --in-place ; \
done
with <i> manually set to 15 to 19.
Manually address many long lines and fix other style issues.
Test: testrunner.py --host --optimizing
Change-Id: I20e443155e4a2c91a6c484f24783c0d4b87ca928
Diffstat (limited to 'test/519-bound-load-class/src/Main.java')
| -rw-r--r-- | test/519-bound-load-class/src/Main.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/test/519-bound-load-class/src/Main.java b/test/519-bound-load-class/src/Main.java index cddeb093f7..c507aecddd 100644 --- a/test/519-bound-load-class/src/Main.java +++ b/test/519-bound-load-class/src/Main.java @@ -15,25 +15,25 @@ */ public class Main { - public static void main(String[] args) { - testInstanceOf(); - try { - testNull(); - throw new Error("Expected ClassClastException"); - } catch (ClassCastException e) { /* ignore */ } - } + public static void main(String[] args) { + testInstanceOf(); + try { + testNull(); + throw new Error("Expected ClassClastException"); + } catch (ClassCastException e) { /* ignore */ } + } - public static void testInstanceOf() { - Object o = Main.class; - if (o instanceof Main) { - System.out.println((Main)o); + public static void testInstanceOf() { + Object o = Main.class; + if (o instanceof Main) { + System.out.println((Main) o); + } } - } - public static void testNull() { - Object o = Main.class; - if (o != null) { - System.out.println((Main)o); + public static void testNull() { + Object o = Main.class; + if (o != null) { + System.out.println((Main) o); + } } - } } |