Browse Source

checkstyle - line length + javadoc + redundent final

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278438 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
17de6d8302
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/main/org/apache/tools/ant/taskdefs/optional/IContract.java

+ 6
- 4
src/main/org/apache/tools/ant/taskdefs/optional/IContract.java View File

@@ -759,8 +759,8 @@ public class IContract extends MatchingTask {
if (targetPrinter != null) { if (targetPrinter != null) {
targetPrinter.println(srcFile.getAbsolutePath()); targetPrinter.println(srcFile.getAbsolutePath());
} }
File classFile
= new File(buildDir, files[i].substring(0, files[i].indexOf(".java")) + ".class");
File classFile = new File(
buildDir, files[i].substring(0, files[i].indexOf(".java")) + ".class");


if (srcFile.lastModified() > now) { if (srcFile.lastModified() > now) {
log("Warning: file modified in the future: " log("Warning: file modified in the future: "
@@ -820,8 +820,9 @@ public class IContract extends MatchingTask {
/** /**
* Creates the -m option based on the values of controlFile, pre, post and * Creates the -m option based on the values of controlFile, pre, post and
* invariant. * invariant.
* @return the string containing the -m option.
*/ */
private final String directiveString() {
private String directiveString() {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
boolean comma = false; boolean comma = false;


@@ -875,7 +876,8 @@ public class IContract extends MatchingTask {




public void messageLogged(BuildEvent event) { public void messageLogged(BuildEvent event) {
if ("java.lang.NoClassDefFoundError: com/reliablesystems/iContract/Tool".equals(event.getMessage())) {
if ("java.lang.NoClassDefFoundError: com/reliablesystems/iContract/Tool"
.equals(event.getMessage())) {
iContractMissing = true; iContractMissing = true;
} }
} }


Loading…
Cancel
Save