Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Madmat8 committed Nov 10, 2023
1 parent c1e51b5 commit e1025b1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ public Object invoke(Object proxy, Method m, Object[] args)
String attrName = m.getName();
String methodPrefix = "";
if (prefix != null && !prefix.equals("") && attrName.startsWith(prefix)) {
attrName = Character.toUpperCase(m.getName().charAt(prefix.length())) + m.getName().substring(prefix.length() + 1);
attrName = Character.toUpperCase(attrName.charAt(prefix.length())) + attrName.substring(prefix.length() + 1);
methodPrefix = prefix;
} else if (!MapProxy.METHOD_ADD.equals(m.getName()) && m.getName().startsWith(MapProxy.METHOD_ADD)) {
attrName = Character.toUpperCase(m.getName().charAt(MapProxy.METHOD_ADD.length())) + m.getName().substring(MapProxy.METHOD_ADD.length() + 1);
} else if (!MapProxy.METHOD_ADD.equals(attrName) && attrName.startsWith(MapProxy.METHOD_ADD)) {
attrName = Character.toUpperCase(attrName.charAt(MapProxy.METHOD_ADD.length())) + attrName.substring(MapProxy.METHOD_ADD.length() + 1);
methodPrefix = MapProxy.METHOD_ADD;
}
Method method = null;
Expand Down

0 comments on commit e1025b1

Please sign in to comment.