summaryrefslogtreecommitdiff
path: root/lib/java/src/main/java/org/apache/thrift/protocol/TSimpleJSONProtocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'lib/java/src/main/java/org/apache/thrift/protocol/TSimpleJSONProtocol.java')
-rw-r--r--lib/java/src/main/java/org/apache/thrift/protocol/TSimpleJSONProtocol.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/java/src/main/java/org/apache/thrift/protocol/TSimpleJSONProtocol.java b/lib/java/src/main/java/org/apache/thrift/protocol/TSimpleJSONProtocol.java
index 1b69032ea..cceb517a5 100644
--- a/lib/java/src/main/java/org/apache/thrift/protocol/TSimpleJSONProtocol.java
+++ b/lib/java/src/main/java/org/apache/thrift/protocol/TSimpleJSONProtocol.java
@@ -37,6 +37,7 @@ public class TSimpleJSONProtocol extends TProtocol {
/** Factory */
public static class Factory implements TProtocolFactory {
+ @Override
public TProtocol getProtocol(TTransport trans) {
return new TSimpleJSONProtocol(trans);
}
@@ -49,18 +50,11 @@ public class TSimpleJSONProtocol extends TProtocol {
private static final byte[] LBRACKET = new byte[] {'['};
private static final byte[] RBRACKET = new byte[] {']'};
private static final char QUOTE = '"';
-
- private static final TStruct ANONYMOUS_STRUCT = new TStruct();
- private static final TField ANONYMOUS_FIELD = new TField();
- private static final TMessage EMPTY_MESSAGE = new TMessage();
- private static final TSet EMPTY_SET = new TSet();
- private static final TList EMPTY_LIST = new TList();
- private static final TMap EMPTY_MAP = new TMap();
private static final String LIST = "list";
private static final String SET = "set";
private static final String MAP = "map";
- protected class Context {
+ protected static class Context {
protected void write() throws TException {}
/** Returns whether the current value is a key in a map */
@@ -360,8 +354,8 @@ public class TSimpleJSONProtocol extends TProtocol {
/**
* Reading methods.
*
- * <p>simplejson is not meant to be read back into thrift - see
- * http://wiki.apache.org/thrift/ThriftUsageJava - use JSON instead
+ * <p>simplejson is not meant to be read back into thrift - see <a
+ * href="http://wiki.apache.org/thrift/ThriftUsageJava">ThriftUsageJava</a> - use JSON instead
*/
@Override
public TMessage readMessageBegin() throws TException {