diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-12-20 23:01:54 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-12-22 11:50:09 +0900 |
commit | 112ca8677b9b024de5529712e559c968da40a67a (patch) | |
tree | a8e93a0b05d61aeaab1dab3288c5fc518cdd05c6 /debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java | |
parent | b37f44d6c7444ca20c48a07fdcaf7b2a812db5bd (diff) | |
download | extra-dependencies-112ca8677b9b024de5529712e559c968da40a67a.tar.gz extra-dependencies-112ca8677b9b024de5529712e559c968da40a67a.zip |
DEB uncrustify: added first version of uncrustify-trinity. This is basically the upstream 0.72.0 version of uncrustify, repackaged.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java')
33 files changed, 424 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80000-assert.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80000-assert.java new file mode 100644 index 00000000..fbc20ba7 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80000-assert.java @@ -0,0 +1,9 @@ +public class JavaClass { + public static void main(String[] args) + { + /* assert EXPRESSION1 ; */ + assert (a != null) && (b != null); + /* assert EXPRESSION1 : EXPRESSION2 ; */ + assert (a != null) && (b != null) : "Message"; + } +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80010-annotation1.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80010-annotation1.java new file mode 100644 index 00000000..314a0b91 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80010-annotation1.java @@ -0,0 +1,26 @@ +package com.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.TYPE,ElementType.METHOD, + ElementType.CONSTRUCTOR,ElementType.ANNOTATION_TYPE, + ElementType.PACKAGE,ElementType.FIELD,ElementType.LOCAL_VARIABLE}) +@Inherited + +public @interface Unfinished { +public enum Priority { LOW, MEDIUM, HIGH } +String value(); +String[] changedBy() default ""; +String[] lastChangedBy() default ""; +Priority priority() default Priority.MEDIUM; +String createdBy() default "James Gosling"; +String lastChanged() default "08/07/2011"; +} + diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80011-annotation2.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80011-annotation2.java new file mode 100644 index 00000000..1acc459f --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80011-annotation2.java @@ -0,0 +1,5 @@ +public class Foo {private Runnable bar=new Runnable(){ + @Override @SuppressWarnings("baz") public void run(){ + quux(); + } + };} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80012-annotation2.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80012-annotation2.java new file mode 100644 index 00000000..1acc459f --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80012-annotation2.java @@ -0,0 +1,5 @@ +public class Foo {private Runnable bar=new Runnable(){ + @Override @SuppressWarnings("baz") public void run(){ + quux(); + } + };} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80013-annotation2.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80013-annotation2.java new file mode 100644 index 00000000..42f5a1df --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80013-annotation2.java @@ -0,0 +1,6 @@ +public class Foo {private Runnable bar=new Runnable(){ + @Override + @SuppressWarnings("baz") public void run(){ + quux(); + } + };} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80014-annotation2.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80014-annotation2.java new file mode 100644 index 00000000..42f5a1df --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80014-annotation2.java @@ -0,0 +1,6 @@ +public class Foo {private Runnable bar=new Runnable(){ + @Override + @SuppressWarnings("baz") public void run(){ + quux(); + } + };} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80020-foreach.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80020-foreach.java new file mode 100644 index 00000000..69967517 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80020-foreach.java @@ -0,0 +1,9 @@ +public class Foo { + + public static void main(String[] args) { + for (ProcessDefinition processDefinition: + allOfTheDefinitions.getData()) { + doit(processDefinition); + } + } +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80030-variable_aligns.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80030-variable_aligns.java new file mode 100644 index 00000000..c73b62d3 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80030-variable_aligns.java @@ -0,0 +1,35 @@ +class Aligns { +final int SZF = 4; +final int SZ2F = 4; +final int aBarF; +final int someIntsF[]; +final int someIntsSzdF[4]; +final int[] someMoreIntsF; +final int lotsOfIntsF[][][][][][]; +final int[][][][] lotsMoreIntsF; +final Tem<Plate> edVarF; +final int aBarSetF = null; +final int someIntsSetF[] = null; +final int someIntsSzdSetF[4] = null; +final int[] someMoreIntsSetF = null; +final int lotsOfIntsSetF[][][][][][] = null; +final int[][][][] lotsMoreIntsSetF = null; +final Tem<Plate> edVarF = null; +int SZ = 4; +int SZ2 = 4; +int aBar; +int someInts[]; +int someIntsSzd[4]; +int spacer; +int[] someMoreInts; +int lotsOfInts[][][][][][]; +int[][][][] lotsMoreInts; +Tem<Plate> edVar; +int aBarSet = null; +int someIntsSet[] = null; +int someIntsSzdSet[4] = null; +int[] someMoreIntsSet = null; +int lotsOfIntsSet[][][][][][] = null; +int[][][][] lotsMoreIntsSet = null; +Tem<Plate> edVar = null; +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80040-try.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80040-try.java new file mode 100644 index 00000000..78a55849 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80040-try.java @@ -0,0 +1,6 @@ +public static void main(String[] args) { + try (File file = new File("filename.txt")) + { + doit(processDefinition); + } +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80050-double_brace.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80050-double_brace.java new file mode 100644 index 00000000..e00246e1 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80050-double_brace.java @@ -0,0 +1,21 @@ +member.func(new List() {{ + add("Text"); + add("Text", + "Hello"); +}}); + + +private static final Set<String> VALID_CODES = new HashSet<String>() {{ + add("XZ13s"); + add("AB21/X"); + add("YYLEX"); + add("AR2D"); +}}; + +add(new JPanel() {{ + setLayout(...); + setBorder(...); + add(new JLabel(...)); + add(new JSpinner(...)); +}}); + diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80051-double_brace.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80051-double_brace.java new file mode 100644 index 00000000..66183ada --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80051-double_brace.java @@ -0,0 +1,24 @@ +member.func(new List() +{{ + add("Text"); + add("Text", + "Hello"); +}}); + + +private static final Set<String> VALID_CODES = new HashSet<String>() +{{ + add("XZ13s"); + add("AB21/X"); + add("YYLEX"); + add("AR2D"); +}}; + +add(new JPanel() +{{ + setLayout(...); + setBorder(...); + add(new JLabel(...)); + add(new JSpinner(...)); +}}); + diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80060-synchronized.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80060-synchronized.java new file mode 100644 index 00000000..b8b70a6b --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80060-synchronized.java @@ -0,0 +1,37 @@ +public class A +{ + private synchronized static void g(){ + int x=1; + } + synchronized A f(){ + return null; + } + public void foo(){ + g(); + + synchronized ( this ) + { + g(); + } + + g(); + + synchronized ( this ) + { + synchronized ( this ) + { + synchronized ( this ) + { + g(); + } + } + + g(); + } + + synchronized ( this ) + { + g(); + } + } +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80061-synchronized.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80061-synchronized.java new file mode 100644 index 00000000..73fc9b1d --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80061-synchronized.java @@ -0,0 +1,29 @@ +public class A { + private synchronized static void g(){ + int x=1; + } + synchronized A f(){ + return null; + } + public void foo(){ + g(); synchronized(this) + { + g(); + } + g(); synchronized(this) + { + synchronized(this) + { + synchronized(this) + { + g(); + } + } + g(); + } + synchronized(this) + { + g(); + } + } +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80062-sp_this_paren.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80062-sp_this_paren.java new file mode 100644 index 00000000..1c189223 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80062-sp_this_paren.java @@ -0,0 +1,9 @@ +public class JavaClass { +public JavaClass() { + this (1); +} + +public JavaClass(int i) { + super (i); +} +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80063-i1121.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80063-i1121.java new file mode 100644 index 00000000..18567ec3 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80063-i1121.java @@ -0,0 +1,7 @@ +public class Test { +public static void main() { + btn.addActionListener(e->{ + System.exit(0); + }); +} +}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80064-long_cl_cmt.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80064-long_cl_cmt.java new file mode 100644 index 00000000..af7a1c7e --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80064-long_cl_cmt.java @@ -0,0 +1,5 @@ +public class Cls +{ +public void f(); +} /* class Cls */ +// no class end semicolon
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80065-Java8DoubleColon.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80065-Java8DoubleColon.java new file mode 100644 index 00000000..ec594909 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80065-Java8DoubleColon.java @@ -0,0 +1,10 @@ +import java.util.Objects; +import java.util.function.Predicate; + +public class Java8DoubleColon { +public static void main(String[] args) { + Predicate<Object> p = Objects::nonNull; + System.out.println(false == p.test(null)); + System.out.println(true == p.test(p)); +} +}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80066-sp_after_for_colon.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80066-sp_after_for_colon.java new file mode 100644 index 00000000..38515aed --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80066-sp_after_for_colon.java @@ -0,0 +1 @@ +for (Type var : expr) diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80100-sf567.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80100-sf567.java new file mode 100644 index 00000000..9fc644b8 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80100-sf567.java @@ -0,0 +1,14 @@ +package com.temp.test; + +public class Database +{ +private Database(String fileName) +{ + readConfig(fileName, "asdfasdf", 1); + readConfig(ame, "aasdf", 1); + + Database.readConfig(fileName, "asdfasdf", 1); + Database.readConfig(ame, "aasdf", 1); +} + +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80200-sp_before_byref.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80200-sp_before_byref.java new file mode 100644 index 00000000..7927ee89 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80200-sp_before_byref.java @@ -0,0 +1,5 @@ +public static void method() { + if (argA != null && argB != null) { + } + return (argA != null && argB != null); +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80201-generics.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80201-generics.java new file mode 100644 index 00000000..086786c0 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80201-generics.java @@ -0,0 +1,30 @@ +// Note: Some tests running on this _input_ file rely upon that the tripple +// closing '>' are not separated by spaces or anything else! +public class TestClass { +private static void initMap(void) { + HashMap<String, HashMap<String, List<Track>>> resolutionTracks = new HashMap<String, HashMap<String, List<Track>>>(); +} + +private static void addTrackToMap(String resolution, Track track, HashMap<String, HashMap<String, List<Track>>> resolutionTracks) { + HashMap<String, List<Track>> tracks = null; + + if (resolutionTracks.containsKey(resolution)) { + tracks = resolutionTracks.get(resolution); + } else { + tracks = new HashMap<String, List<Track>>(); + tracks.put("soun", new LinkedList<Track>()); + tracks.put("vide", new LinkedList<Track>()); + resolutionTracks.put(resolution, tracks); + } + + if (track.getHandler() != null) { + if (track.getHandler().equals("soun")) { + List<Track> audioTracks = tracks.get("soun"); + audioTracks.add(track); + } else if (track.getHandler().equals("vide")) { + List<Track> videoTracks = tracks.get("vide"); + videoTracks.add(track); + } + } +} +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80202-generics_wildcard.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80202-generics_wildcard.java new file mode 100644 index 00000000..358e333b --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80202-generics_wildcard.java @@ -0,0 +1,25 @@ +public class TestClass { + private Map< ? , ? > map1 = null; + private Map< ? , ? > map2 = null; + private Map< ? , ? > map3 = null; + + public static HttpUriRequest getHttpUriRequest(TestClassAPIRequestMethod method, String apiPath) { + switch (method) { + case BOTTOM_LEFT: + break; + case GET: + req = new HttpGet(url); + break; + case POST: + req = new HttpPost(url); + break; + case PUT: + req = new HttpPut(url); + break; + case DELETE: + req = new HttpDelete(url); + break; + } + return req; + } +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80203-generics_return_type.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80203-generics_return_type.java new file mode 100644 index 00000000..1f2aa340 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80203-generics_return_type.java @@ -0,0 +1,8 @@ +public class TestClass { + public static <T> void executeRequest(final HttpUriRequest request, final ITestClassAPIResponseListener<T> responseListener) { + } + + public <T extends YourType> T mymethod(T type) { + return type; + } +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80204-cast.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80204-cast.java new file mode 100644 index 00000000..30d0dcc4 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80204-cast.java @@ -0,0 +1,24 @@ +public class JavaClass { + private boolean isButtonHit(ImageView imageView, int x, int y) { + if (imageView != null) { + RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) imageView.getLayoutParams(); + Rect buttonRect = new Rect((int) (layoutParams.leftMargin - buttonExtraMargin), + (int) (layoutParams.topMargin - buttonExtraMargin), + (int) (layoutParams.leftMargin + imageView.getWidth() + buttonExtraMargin), + (int) (layoutParams.topMargin + imageView.getHeight() + buttonExtraMargin)); + + if (buttonRect.contains(x, y)) { + return true; + } + } + + Map< ? , ? > map = (Map< ? , ? >) object; + + return false; + } + + @SuppressWarnings("unchecked") + public static List<Object> fromJSON(JSONArray obj) { + return (List<Object>) fromJSON((Object) obj); + } +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80205-sp_after_angle.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80205-sp_after_angle.java new file mode 100644 index 00000000..bd654485 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80205-sp_after_angle.java @@ -0,0 +1,4 @@ +public class TestClassPrefetchData implements ITestClassAPIInputStreamResponseListener { + private class TestClassPrefetchDataWrite extends AsyncTask<Void, Void, Void> { + } +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80206-annotation3.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80206-annotation3.java new file mode 100644 index 00000000..3d84c04c --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80206-annotation3.java @@ -0,0 +1,10 @@ +public class LocalTests extends IosTest { + /** + * Check that app started up correctly. Then check that app continually runs for 5 seconds. + * Then wait up to 20 seconds for the splash screen disappear. + * @throws InterruptedException + */ + @Test(groups = {"testdroid", "local"}) + public void checkAppForCrash() throws InterruptedException { + } +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80300-Issue_670.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80300-Issue_670.java new file mode 100644 index 00000000..b0aa2cf0 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80300-Issue_670.java @@ -0,0 +1,4 @@ +Class definition: +public class A_Really_Really_Long_Class_Name extends + Another_Really_Long_Class_Name { +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80301-issue_672.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80301-issue_672.java new file mode 100644 index 00000000..16a077a4 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80301-issue_672.java @@ -0,0 +1,3 @@ +public abstract class KeyValueItemWriter<K, V> implements ItemWriter<V>, + InitializingBean {} +//3456789=123456789=12 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80302-Issue_1845.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80302-Issue_1845.java new file mode 100644 index 00000000..062c89d1 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80302-Issue_1845.java @@ -0,0 +1,7 @@ +public class Version implements Comparable<Version> { + +@Override +public int compareTo(@NonNull Version that) { + return 0; +} +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80303-Issue_1122.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80303-Issue_1122.java new file mode 100644 index 00000000..111ee739 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80303-Issue_1122.java @@ -0,0 +1,3 @@ +private void save() +throws IOException { +} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80304-Issue_1124.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80304-Issue_1124.java new file mode 100644 index 00000000..bca3cb33 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80304-Issue_1124.java @@ -0,0 +1,6 @@ +new URL(url) +. +openConnection(); +new URL(url) +. +openConnection(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80305-Issue_1124.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80305-Issue_1124.java new file mode 100644 index 00000000..0469fed1 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80305-Issue_1124.java @@ -0,0 +1,2 @@ +new URL(url).openConnection(); +new URL(url).openConnection(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80306-leading-tabs-for-java-lambda.java b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80306-leading-tabs-for-java-lambda.java new file mode 100644 index 00000000..19b6df0f --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/java/80306-leading-tabs-for-java-lambda.java @@ -0,0 +1,29 @@ +class MyClass { + void foo(List<Integer> arr) { + arr.forEach(n -> { + // Okay: This line will be indented with only tabs. + if (cond1) { // Okay + // BAD1: This line will be indented with tabs up to lambda brace level, then spaces for the rest. + if (cond2) // BAD2 + // Okay + bar(); // Okay + if (cond3) // BAD3 + { // BAD4 + // BAD5 + bar(); // BAD6 + } // Okay + } // Okay + if (cond4) { // Okay + /* + BAD7: C-style comments will also be affected on all lines. + */ + } // Okay + if (cond5) // Okay + { // Okay + bar(); // BAD8 + } // Okay + if (cond6) // Okay + bar; // Okay + }); + } +} |