[Schmitzm-commits] r1486 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Feb 3 14:47:54 CET 2011
Author: alfonx
Date: 2011-02-03 14:47:52 +0100 (Thu, 03 Feb 2011)
New Revision: 1486
Modified:
trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/FeatureUtil.java
Log:
Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/FeatureUtil.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/FeatureUtil.java 2011-02-03 11:06:35 UTC (rev 1485)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/FeatureUtil.java 2011-02-03 13:47:52 UTC (rev 1486)
@@ -162,12 +162,12 @@
*
* @return an empty list if formal == <code>null</code>.
*/
- public static List<String> getCQLAttributNames(String formel) {
- ArrayList<String> result = new ArrayList<String>();
+ public static List<String> getCQLAttributNames(final String formel) {
+ final ArrayList<String> result = new ArrayList<String>();
if (formel == null)
return result;
- String[] split = formel.split("[^a-zA-Z0-9_]");
+ final String[] split = formel.split("[^a-zA-Z0-9_]");
for (String attName : split) {
// Mögliche Klammern entfernen
@@ -181,17 +181,17 @@
try {
Double.parseDouble(attName);
continue;
- } catch (Exception e) {
+ } catch (final Exception e) {
}
// Ignore number literals
try {
- Number parsed = NumberFormat.getInstance().parse(attName);
+ final Number parsed = NumberFormat.getInstance().parse(attName);
// Acjhtung "34hf" wird hier einfach geparsed!!
if (parsed.toString().length() == attName.length())
continue;
- } catch (Exception e) {
+ } catch (final Exception e) {
}
result.add(attName);
More information about the Schmitzm-commits
mailing list