From: <bo...@us...> - 2007-05-07 09:32:50
|
Revision: 207 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=207&view=rev Author: bodewig Date: 2007-05-07 02:32:50 -0700 (Mon, 07 May 2007) Log Message: ----------- better use the result you've just obtained Modified Paths: -------------- trunk/xmlunit/src/java/org/custommonkey/xmlunit/Validator.java Modified: trunk/xmlunit/src/java/org/custommonkey/xmlunit/Validator.java =================================================================== --- trunk/xmlunit/src/java/org/custommonkey/xmlunit/Validator.java 2007-05-01 11:52:08 UTC (rev 206) +++ trunk/xmlunit/src/java/org/custommonkey/xmlunit/Validator.java 2007-05-07 09:32:50 UTC (rev 207) @@ -464,7 +464,9 @@ throw new XMLUnitRuntimeException("failed to resolve entity: " + publicId, e); } - if (s == null && systemId != null) { + if (s != null) { + return s; + } else if (systemId != null) { return new InputSource(systemId); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |