You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2007/04/27 16:38:16 UTC

svn commit: r533122 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java

Author: mbenson
Date: Fri Apr 27 07:38:15 2007
New Revision: 533122

URL: http://svn.apache.org/viewvc?view=rev&rev=533122
Log:
ws

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java?view=diff&rev=533122&r1=533121&r2=533122
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java Fri Apr 27 07:38:15 2007
@@ -90,20 +90,19 @@
         return getName();
     }
 
-
     /**
      * The exists attribute tells whether a resource exists.
      *
      * @return true if this resource exists.
      */
     public boolean isExists() {
-        return getValue()!=null;
+        return getValue() != null;
     }
 
     /**
      * Add nested text to this resource.
      * Properties will be expanded during this process.
-     * @since Ant1.7.1
+     * @since Ant 1.7.1
      * @param text text to use as the string resource
      */
     public void addText(String text) {
@@ -223,10 +222,10 @@
      */
     private void setValueFromOutputStream(String output) {
         String value;
-        if(getProject()!=null) {
+        if (getProject() != null) {
             value = getProject().replaceProperties(output);
         } else {
-            value=output;
+            value = output;
         }
         setValue(value);
     }
@@ -236,7 +235,7 @@
 
         public StringResourceFilterOutputStream() {
             super(new ByteArrayOutputStream());
-            baos =(ByteArrayOutputStream) out;
+            baos = (ByteArrayOutputStream) out;
         }
 
         public void close() throws IOException {



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