Browse Source

Merge pull request #133 from trajano/remove-unused-logger

Remove unused logger from class
pull/135/head
kallestenflo 9 years ago
parent
commit
6eb66661c4
  1. 5
      json-path/src/main/java/com/jayway/jsonpath/internal/JsonFormatter.java
  2. 4
      json-path/src/main/java/com/jayway/jsonpath/internal/token/RootPathToken.java
  3. 4
      json-path/src/main/java/com/jayway/jsonpath/spi/json/GsonJsonProvider.java
  4. 4
      json-path/src/main/java/com/jayway/jsonpath/spi/mapper/JsonSmartMappingProvider.java

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

@ -14,13 +14,8 @@
*/ */
package com.jayway.jsonpath.internal; package com.jayway.jsonpath.internal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class JsonFormatter { public class JsonFormatter {
private static final Logger logger = LoggerFactory.getLogger(JsonFormatter.class);
private static final String INDENT = " "; private static final String INDENT = " ";
private static final String NEW_LINE = System.getProperty("line.separator"); private static final String NEW_LINE = System.getProperty("line.separator");

4
json-path/src/main/java/com/jayway/jsonpath/internal/token/RootPathToken.java

@ -15,16 +15,12 @@
package com.jayway.jsonpath.internal.token; package com.jayway.jsonpath.internal.token;
import com.jayway.jsonpath.internal.PathRef; import com.jayway.jsonpath.internal.PathRef;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/** /**
* *
*/ */
public class RootPathToken extends PathToken { public class RootPathToken extends PathToken {
private static final Logger logger = LoggerFactory.getLogger(RootPathToken.class);
private PathToken tail; private PathToken tail;
private int tokenCount; private int tokenCount;

4
json-path/src/main/java/com/jayway/jsonpath/spi/json/GsonJsonProvider.java

@ -24,8 +24,6 @@ import com.google.gson.JsonPrimitive;
import com.google.gson.internal.LazilyParsedNumber; import com.google.gson.internal.LazilyParsedNumber;
import com.jayway.jsonpath.InvalidJsonException; import com.jayway.jsonpath.InvalidJsonException;
import com.jayway.jsonpath.JsonPathException; import com.jayway.jsonpath.JsonPathException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
@ -38,8 +36,6 @@ import java.util.Map;
public class GsonJsonProvider extends AbstractJsonProvider { public class GsonJsonProvider extends AbstractJsonProvider {
private static final Logger logger = LoggerFactory.getLogger(GsonJsonProvider.class);
private static final JsonParser parser = new JsonParser(); private static final JsonParser parser = new JsonParser();
private static final Gson gson = new GsonBuilder().create(); private static final Gson gson = new GsonBuilder().create();

4
json-path/src/main/java/com/jayway/jsonpath/spi/mapper/JsonSmartMappingProvider.java

@ -19,8 +19,6 @@ import com.jayway.jsonpath.TypeRef;
import net.minidev.json.JSONValue; import net.minidev.json.JSONValue;
import net.minidev.json.writer.JsonReader; import net.minidev.json.writer.JsonReader;
import net.minidev.json.writer.JsonReaderI; import net.minidev.json.writer.JsonReaderI;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.text.DateFormat; import java.text.DateFormat;
@ -30,8 +28,6 @@ import java.util.concurrent.Callable;
public class JsonSmartMappingProvider implements MappingProvider { public class JsonSmartMappingProvider implements MappingProvider {
private static final Logger logger = LoggerFactory.getLogger(JsonSmartMappingProvider.class);
private static JsonReader DEFAULT = new JsonReader(); private static JsonReader DEFAULT = new JsonReader();
static { static {

Loading…
Cancel
Save