Skip to content

Commit 5c7dd77

Browse files
committed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/org/apache/ibatis/reflection/wrapper/MapWrapper.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ public void set(PropertyTokenizer prop, Object value) {
4040
updateKeyArray();
4141
}
4242

43+
@SuppressWarnings("unchecked")
4344
public String findProperty(String name) {
4445
updateKeyArray();
45-
final int index = -1;
4646
if (name != null) {
4747
Arrays.binarySearch(keyArray, name, new Comparator() {
4848
public int compare(Object o1, Object o2) {
@@ -59,9 +59,6 @@ public int compare(Object o1, Object o2) {
5959
}
6060
});
6161
}
62-
if (index > -1) {
63-
return (String) keyArray[index];
64-
}
6562
return name;
6663
}
6764

0 commit comments

Comments
 (0)