Browse Source

Checkstyle

master
Gintas Grigelionis 7 years ago
parent
commit
a4099af879
7 changed files with 11 additions and 11 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/JDBCTask.java
  2. +1
    -1
      src/tests/antunit/core/uuencode/src/task/BaseTask.java
  3. +4
    -4
      src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java
  4. +1
    -1
      src/tests/junit/org/apache/tools/ant/taskdefs/TouchTest.java
  5. +2
    -2
      src/tests/junit/org/apache/tools/ant/taskdefs/XmlPropertyTest.java
  6. +1
    -1
      src/tests/junit/org/apache/tools/ant/types/MapperTest.java
  7. +1
    -1
      src/tests/junit/org/apache/tools/ant/util/LazyFileOutputStreamTest.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/JDBCTask.java View File

@@ -60,7 +60,7 @@ public class SQLExampleTask extends JDBCTask {
Statement stmt=null;
try {
if (tableName == null) {
throw new BuildException("TableName must be specified",location);
throw new BuildException("TableName must be specified", location);
}
String sql = "SELECT * FROM "+tableName;
stmt= conn.createStatement();


+ 1
- 1
src/tests/antunit/core/uuencode/src/task/BaseTask.java View File

@@ -31,7 +31,7 @@ import java.io.OutputStream;
* Base class for the uuencode/decode test tasks.
*/
abstract public class BaseTask extends Task {
private final static FileUtils FILE_UTILS = FileUtils.getFileUtils();
private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();
private File inFile;
private File outFile;



+ 4
- 4
src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java View File

@@ -55,10 +55,10 @@ public class ManifestTest {
private File outDir;

public static final String LONG_LINE
= "AReallyLongLineToTestLineBreakingInManifests-ACapabilityWhich" +
"IsSureToLeadToHundredsOfQuestionsAboutWhyAntMungesManifests" +
"OfCourseTheAnswerIsThatIsWhatTheSpecRequiresAndIfAnythingHas" +
"AProblemWithThatItIsNotABugInAnt";
= "AReallyLongLineToTestLineBreakingInManifests-ACapabilityWhich"
+ "IsSureToLeadToHundredsOfQuestionsAboutWhyAntMungesManifests"
+ "OfCourseTheAnswerIsThatIsWhatTheSpecRequiresAndIfAnythingHas"
+ "AProblemWithThatItIsNotABugInAnt";

public static final String LONG_70_NAME
= "ThisNameIsJustSeventyCharactersWhichIsAllowedAccordingToTheSpecsFiller";


+ 1
- 1
src/tests/junit/org/apache/tools/ant/taskdefs/TouchTest.java View File

@@ -193,7 +193,7 @@ public class TouchTest {
* @param timestamp long
* @param time long
*/
public void assertTimesNearlyMatch(long timestamp,long time) {
public void assertTimesNearlyMatch(long timestamp, long time) {
long granularity= FILE_UTILS.getFileTimestampGranularity();
assertTimesNearlyMatch(timestamp, time, granularity);
}


+ 2
- 2
src/tests/junit/org/apache/tools/ant/taskdefs/XmlPropertyTest.java View File

@@ -332,7 +332,7 @@ public class XmlPropertyTest {
* Retrieve a list of xml files in the specified folder
* and below.
*/
private static Enumeration<File> getFiles (final File startingDir) {
private static Enumeration<File> getFiles(final File startingDir) {
Vector<File> result = new Vector<>();
getFiles(startingDir, result);
return result.elements();
@@ -342,7 +342,7 @@ public class XmlPropertyTest {
* Collect a list of xml files in the specified folder
* and below.
*/
private static void getFiles (final File startingDir, Vector<File> collect) {
private static void getFiles(final File startingDir, Vector<File> collect) {
FileFilter filter = file -> {
if (file.isDirectory()) {
return true;


+ 1
- 1
src/tests/junit/org/apache/tools/ant/types/MapperTest.java View File

@@ -222,7 +222,7 @@ public class MapperTest {
String[] targets = fileNameMapper.mapFileName("a");
assertNotNull("no filenames mapped", targets);
assertEquals("wrong number of filenames mapped", 2, targets.length);
List list = Arrays.asList(targets);
List<String> list = Arrays.asList(targets);
assertTrue("cannot find expected target \"def\"", list.contains("def"));
assertTrue("cannot find expected target \"ghi\"", list.contains("ghi"));



+ 1
- 1
src/tests/junit/org/apache/tools/ant/util/LazyFileOutputStreamTest.java View File

@@ -31,7 +31,7 @@ import static org.junit.Assert.assertTrue;
*/
public class LazyFileOutputStreamTest {
private LazyFileOutputStream los;
private final static File f = new File("test.txt");
private static final File f = new File("test.txt");

@Before
public void setUp() {


Loading…
Cancel
Save