Skip to content

Commit 845b873

Browse files
committed
- Remove IGeoJson interface and unify object parse routines.
- Add constants and log for error management - Fix code style - Move GXObjectProperties implementation to gxcommon
1 parent 835ffce commit 845b873

File tree

6 files changed

+130
-350
lines changed

6 files changed

+130
-350
lines changed

android/src/main/java/com/genexus/GXGeospatial.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@
1818
//import org.noggit.JSONParser.*;
1919
import org.simpleframework.xml.Root;
2020
import org.simpleframework.xml.Text;
21-
import com.genexus.internet.IGxGeoJSONSerializable;
2221
import com.genexus.internet.IGxJSONSerializable;
2322

24-
2523
@Root
26-
public final class GXGeospatial implements java.io.Serializable, IGxJSONSerializable, IGxGeoJSONSerializable{
24+
public final class GXGeospatial implements java.io.Serializable, IGxJSONSerializable{
2725

2826
private Shape innerShape;
2927
private String lastError;

common/src/main/java/com/genexus/internet/IGxGeoJSONSerializable.java

Lines changed: 0 additions & 11 deletions
This file was deleted.

java/src/main/java/com/genexus/properties/GXObjectProperties.java renamed to common/src/main/java/com/genexus/properties/GXObjectProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.genexus.properties;
22

3-
import com.genexus.internet.*;
3+
import com.genexus.internet.Location;
44

55
public class GXObjectProperties
66
{

java/src/main/java/com/genexus/properties/GXObjectsConfiguration.java renamed to common/src/main/java/com/genexus/properties/GXObjectsConfiguration.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.genexus.properties;
22

3-
import com.genexus.internet.*;
43
import java.util.HashMap;
54

65
public class GXObjectsConfiguration {

gxgeospatial/src/main/java/com/genexus/GXGeospatial.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.genexus.internet.IGxJSONSerializable;
1010
import org.simpleframework.xml.*;
1111
import org.noggit.JSONParser.*;
12-
import com.genexus.internet.IGxGeoJSONSerializable;
1312
import org.locationtech.spatial4j.context.SpatialContext;
1413
import org.locationtech.spatial4j.context.SpatialContextFactory;
1514
import org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory;
@@ -31,7 +30,7 @@
3130

3231

3332
@Root
34-
public final class GXGeospatial implements java.io.Serializable, IGxJSONSerializable, IGxGeoJSONSerializable {
33+
public final class GXGeospatial implements java.io.Serializable, IGxJSONSerializable {
3534

3635
private Shape innerShape;
3736
private String lastError;

0 commit comments

Comments
 (0)