Browse Source

fix TYPE filter

pull/16/head
Jochen Berger 12 years ago
parent
commit
773d292b8e
  1. 9
      json-path/src/main/java/com/jayway/jsonpath/Criteria.java

9
json-path/src/main/java/com/jayway/jsonpath/Criteria.java

@ -205,13 +205,8 @@ public class Criteria {
} else if (CriteriaType.TYPE.equals(key)) {
Class<?> exp = (Class<?>) expectedVal;
Class<?> act = null;
if (map.containsKey(this.key)) {
Object actVal = map.get(this.key);
if (actVal != null) {
act = actVal.getClass();
}
}
Class<?> act = actualVal == null ? null : actualVal.getClass();
if (act == null) {
return false;
} else {

Loading…
Cancel
Save