svn commit: r15343 - trunk/src/argouml-app/src/org/argouml/persistence/ZargoFilePersister.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2008-07-22 11:15:23-0700
New Revision: 15343

Modified:
   trunk/src/argouml-app/src/org/argouml/persistence/ZargoFilePersister.java

Log:
Revert previous fix for issue 5247

Modified: trunk/src/argouml-app/src/org/argouml/persistence/ZargoFilePersister.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/persistence/ZargoFilePersister.java?view=diff&rev=15343&p1=trunk/src/argouml-app/src/org/argouml/persistence/ZargoFilePersister.java&p2=trunk/src/argouml-app/src/org/argouml/persistence/ZargoFilePersister.java&r1=15342&r2=15343
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/persistence/ZargoFilePersister.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/persistence/ZargoFilePersister.java	2008-07-22 11:15:23-0700
@@ -450,7 +450,7 @@
                 BufferedReader reader = new BufferedReader(
                         new InputStreamReader(sub, encoding));
                 String firstLine = reader.readLine();
-                if (firstLine.contains("<?xml")) {
+                if (firstLine.startsWith("<?xml")) {
                     // Skip the 2 lines
                     //<?xml version="1.0" encoding="UTF-8" ?>
                     //<!DOCTYPE pgml SYSTEM "pgml.dtd">
@@ -479,7 +479,7 @@
             BufferedReader reader = new BufferedReader(isr);
             
             String firstLine = reader.readLine();
-            if (firstLine.contains("<?xml")) {
+            if (firstLine.startsWith("<?xml")) {
                 // Skip the 2 lines
                 //<?xml version="1.0" encoding="UTF-8" ?>
                 //<!DOCTYPE todo SYSTEM "todo.dtd" >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.