forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r477375 - /forrest/trunk/whiteboard/forrest2/src/core/org/apache/forrest/core/document/DocumentFactory.java
Date Mon, 20 Nov 2006 22:38:45 GMT
Author: rgardler
Date: Mon Nov 20 14:38:44 2006
New Revision: 477375

URL: http://svn.apache.org/viewvc?view=rev&rev=477375
Log:
An "else" can be so vital...

Modified:
    forrest/trunk/whiteboard/forrest2/src/core/org/apache/forrest/core/document/DocumentFactory.java

Modified: forrest/trunk/whiteboard/forrest2/src/core/org/apache/forrest/core/document/DocumentFactory.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/src/core/org/apache/forrest/core/document/DocumentFactory.java?view=diff&rev=477375&r1=477374&r2=477375
==============================================================================
--- forrest/trunk/whiteboard/forrest2/src/core/org/apache/forrest/core/document/DocumentFactory.java
(original)
+++ forrest/trunk/whiteboard/forrest2/src/core/org/apache/forrest/core/document/DocumentFactory.java
Mon Nov 20 14:38:44 2006
@@ -82,7 +82,7 @@
 			if (fileData.toString().contains("<?xml")) {
 				doc = new XMLSourceDocument(fileData.toString(), reader,
 						"application/xml");
-			} if (fileData.toString().toLowerCase().contains("<html>")) {
+			} else if (fileData.toString().toLowerCase().contains("<html>")) {
 				doc = new DefaultSourceDocument(fileData.toString(), reader,
 						"html");
 			} else {



Mime
View raw message