Browse Source

Checkstyle: indentation/whitespace

master
Gintas Grigelionis 7 years ago
parent
commit
ee805a2ff3
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/MacroDef.java
  2. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/junit/Enumerations.java
  3. +1
    -1
      src/tests/junit/org/apache/tools/ant/BuildFileRule.java

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

@@ -663,7 +663,7 @@ public class MacroDef extends AntlibDefinition {
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
return true;
}
if (obj == null || !obj.getClass().equals(getClass())) {
return false;


+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/junit/Enumerations.java View File

@@ -89,7 +89,7 @@ public final class Enumerations {
* }
* </pre>
*/
class CompoundEnumeration<T> implements Enumeration<T> {
class CompoundEnumeration<T> implements Enumeration<T> {

/** enumeration array */
private Enumeration<? extends T>[] enumArray;
@@ -113,7 +113,7 @@ public final class Enumerations {
public boolean hasMoreElements() {
while (index < enumArray.length) {
if (enumArray[index] != null && enumArray[index].hasMoreElements()) {
return true;
return true;
}
index++;
}


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

@@ -168,7 +168,7 @@ public class BuildFileRule extends ExternalResource {
*
* @param targetName the target in the currently configured build file to run.
*/
public void executeTarget(String targetName) {
public void executeTarget(String targetName) {
outputBuffer = new StringBuffer();
PrintStream out = new PrintStream(new AntOutputStream(outputBuffer));
errorBuffer = new StringBuffer();


Loading…
Cancel
Save