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 Project.java
Date Mon, 07 Jul 2003 14:54:00 GMT
peterreilly    2003/07/07 07:54:00

  Modified:    src/main/org/apache/tools/ant Project.java
  Log:
  checkstyle changes
  
  Revision  Changes    Path
  1.143     +11 -10    ant/src/main/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Project.java,v
  retrieving revision 1.142
  retrieving revision 1.143
  diff -u -r1.142 -r1.143
  --- Project.java	4 Jul 2003 14:04:53 -0000	1.142
  +++ Project.java	7 Jul 2003 14:54:00 -0000	1.143
  @@ -267,6 +267,7 @@
   
       /**
        * inits a sub project - used by taskdefs.Ant
  +     * @param subProject the subproject to initialize
        */
       public void initSubProject(Project subProject) {
           ComponentHelper.getComponentHelper(subProject)
  @@ -1479,9 +1480,9 @@
        *         <code>false</code> otherwise.
        */
       public static boolean toBoolean(String s) {
  -        return (s.equalsIgnoreCase("on") ||
  -                s.equalsIgnoreCase("true") ||
  -                s.equalsIgnoreCase("yes"));
  +        return (s.equalsIgnoreCase("on")
  +                || s.equalsIgnoreCase("true")
  +                || s.equalsIgnoreCase("yes"));
       }
   
       /**
  @@ -1978,17 +1979,17 @@
        * are called
        * @param obj the object to invoke setProject(this) on
        */
  -    public final void setProjectReference( final Object obj ) {
  -        if ( obj instanceof ProjectComponent ) {
  -            ( (ProjectComponent) obj ).setProject( this );
  +    public final void setProjectReference(final Object obj) {
  +        if (obj instanceof ProjectComponent) {
  +            ((ProjectComponent) obj).setProject(this);
               return;
           }
           try {
               Method method =
                   obj.getClass().getMethod(
  -                    "setProject", new Class[] {Project.class} );
  -            if ( method != null ) {
  -                method.invoke( obj, new Object[] { this } );
  +                    "setProject", new Class[] {Project.class});
  +            if (method != null) {
  +                method.invoke(obj, new Object[] {this});
               }
           } catch (Throwable e) {
               // ignore this if the object does not have
  
  
  

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


Mime
View raw message