checkstyle FinalClassCheck

fixes

fixModifiers after fixFinal

Revert CachingSessionFactory

Class is spied in tests.

checkstyle - Import Rules

checkstyle InterfaceIsType

checkstyle InnerTypeLast

checkstyle OneStatementPerLine

CovariantEquals
OneTopLevelClass

* Revert `'\n'` -> `System.lineSeparator()` in the Gradle scripts to meet Git `autocrlf = true` on Windows
* Fix timing issue with the `LastModifiedFileListFilterTests`, when the `age = 1` might not be enough for the file object when we have some delay before checking
This commit is contained in:
Gary Russell
2016-04-02 10:52:19 -04:00
committed by Artem Bilan
parent 43af472c3a
commit 4ac3a79df7
105 changed files with 752 additions and 539 deletions

View File

@@ -57,7 +57,7 @@ public class HeadDirectoryScanner extends DefaultDirectoryScanner {
}
private static class HeadFilter implements FileListFilter<File> {
private static final class HeadFilter implements FileListFilter<File> {
private final int maxNumberOfFiles;

View File

@@ -548,7 +548,7 @@ public class RemoteFileTemplate<F> implements RemoteFileOperations<F>, Initializ
return directoryPath;
}
private class StreamHolder {
private final class StreamHolder {
private final InputStream stream;

View File

@@ -30,7 +30,7 @@ import org.springframework.integration.file.remote.session.Session;
* @since 3.0
*
*/
public class RemoteFileUtils {
public final class RemoteFileUtils {
private RemoteFileUtils() {}

View File

@@ -157,7 +157,7 @@ public class CachingSessionFactory<F> implements SessionFactory<F>, DisposableBe
this.pool.removeAllIdleItems();
}
public class CachedSession implements Session<F> {
public class CachedSession implements Session<F> { //NOSONAR (final)
private final Session<F> targetSession;