ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional IContract.java
Date Wed, 29 Jun 2005 11:16:46 GMT
peterreilly    2005/06/29 04:16:46

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional
                        IContract.java
  Log:
  checkstyle - line length + javadoc + redundent final
  
  Revision  Changes    Path
  1.26      +6 -4      ant/src/main/org/apache/tools/ant/taskdefs/optional/IContract.java
  
  Index: IContract.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/IContract.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- IContract.java	18 Feb 2005 23:27:59 -0000	1.25
  +++ IContract.java	29 Jun 2005 11:16:46 -0000	1.26
  @@ -759,8 +759,8 @@
                       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 @@
       /**
        * 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 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;
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message