Browse Source

Minor clean up (unused imports, serial…)

pull/7/merge
Stephane Landelle 13 years ago committed by Kalle Stenflo
parent
commit
19473baab6
  1. 1
      json-path/src/main/java/com/jayway/jsonpath/IndefinitePathException.java
  2. 1
      json-path/src/main/java/com/jayway/jsonpath/InvalidJsonException.java
  3. 1
      json-path/src/main/java/com/jayway/jsonpath/InvalidModelPathException.java
  4. 1
      json-path/src/main/java/com/jayway/jsonpath/InvalidPathException.java
  5. 2
      json-path/src/main/java/com/jayway/jsonpath/internal/filter/ArrayEvalFilter.java

1
json-path/src/main/java/com/jayway/jsonpath/IndefinitePathException.java

@ -6,6 +6,7 @@ package com.jayway.jsonpath;
* Date: 3/4/12 * Date: 3/4/12
* Time: 7:15 PM * Time: 7:15 PM
*/ */
@SuppressWarnings("serial")
public class IndefinitePathException extends RuntimeException { public class IndefinitePathException extends RuntimeException {

1
json-path/src/main/java/com/jayway/jsonpath/InvalidJsonException.java

@ -17,6 +17,7 @@ package com.jayway.jsonpath;
/** /**
* @author Kalle Stenflo * @author Kalle Stenflo
*/ */
@SuppressWarnings("serial")
public class InvalidJsonException extends RuntimeException { public class InvalidJsonException extends RuntimeException {
public InvalidJsonException() { public InvalidJsonException() {

1
json-path/src/main/java/com/jayway/jsonpath/InvalidModelPathException.java

@ -6,6 +6,7 @@ package com.jayway.jsonpath;
* Date: 3/4/12 * Date: 3/4/12
* Time: 2:38 PM * Time: 2:38 PM
*/ */
@SuppressWarnings("serial")
public class InvalidModelPathException extends RuntimeException { public class InvalidModelPathException extends RuntimeException {
public InvalidModelPathException() { public InvalidModelPathException() {

1
json-path/src/main/java/com/jayway/jsonpath/InvalidPathException.java

@ -17,6 +17,7 @@ package com.jayway.jsonpath;
/** /**
* @author Kalle Stenflo * @author Kalle Stenflo
*/ */
@SuppressWarnings("serial")
public class InvalidPathException extends RuntimeException { public class InvalidPathException extends RuntimeException {
public InvalidPathException() { public InvalidPathException() {

2
json-path/src/main/java/com/jayway/jsonpath/internal/filter/ArrayEvalFilter.java

@ -73,7 +73,7 @@ public class ArrayEvalFilter extends PathTokenFilter {
if (!jsonProvider.isMap(check)) { if (!jsonProvider.isMap(check)) {
return false; return false;
} }
Map obj = jsonProvider.toMap(check); Map<String, Object> obj = jsonProvider.toMap(check);
if (!obj.containsKey(conditionStatement.getField())) { if (!obj.containsKey(conditionStatement.getField())) {
return false; return false;

Loading…
Cancel
Save