ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r290807 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java
Date Wed, 21 Sep 2005 19:49:32 GMT
Author: mbenson
Date: Wed Sep 21 12:49:29 2005
New Revision: 290807

URL: http://svn.apache.org/viewcvs?rev=290807&view=rev
Log:
add toString implementation

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java?rev=290807&r1=290806&r2=290807&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java Wed Sep 21
12:49:29 2005
@@ -53,7 +53,6 @@
             }
             return result;
         }
-
     };
 
     /**
@@ -129,6 +128,18 @@
         }
         dieOnCircularReference();
         return w.isFilesystemOnly();
+    }
+
+    /**
+     * Format this Restrict collection as a String.
+     * @return the String value of this collection.
+     */
+    public synchronized String toString() {
+        if (isReference()) {
+            return getCheckedRef().toString();
+        }
+        dieOnCircularReference();
+        return w.toString();
     }
 
 }



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


Mime
View raw message