11/*
22 * PGgeometry.java
3- *
3+ *
44 * PostGIS extension for PostgreSQL JDBC driver - PGobject Geometry Wrapper
5- *
5+ *
66 * (C) 2004 Paul Ramsey, [email protected] 7- *
7+ *
88 * (C) 2005 Markus Schaber, [email protected] 9- *
9+ *
1010 * (C) 2015 Phillip Ross, [email protected] 1111 *
1212 * This library is free software; you can redistribute it and/or
2222 * You should have received a copy of the GNU Lesser General Public
2323 * License along with this library; if not, write to the Free Software
2424 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25- *
25+ *
2626 */
2727
2828package org .postgis ;
@@ -37,7 +37,6 @@ public class PGgeometry extends PGobject {
3737 private static final long serialVersionUID = 0x100 ;
3838
3939 Geometry geom ;
40- BinaryParser bp = new BinaryParser ();
4140
4241 public PGgeometry () {
4342 this .setType ("geometry" );
@@ -54,7 +53,7 @@ public PGgeometry(String value) throws SQLException {
5453 }
5554
5655 public void setValue (String value ) throws SQLException {
57- geom = geomFromString (value , bp );
56+ geom = geomFromString (value , new BinaryParser () );
5857 }
5958
6059 public static Geometry geomFromString (String value ) throws SQLException {
@@ -131,7 +130,7 @@ public Geometry getGeometry() {
131130 public void setGeometry (Geometry newgeom ) {
132131 this .geom = newgeom ;
133132 }
134-
133+
135134 public int getGeoType () {
136135 return geom .type ;
137136 }
@@ -153,7 +152,7 @@ public Object clone() {
153152
154153 /**
155154 * Splits a String at the first occurrence of border character.
156- *
155+ *
157156 * Poor man's String.split() replacement, as String.split() was invented at
158157 * jdk1.4, and the Debian PostGIS Maintainer had problems building the woody
159158 * backport of his package using DFSG-free compilers. In all the cases we
0 commit comments