Add EmptyLineSeparator Checkstyle rule

* Support "blank lines around" via `spring-framework.xml` IDEA config
* Fix all the Checkstyle violations
This commit is contained in:
Artem Bilan
2024-03-27 16:54:25 -04:00
parent f71a2234d8
commit c155d5d418
932 changed files with 1341 additions and 2485 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -42,7 +42,6 @@ public class ByteStreamReadingMessageSource extends AbstractMessageSource<byte[]
private boolean shouldTruncate = true;
public ByteStreamReadingMessageSource(InputStream stream) {
this(stream, -1);
}
@@ -59,7 +58,6 @@ public class ByteStreamReadingMessageSource extends AbstractMessageSource<byte[]
}
}
public void setBytesPerMessage(int bytesPerMessage) {
this.bytesPerMessage = bytesPerMessage;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,7 +35,6 @@ public class ByteStreamWritingMessageHandler extends AbstractMessageHandler {
private final BufferedOutputStream stream;
public ByteStreamWritingMessageHandler(OutputStream stream) {
this(stream, -1);
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -137,7 +137,6 @@ public class CharacterStreamReadingMessageSource extends AbstractMessageSource<S
}
}
/**
* Create a source that reads from {@link System#in}. EOF will not be detected.
* @return the stream.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -46,7 +46,6 @@ public class CharacterStreamWritingMessageHandler extends AbstractMessageHandler
private volatile boolean shouldAppendNewLine = false;
public CharacterStreamWritingMessageHandler(Writer writer) {
this(writer, -1);
}
@@ -64,7 +63,6 @@ public class CharacterStreamWritingMessageHandler extends AbstractMessageHandler
}
}
/**
* Factory method that creates a target for stdout (System.out) with the
* default charset encoding.
@@ -119,7 +117,6 @@ public class CharacterStreamWritingMessageHandler extends AbstractMessageHandler
}
}
public void setShouldAppendNewLine(boolean shouldAppendNewLine) {
this.shouldAppendNewLine = shouldAppendNewLine;
}