You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ch...@apache.org on 2022/08/17 04:59:17 UTC
[dolphinscheduler] branch dev updated: [Feature][Style] Make sure there is one and only one empty line at the end of each java file (#11520)
This is an automated email from the ASF dual-hosted git repository.
chufenggao pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new f93e93cfd2 [Feature][Style] Make sure there is one and only one empty line at the end of each java file (#11520)
f93e93cfd2 is described below
commit f93e93cfd2125f4271899fca41335c24cb6a872c
Author: Eric Gao <er...@gmail.com>
AuthorDate: Wed Aug 17 12:59:08 2022 +0800
[Feature][Style] Make sure there is one and only one empty line at the end of each java file (#11520)
---
.../src/main/java/org/apache/dolphinscheduler/alert/AlertConfig.java | 2 +-
style/spotless_dolphinscheduler_formatter.xml | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertConfig.java b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertConfig.java
index 2e2eff448f..534fedd358 100644
--- a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertConfig.java
+++ b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertConfig.java
@@ -23,6 +23,7 @@ import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties("alert")
public final class AlertConfig {
+
private int port;
private int waitTimeout;
@@ -42,5 +43,4 @@ public final class AlertConfig {
public void setWaitTimeout(final int waitTimeout) {
this.waitTimeout = waitTimeout;
}
-
}
diff --git a/style/spotless_dolphinscheduler_formatter.xml b/style/spotless_dolphinscheduler_formatter.xml
index 0e45f7be39..4327ddc1fa 100644
--- a/style/spotless_dolphinscheduler_formatter.xml
+++ b/style/spotless_dolphinscheduler_formatter.xml
@@ -18,7 +18,7 @@
* limitations under the License.
*/
-->
-<profiles version="13">
+<profiles version="22">
<profile kind="CodeFormatterProfile" name="'DolphinScheduler Apache Current'" version="13">
<setting id="org.eclipse.jdt.core.compiler.source" value="1.8" />
<setting id="org.eclipse.jdt.core.compiler.compliance" value="1.8" />
@@ -47,5 +47,6 @@
<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="106" />
<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="106" />
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call.count_dependent" value="16|5|80" />
+ <setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/>
</profile>
</profiles>