Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 65159 invoked by uid 500); 29 Aug 2002 19:22:05 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 65150 invoked by uid 500); 29 Aug 2002 19:22:05 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 29 Aug 2002 19:22:04 -0000 Message-ID: <20020829192204.44827.qmail@icarus.apache.org> From: stevel@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/java/src/javax/xml/transform/stream StreamSource.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N stevel 2002/08/29 12:22:04 Modified: java/src/javax/xml/transform/stream StreamSource.java Log: tab to space and braces around if/else Revision Changes Path 1.2 +11 -9 xml-axis/java/src/javax/xml/transform/stream/StreamSource.java Index: StreamSource.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/javax/xml/transform/stream/StreamSource.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- StreamSource.java 9 Jul 2002 19:45:24 -0000 1.1 +++ StreamSource.java 29 Aug 2002 19:22:04 -0000 1.2 @@ -63,7 +63,7 @@ /** * Acts as an holder for a transformation Source in the form * of a stream of XML markup. - * + * @author unknown */ public class StreamSource implements Source { @@ -268,14 +268,16 @@ * @param f Must a non-null File reference. */ public void setSystemId(File f) { - String fpath=f.getAbsolutePath(); - if (File.separatorChar != '/') { - fpath = fpath.replace(File.separatorChar, '/'); - } - if( fpath.startsWith("/")) - this.systemId= "file://" + fpath; - else - this.systemId = "file:///" + fpath; + String fpath=f.getAbsolutePath(); + if (File.separatorChar != '/') { + fpath = fpath.replace(File.separatorChar, '/'); + } + if( fpath.startsWith("/")) { + this.systemId = "file://" + fpath; + } + else { + this.systemId = "file:///" + fpath; + } } //////////////////////////////////////////////////////////////////////