File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
common/src/main/java/com/genexus/util Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,22 @@ public String toString() {
3838 }
3939
4040 public String get (String name ) {
41- return containsKey (name ) ? properties .get (name ).getValue () : "" ;
41+ return containsKey (name ) ? this .getCaseInsensitive (name ).getValue () : "" ;
42+ }
43+
44+ public GXProperty getCaseInsensitive (String name ) {
45+ for (Map .Entry <String , GXProperty > entry : properties .entrySet ())
46+ if (entry .getKey ().equalsIgnoreCase (name ))
47+ return entry .getValue ();
48+ return null ;
4249 }
4350
4451 public void remove (String name ) {
45- properties .remove (name );
52+ this .removeCaseInsensitive (name );
53+ }
54+
55+ public void removeCaseInsensitive (String name ) {
56+ properties .entrySet ().removeIf (entry -> entry .getKey ().equalsIgnoreCase (name ));
4657 }
4758
4859 public boolean containsKey (String name ) {
You can’t perform that action at this time.
0 commit comments