[Schmitzm-commits] r1583 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue May 17 00:44:34 CEST 2011
Author: alfonx
Date: 2011-05-17 00:44:31 +0200 (Tue, 17 May 2011)
New Revision: 1583
Modified:
trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java
Log:
Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java 2011-05-16 17:22:33 UTC (rev 1582)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java 2011-05-16 22:44:31 UTC (rev 1583)
@@ -163,6 +163,8 @@
* @version 1.1
*/
public class StylingUtil {
+ private static final SLDConfiguration SLD_CONFIGURATION = new SLDConfiguration();
+
private static final Logger LOGGER = Logger.getLogger(StylingUtil.class);
static final Literal zeroLit = FeatureUtil.FILTER_FACTORY2.literal(0);
@@ -2917,11 +2919,11 @@
return true;
}
+ final static Parser parser = new Parser(SLD_CONFIGURATION);
/**
* XMl coming from the {@link InputStream} validates against SLD 1.0
*/
public static List<Exception> validateSld(InputStream is) {
- Parser parser = new Parser(new SLDConfiguration());
try {
parser.validate(is);
} catch (Exception e) {
More information about the Schmitzm-commits
mailing list