# HG changeset patch # User jgindin@chagall # Date 1649383856 14400 # Thu Apr 07 22:10:56 2022 -0400 # Node ID 6f4c01d36878d787724cb3e7a6b14e8b085a2caa # Parent 39a4ab5e97e3933f0d0b8ccec285df1f2c1934a3 Suppress FeatureEnvy on the correct method. diff --git a/ZmanLib/src/main/java/com/gindin/zmanlib/location/ZmanLocationJSON.java b/ZmanLib/src/main/java/com/gindin/zmanlib/location/ZmanLocationJSON.java --- a/ZmanLib/src/main/java/com/gindin/zmanlib/location/ZmanLocationJSON.java +++ b/ZmanLib/src/main/java/com/gindin/zmanlib/location/ZmanLocationJSON.java @@ -1,3 +1,7 @@ +/* + * Copyright (c) 2022. Jay R. Gindin + */ + package com.gindin.zmanlib.location; import org.json.JSONObject; @@ -22,7 +26,6 @@ private static final String NO_NAME = " - - "; - @SuppressWarnings( "FeatureEnvy" ) public static String toJSON( ZmanimLocation location ) { JSONObject jsonLocation = new JSONObject(); @@ -46,6 +49,7 @@ } + @SuppressWarnings( "FeatureEnvy" ) public static ZmanimLocation fromJSON( String json ) { JSONTokener tokener = new JSONTokener( json );