Browse Source

Clarified exception handling.

pull/183/merge
Kalle Stenflo 9 years ago
parent
commit
9a98961e21
  1. 5
      json-path/src/main/java/com/jayway/jsonpath/JsonPath.java

5
json-path/src/main/java/com/jayway/jsonpath/JsonPath.java

@ -195,8 +195,7 @@ public class JsonPath {
} catch (RuntimeException e){ } catch (RuntimeException e){
if(!optSuppressExceptions){ if(!optSuppressExceptions){
throw e; throw e;
} } else {
}
if(optAsPathList){ if(optAsPathList){
return (T)configuration.jsonProvider().createArray(); return (T)configuration.jsonProvider().createArray();
} else { } else {
@ -207,6 +206,8 @@ public class JsonPath {
} }
} }
} }
}
}
/** /**
* Set the value this path points to in the provided jsonObject * Set the value this path points to in the provided jsonObject

Loading…
Cancel
Save