Skip to content

Commit

Permalink
Properly capitalize key when looking for "_is"-prefixed keys
Browse files Browse the repository at this point in the history
  • Loading branch information
hugithordarson committed Apr 30, 2024
1 parent 7406c55 commit 9749d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ng-core/src/main/java/ng/kvc/NGKeyValueCoding.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private static KVCReadBinding readBindingForKey( final Object object, final Stri
}

// _isMethod() (is-prefixed, prefixed with an underscore)
method = readMethod( object, "_is" + key );
method = readMethod( object, "_is" + keyCapitalized );

if( method != null ) {
return new MethodReadBinding( method );
Expand Down

0 comments on commit 9749d5c

Please sign in to comment.