Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ public final boolean containsKey(Object name) {
return false;
}
String fieldName = (String) name;
boolean hasFieldInfo = classInfo.hasFieldInfo(fieldName);
if (hasFieldInfo) {
return true;
FieldInfo fieldInfo = classInfo.getFieldInfo(fieldName);
if (fieldInfo != null) {
return fieldInfo.getValue(this) != null;
}
if (classInfo.getIgnoreCase()) {
fieldName = fieldName.toLowerCase(Locale.US);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,17 @@ public void testPutIgnoreCase_class() {
@Test
public void testGetIgnoreCase_class() {
MyData data = new MyData();
assertFalse(data.containsKey("FIELDA"));
assertFalse(data.containsKey("FieldA"));
assertFalse(data.keySet().contains("FieldA"));
data.fieldA = "someValue";
assertTrue(data.containsKey("FIELDA"));
assertTrue(data.containsKey("FieldA"));
assertTrue(data.keySet().contains("FieldA"));
assertEquals("someValue", data.get("FIELDA"));
data.fieldA = null;
assertFalse(data.containsKey("FIELDA"));
assertFalse(data.keySet().contains("FieldA"));
}

@Test
Expand Down
13 changes: 0 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -405,19 +405,6 @@
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down
Loading