From 2974e3e9c99d395b2c2686b496dd35d8978e03fb Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Tue, 4 Jun 2024 18:55:46 -0400 Subject: [PATCH 1/4] [java] Turn on use_on_off_tags as a sensible default --- src/main/resources/formatter-maven-plugin/eclipse/java.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/formatter-maven-plugin/eclipse/java.xml b/src/main/resources/formatter-maven-plugin/eclipse/java.xml index cba02cfd..7e5d4bc9 100644 --- a/src/main/resources/formatter-maven-plugin/eclipse/java.xml +++ b/src/main/resources/formatter-maven-plugin/eclipse/java.xml @@ -400,7 +400,7 @@ - + From 9645ea6bcf11984bebba212451b5fbb1eedd3ea2 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Tue, 4 Jun 2024 19:12:17 -0400 Subject: [PATCH 2/4] [java] Use sensible clear of blank lines in block and javadoc comments --- src/main/resources/formatter-maven-plugin/eclipse/java.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/formatter-maven-plugin/eclipse/java.xml b/src/main/resources/formatter-maven-plugin/eclipse/java.xml index 7e5d4bc9..4b81b603 100644 --- a/src/main/resources/formatter-maven-plugin/eclipse/java.xml +++ b/src/main/resources/formatter-maven-plugin/eclipse/java.xml @@ -106,8 +106,8 @@ - - + + From df94a38e5c644d4171192d329a83dbbe2480377c Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Tue, 4 Jun 2024 20:14:40 -0400 Subject: [PATCH 3/4] [java] Adjust more sensible defaults most do not appear to change anything or very little in eclipse examples. These were defaults if creating new from java settings. One adjustment done for try with resources to split lines which IMO has always looks wrong when it wraps. 16 values mean to wrap where necessary 81 means to wrap all except first if not necessary but to also force split (ie two resources in try will be split on separte lines) 80 means to wrap all except first if not necessary --- .../formatter-maven-plugin/eclipse/java.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/resources/formatter-maven-plugin/eclipse/java.xml b/src/main/resources/formatter-maven-plugin/eclipse/java.xml index 4b81b603..9666610f 100644 --- a/src/main/resources/formatter-maven-plugin/eclipse/java.xml +++ b/src/main/resources/formatter-maven-plugin/eclipse/java.xml @@ -37,18 +37,18 @@ - + - + - - + + @@ -60,7 +60,7 @@ - + @@ -68,7 +68,7 @@ - + From 0de0b4ada30be219defd2d6aa5e37f5d30fcea5a Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Wed, 5 Jun 2024 15:41:41 -0400 Subject: [PATCH 4/4] [java] Adjust a few more sensible defaults --- src/main/resources/formatter-maven-plugin/eclipse/java.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/formatter-maven-plugin/eclipse/java.xml b/src/main/resources/formatter-maven-plugin/eclipse/java.xml index 9666610f..dd57e0b8 100644 --- a/src/main/resources/formatter-maven-plugin/eclipse/java.xml +++ b/src/main/resources/formatter-maven-plugin/eclipse/java.xml @@ -143,7 +143,7 @@ - + @@ -155,7 +155,7 @@ - + @@ -401,7 +401,7 @@ - +