[Schmitzm-commits] r1039 - trunk/src/skrueger/geotools
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Sep 22 12:54:14 CEST 2010
Author: mojays
Date: 2010-09-22 12:54:14 +0200 (Wed, 22 Sep 2010)
New Revision: 1039
Modified:
trunk/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: trunk/src/skrueger/geotools/StyledLayerUtil.java
===================================================================
--- trunk/src/skrueger/geotools/StyledLayerUtil.java 2010-09-22 10:54:02 UTC (rev 1038)
+++ trunk/src/skrueger/geotools/StyledLayerUtil.java 2010-09-22 10:54:14 UTC (rev 1039)
@@ -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