From 132cc46d07a2b92f273b37f4c163b03a001f1a5a Mon Sep 17 00:00:00 2001 From: David Reiss Date: Thu, 21 Feb 2008 22:49:58 +0000 Subject: [PATCH] Rename TJSONProtocol.java -> TSimpleJSONProtocol.java Summary: Chad Walters is developing a full-featured JSON-based protocol for Java, so we're renaming the existing protocol to something more descriptive. I also edited the file to rename the class and add to the header comment. I have no idea if Subversion does explicit rename tracking, or if git svn is smart enough to mark renames as such, but I would predict "yes" to both. Let's find out. Reviewed By: mcslee, jssarma Test Plan: Ran "ant" in lib/java Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665492 13f79535-47bb-0310-9956-ffa450edef68 --- .../{TJSONProtocol.java => TSimpleJSONProtocol.java} | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) rename lib/java/src/protocol/{TJSONProtocol.java => TSimpleJSONProtocol.java} (96%) diff --git a/lib/java/src/protocol/TJSONProtocol.java b/lib/java/src/protocol/TSimpleJSONProtocol.java similarity index 96% rename from lib/java/src/protocol/TJSONProtocol.java rename to lib/java/src/protocol/TSimpleJSONProtocol.java index fefa65c3..8cb3b699 100644 --- a/lib/java/src/protocol/TJSONProtocol.java +++ b/lib/java/src/protocol/TSimpleJSONProtocol.java @@ -16,17 +16,21 @@ import java.util.Stack; /** * JSON protocol implementation for thrift. * + * This protocol is write-only and produces a simple output format + * suitable for parsing by scripting languages. It should not be + * confused with the full-featured TJSONProtocol. + * * @author Joydeep Sen Sarma * @author Mark Slee */ -public class TJSONProtocol extends TProtocol { +public class TSimpleJSONProtocol extends TProtocol { /** * Factory */ public static class Factory implements TProtocolFactory { public TProtocol getProtocol(TTransport trans) { - return new TJSONProtocol(trans); + return new TSimpleJSONProtocol(trans); } } @@ -99,7 +103,7 @@ public class TJSONProtocol extends TProtocol { /** * Constructor */ - public TJSONProtocol(TTransport trans) { + public TSimpleJSONProtocol(TTransport trans) { super(trans); } -- 2.17.1