checkstyle MutableException

checkstyle EmptyBlock

checkstyle fixRightCurly Script

checkstyle EmptyStatement

checkstyle RightCurly

checkstyle TailingWhite

checkstyle NeedBraces

Fix the line separator in the `fixRightCurly.gradle`
This commit is contained in:
Gary Russell
2016-04-05 09:44:19 -04:00
committed by Artem Bilan
parent c0b19e61b5
commit 842aded9a4
271 changed files with 1094 additions and 821 deletions

View File

@@ -24,7 +24,7 @@ import org.springframework.integration.file.filters.AbstractRegexPatternFileList
/**
* Implementation of {@link AbstractRegexPatternFileListFilter} for FTP.
*
*
* @author Mark Fisher
* @since 2.0
*/

View File

@@ -22,7 +22,7 @@ import org.springframework.integration.file.filters.AbstractSimplePatternFileLis
/**
* Implementation of {@link AbstractSimplePatternFileListFilter} for FTP.
*
*
* @author Mark Fisher
* @since 2.0
*/

View File

@@ -38,7 +38,7 @@ public class FtpInboundFileSynchronizingMessageSource extends AbstractInboundFil
public FtpInboundFileSynchronizingMessageSource(AbstractInboundFileSynchronizer<FTPFile> synchronizer) {
super(synchronizer);
}
public FtpInboundFileSynchronizingMessageSource(AbstractInboundFileSynchronizer<FTPFile> synchronizer, Comparator<File> comparator) {
super(synchronizer, comparator);
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 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.
@@ -67,54 +67,65 @@ public class FtpFileInfo extends AbstractFileInfo<FTPFile> {
StringBuilder sb = new StringBuilder();
if (this.ftpFile.isDirectory()) {
sb.append("d");
} else if (this.ftpFile.isSymbolicLink()) {
}
else if (this.ftpFile.isSymbolicLink()) {
sb.append("l");
} else {
}
else {
sb.append("-");
}
if (this.ftpFile.hasPermission(FTPFile.USER_ACCESS, FTPFile.READ_PERMISSION)) {
sb.append("r");
} else {
}
else {
sb.append("-");
}
if (this.ftpFile.hasPermission(FTPFile.USER_ACCESS, FTPFile.WRITE_PERMISSION)) {
sb.append("w");
} else {
}
else {
sb.append("-");
}
if (this.ftpFile.hasPermission(FTPFile.USER_ACCESS, FTPFile.EXECUTE_PERMISSION)) {
sb.append("x");
} else {
}
else {
sb.append("-");
}
if (this.ftpFile.hasPermission(FTPFile.GROUP_ACCESS, FTPFile.READ_PERMISSION)) {
sb.append("r");
} else {
}
else {
sb.append("-");
}
if (this.ftpFile.hasPermission(FTPFile.GROUP_ACCESS, FTPFile.WRITE_PERMISSION)) {
sb.append("w");
} else {
}
else {
sb.append("-");
}
if (this.ftpFile.hasPermission(FTPFile.GROUP_ACCESS, FTPFile.EXECUTE_PERMISSION)) {
sb.append("x");
} else {
}
else {
sb.append("-");
}
if (this.ftpFile.hasPermission(FTPFile.WORLD_ACCESS, FTPFile.READ_PERMISSION)) {
sb.append("r");
} else {
}
else {
sb.append("-");
}
if (this.ftpFile.hasPermission(FTPFile.WORLD_ACCESS, FTPFile.WRITE_PERMISSION)) {
sb.append("w");
} else {
}
else {
sb.append("-");
}
if (this.ftpFile.hasPermission(FTPFile.WORLD_ACCESS, FTPFile.EXECUTE_PERMISSION)) {
sb.append("x");
} else {
}
else {
sb.append("-");
}
return sb.toString();

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 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.
@@ -198,7 +198,8 @@ public class FtpInboundRemoteFileSystemSynchronizerTests {
when(ftpClient.listFiles("remote-test-dir")).thenReturn(ftpFiles.toArray(new FTPFile[ftpFiles.size()]));
when(ftpClient.deleteFile(Mockito.anyString())).thenReturn(true);
return ftpClient;
} catch (Exception e) {
}
catch (Exception e) {
throw new RuntimeException("Failed to create mock client", e);
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2016 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.
@@ -282,7 +282,8 @@ public class FtpOutboundTests {
}
when(ftpClient.listFiles("remote-test-dir/")).thenReturn(ftpFiles.toArray(new FTPFile[]{}));
return ftpClient;
} catch (Exception e) {
}
catch (Exception e) {
throw new RuntimeException("Failed to create mock client", e);
}
}

View File

@@ -116,7 +116,8 @@ public class SessionFactoryTests {
clientMode == FTPClient.PASSIVE_LOCAL_DATA_CONNECTION_MODE)){
fail();
}
} catch (IllegalArgumentException e) {
}
catch (IllegalArgumentException e) {
// success
} catch (Throwable e) {
fail();
@@ -197,7 +198,8 @@ public class SessionFactoryTests {
Session session = factory.getSession();
Thread.sleep(random.nextInt(5000));
session.close();
} catch (Exception e) {
}
catch (Exception e) {
e.printStackTrace();
failures.incrementAndGet();
}