[Feature][Style] Make sure there is one and only one empty line at the end of each java file (#11520)

This commit is contained in:
Eric Gao 2022-08-17 12:59:08 +08:00 committed by GitHub
parent 5983e41f4b
commit f93e93cfd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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>