]> granicus.if.org Git - postgis/commitdiff
moved trim() call, this avoids calling trim() twice on unchanged value if we have...
authorMarkus Schaber <markus@schabi.de>
Thu, 24 Feb 2005 11:43:16 +0000 (11:43 +0000)
committerMarkus Schaber <markus@schabi.de>
Thu, 24 Feb 2005 11:43:16 +0000 (11:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1441 b70326c6-7e19-0410-871a-916f4a2858ee

jdbc2/src/org/postgis/PGboxbase.java

index bea9c4421c4aa4ef5bb786de2562e78f9de38b26..1058325be6a4d083725d0064b523514b90525756 100644 (file)
@@ -88,9 +88,9 @@ public abstract class PGboxbase extends PGobject {
         }
         String myPrefix = getPrefix();
         if (value.startsWith(myPrefix)) {
-            value = value.substring(myPrefix.length());
+            value = value.substring(myPrefix.length()).trim();
         }
-        PGtokenizer t = new PGtokenizer(PGtokenizer.removePara(value.trim()), ',');
+        PGtokenizer t = new PGtokenizer(PGtokenizer.removePara(value), ',');
         llb = new Point(t.getToken(0));
         urt = new Point(t.getToken(1));
         if (srid != -1) {