@@ -24,12 +24,11 @@ public void set(String name, String value) {
2424 }
2525
2626 public void add (String name , String value ) {
27- properties .put (name , new GXProperty ( name , value ) );
27+ this .put (name , value );
2828 }
2929
30- public void put (String name , String value ) {
31- properties .put (name , new GXProperty (name , value ));
32- }
30+ public void put (String name , String value ) { properties .put (name , new GXProperty (name , value )); }
31+
3332 public String toString () {
3433 StringBuilder builder = new StringBuilder ();
3534 for (GXProperty property : properties .values ()) {
@@ -47,7 +46,10 @@ public void remove(String name) {
4746 }
4847
4948 public boolean containsKey (String name ) {
50- return properties .containsKey (name );
49+ for (String key : properties .keySet ())
50+ if (key .equalsIgnoreCase (name ))
51+ return true ;
52+ return false ;
5153 }
5254
5355 public GXProperty item (int i ) {
@@ -104,7 +106,7 @@ public Object GetJSONObject() {
104106 GXProperty prop = item (i );
105107 try {
106108 jObj .put (prop .getKey (), prop .getValue ());
107- } catch (JSONException e ) {}
109+ } catch (JSONException ignored ) {}
108110 i ++;
109111 }
110112 return jObj ;
@@ -119,7 +121,7 @@ public boolean fromJSonString(String s) {
119121 }
120122 public boolean fromJSonString (String s , GXBaseCollection < SdtMessages_Message > messages ) {
121123 this .clear ();
122- if (!s .equals ( "" )) {
124+ if (!s .isEmpty ( )) {
123125 try {
124126 JSONObject jObj = new JSONObject (s );
125127 Iterator < String > keys = jObj .keys ();
0 commit comments