Skip to content

Commit

Permalink
replace getAsString to toString
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Oct 3, 2024
1 parent 9a28617 commit bf5ba41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public JsonObject toJSON() {
*/
public static Geometry createInstanceFromJson(JsonObject json) throws ArcgisException {
try {
return new MultiPoint(json.getAsString());
return new MultiPoint(json.toString());
} catch (Exception e) {
LOGGER.error(e.getClass().getSimpleName() + " error " + e.getMessage() + " parsing MultiPoint from json " + json);
throw new ArcgisException("Unable to parse MultiPoint from json " + json + " due to " + e.getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public JsonObject toJSON() {
*/
public static Geometry createInstanceFromJson(JsonObject json) throws ArcgisException {
try {
return new PolyLine(json.getAsString());
return new PolyLine(json.toString());
} catch (Exception e) {
LOGGER.error(e.getClass().getSimpleName() + " error " + e.getMessage() + " parsing PolyLine from json " + json);
throw new ArcgisException("Unable to parse PolyLine from json " + json + " due to " + e.getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public JsonObject toJSON() {
*/
public static Geometry createInstanceFromJson(JsonObject json) throws ArcgisException {
try {
return new Polygon(json.getAsString());
return new Polygon(json.toString());
} catch (Exception e) {
LOGGER.error(e.getClass().getSimpleName() + " error " + e.getMessage() + " parsing Polygon from json " + json);
throw new ArcgisException("Unable to parse Polygon from json " + json + " due to " + e.getMessage());
Expand Down

0 comments on commit bf5ba41

Please sign in to comment.