Skip to content

Commit 25acd03

Browse files
committed
fix containsKey to use hasFieldInfo
1 parent 03eff82 commit 25acd03

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

google-http-client/src/main/java/com/google/api/client/util/GenericData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ public final boolean containsKey(Object name) {
8080
return false;
8181
}
8282
String fieldName = (String) name;
83-
FieldInfo fieldInfo = classInfo.getFieldInfo(fieldName);
84-
if (fieldInfo != null) {
83+
boolean hasFieldInfo = classInfo.hasFieldInfo(fieldName);
84+
if (hasFieldInfo) {
8585
return true;
8686
}
8787
if (classInfo.getIgnoreCase()) {

0 commit comments

Comments
 (0)