From a8c701cce0bb5b42ec3d5ec4b17cabe84b3f275b Mon Sep 17 00:00:00 2001 From: Markus Schaber Date: Thu, 24 Feb 2005 11:43:16 +0000 Subject: [PATCH] moved trim() call, this avoids calling trim() twice on unchanged value if we have only (1 2,3 4) rep. git-svn-id: http://svn.osgeo.org/postgis/trunk@1441 b70326c6-7e19-0410-871a-916f4a2858ee --- jdbc2/src/org/postgis/PGboxbase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdbc2/src/org/postgis/PGboxbase.java b/jdbc2/src/org/postgis/PGboxbase.java index bea9c4421..1058325be 100644 --- a/jdbc2/src/org/postgis/PGboxbase.java +++ b/jdbc2/src/org/postgis/PGboxbase.java @@ -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) { -- 2.40.0