From 17de6d83025dda402427d74a28a44d45ed4bfa06 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Wed, 29 Jun 2005 11:16:46 +0000 Subject: [PATCH] checkstyle - line length + javadoc + redundent final git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278438 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/taskdefs/optional/IContract.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/IContract.java b/src/main/org/apache/tools/ant/taskdefs/optional/IContract.java index f823d0c44..b8bd6d6cd 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/IContract.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/IContract.java @@ -759,8 +759,8 @@ public class IContract extends MatchingTask { if (targetPrinter != null) { 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) { 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 * invariant. + * @return the string containing the -m option. */ - private final String directiveString() { + private String directiveString() { StringBuffer sb = new StringBuffer(); boolean comma = false; @@ -875,7 +876,8 @@ public class IContract extends MatchingTask { 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; } }