]> granicus.if.org Git - postgis/commitdiff
Removed obsolete synchronisation from JTS.
authorMarkus Schaber <markus@schabi.de>
Mon, 2 Oct 2006 14:30:47 +0000 (14:30 +0000)
committerMarkus Schaber <markus@schabi.de>
Mon, 2 Oct 2006 14:30:47 +0000 (14:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2493 b70326c6-7e19-0410-871a-916f4a2858ee

CHANGES
java/jdbc/jtssrc/org/postgis/jts/JtsBinaryParser.java
java/jdbc/jtssrc/org/postgis/jts/JtsBinaryWriter.java

diff --git a/CHANGES b/CHANGES
index aa52f242d5b301212e08b68258f075e9bfe29dd9..4e5f56fe7e9dc8f1b5a79144953379dd43dc53a9 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,8 @@
+PostGIS 1.1.5-CVS
+
+       - Java:
+               - Removed obsolete synchronization from Jts code.
+
 PostGIS 1.1.4
 
        - Fixed support for PostgreSQL 8.2
index 6e387209b20a262215ff43b2158bd607b5e44df8..b7edf4d1fa649726fc255e8f44eb4039311a56d4 100644 (file)
@@ -68,22 +68,16 @@ public class JtsBinaryParser {
 
     /**
      * Parse a hex encoded geometry
-     * 
-     * Is synchronized to protect offset counter. (Unfortunately, Java does not
-     * have neither call by reference nor multiple return values.)
      */
-    public synchronized Geometry parse(String value) {
+    public Geometry parse(String value) {
         StringByteGetter bytes = new ByteGetter.StringByteGetter(value);
         return parseGeometry(valueGetterForEndian(bytes));
     }
 
     /**
      * Parse a binary encoded geometry.
-     * 
-     * Is synchronized to protect offset counter. (Unfortunately, Java does not
-     * have neither call by reference nor multiple return values.)
      */
-    public synchronized Geometry parse(byte[] value) {
+    public Geometry parse(byte[] value) {
         BinaryByteGetter bytes = new ByteGetter.BinaryByteGetter(value);
         return parseGeometry(valueGetterForEndian(bytes));
     }
index 32962d81e6d107265f0f3d7dbf8d7e1684c66999..3157e0da2937352733f1e6ce31be9a0a36c78f5b 100644 (file)
@@ -74,42 +74,34 @@ public class JtsBinaryWriter {
     /**
      * Write a hex encoded geometry
      * 
-     * Is synchronized to protect offset counter. (Unfortunately, Java does not
-     * have neither call by reference nor multiple return values.) This is a
-     * TODO item.
-     * 
      * Currently, geometries with more than 2 dimensions and measures are not
      * cleanly supported, but SRID is honored.
      */
-    public synchronized String writeHexed(Geometry geom, byte REP) {
+    public String writeHexed(Geometry geom, byte REP) {
         int length = estimateBytes(geom);
         ByteSetter.StringByteSetter bytes = new ByteSetter.StringByteSetter(length);
         writeGeometry(geom, valueSetterForEndian(bytes, REP));
         return bytes.result();
     }
 
-    public synchronized String writeHexed(Geometry geom) {
+    public String writeHexed(Geometry geom) {
         return writeHexed(geom, ValueSetter.NDR.NUMBER);
     }
 
     /**
      * Write a binary encoded geometry.
      * 
-     * Is synchronized to protect offset counter. (Unfortunately, Java does not
-     * have neither call by reference nor multiple return values.) This is a
-     * TODO item.
-     * 
      * Currently, geometries with more than 2 dimensions and measures are not
      * cleanly supported, but SRID is honored.
      */
-    public synchronized byte[] writeBinary(Geometry geom, byte REP) {
+    public byte[] writeBinary(Geometry geom, byte REP) {
         int length = estimateBytes(geom);
         ByteSetter.BinaryByteSetter bytes = new ByteSetter.BinaryByteSetter(length);
         writeGeometry(geom, valueSetterForEndian(bytes, REP));
         return bytes.result();
     }
 
-    public synchronized byte[] writeBinary(Geometry geom) {
+    public byte[] writeBinary(Geometry geom) {
         return writeBinary(geom, ValueSetter.NDR.NUMBER);
     }