[Schmitzm-commits] r1038 - branches/2.2.x/src/skrueger/geotools

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Sep 22 12:54:03 CEST 2010


Author: mojays
Date: 2010-09-22 12:54:02 +0200 (Wed, 22 Sep 2010)
New Revision: 1038

Modified:
   branches/2.2.x/src/skrueger/geotools/StyledLayerUtil.java
Log:
BugFix for AttributeMetadata-Parsing: Do not use String.valueOf(String) because for NULL this method does return "null" and not NULL

Modified: branches/2.2.x/src/skrueger/geotools/StyledLayerUtil.java
===================================================================
--- branches/2.2.x/src/skrueger/geotools/StyledLayerUtil.java	2010-09-22 10:26:28 UTC (rev 1037)
+++ branches/2.2.x/src/skrueger/geotools/StyledLayerUtil.java	2010-09-22 10:54:02 UTC (rev 1038)
@@ -285,10 +285,8 @@
 	 */
 	public static AttributeMetadataImpl parseAttributeMetaData(
 			final Element element) {
-		final String namespace = String.valueOf(element
-				.getAttributeValue("namespace"));
-		final String localname = String.valueOf(element
-				.getAttributeValue("localname"));
+		final String namespace = element.getAttributeValue("namespace");
+		final String localname = element.getAttributeValue("localname");
 		final NameImpl aName = new NameImpl(namespace, localname);
 		final Boolean visible = Boolean.valueOf(element
 				.getAttributeValue("visible"));



More information about the Schmitzm-commits mailing list