From 4fbce1074a50e6c9c85ef3e4d949792630f3fdac Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Fri, 27 Apr 2007 14:38:15 +0000 Subject: [PATCH] ws git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533122 13f79535-47bb-0310-9956-ffa450edef68 --- .../tools/ant/types/resources/StringResource.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/org/apache/tools/ant/types/resources/StringResource.java b/src/main/org/apache/tools/ant/types/resources/StringResource.java index 7c8d25902..fb069cc0a 100644 --- a/src/main/org/apache/tools/ant/types/resources/StringResource.java +++ b/src/main/org/apache/tools/ant/types/resources/StringResource.java @@ -90,20 +90,19 @@ public class StringResource extends Resource { 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 @@ public class StringResource extends Resource { */ 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 class StringResource extends Resource { public StringResourceFilterOutputStream() { super(new ByteArrayOutputStream()); - baos =(ByteArrayOutputStream) out; + baos = (ByteArrayOutputStream) out; } public void close() throws IOException {