[Schmitzm-commits] r1227 - trunk/src/schmitzm/geotools/feature

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 3 21:14:09 CET 2010


Author: alfonx
Date: 2010-11-03 21:14:09 +0100 (Wed, 03 Nov 2010)
New Revision: 1227

Modified:
   trunk/src/schmitzm/geotools/feature/FeatureUtil.java
Log:


Modified: trunk/src/schmitzm/geotools/feature/FeatureUtil.java
===================================================================
--- trunk/src/schmitzm/geotools/feature/FeatureUtil.java	2010-11-03 17:35:00 UTC (rev 1226)
+++ trunk/src/schmitzm/geotools/feature/FeatureUtil.java	2010-11-03 20:14:09 UTC (rev 1227)
@@ -2407,11 +2407,11 @@
 				// Byte.class
 				// || c == BigInteger.class || c == BigDecimal.class
 				// || c == Float.class || c == Short.class || c == Long.class) {
-				if (checkAttributeNameRestrictions(pd.getName().getLocalPart())) {
-					numericalFieldNames.add(pd.getLocalName());
-				} else {
+				if (validOnly && !pd.getLocalName().matches("\\w+")){
 					LOGGER.info("Hidden attribut " + pd.getLocalName()
 							+ " in getNumericalFieldNames");
+				} else {
+					numericalFieldNames.add(pd.getLocalName());
 				}
 
 			}



More information about the Schmitzm-commits mailing list