thrift-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bryanduxb...@apache.org
Subject svn commit: r1294925 - /thrift/trunk/lib/java/src/org/apache/thrift/TUnion.java
Date Wed, 29 Feb 2012 01:12:28 GMT
Author: bryanduxbury
Date: Wed Feb 29 01:12:27 2012
New Revision: 1294925

URL: http://svn.apache.org/viewvc?rev=1294925&view=rev
Log:
THRIFT-1526. java: Union TupleSchemeFactory returns StandardSchemes

This patch makes it return nice, proper TupleSchemes.

Modified:
    thrift/trunk/lib/java/src/org/apache/thrift/TUnion.java

Modified: thrift/trunk/lib/java/src/org/apache/thrift/TUnion.java
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/java/src/org/apache/thrift/TUnion.java?rev=1294925&r1=1294924&r2=1294925&view=diff
==============================================================================
--- thrift/trunk/lib/java/src/org/apache/thrift/TUnion.java (original)
+++ thrift/trunk/lib/java/src/org/apache/thrift/TUnion.java Wed Feb 29 01:12:27 2012
@@ -17,15 +17,14 @@
  */
 package org.apache.thrift;
 
+import java.nio.ByteBuffer;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
-import java.nio.ByteBuffer;
 
-import org.apache.thrift.TUnion.TUnionStandardScheme;
 import org.apache.thrift.protocol.TField;
 import org.apache.thrift.protocol.TProtocol;
 import org.apache.thrift.protocol.TProtocolException;
@@ -211,7 +210,7 @@ public abstract class TUnion<T extends T
     }
   }
   
-  public static class TUnionStandardScheme extends StandardScheme<TUnion> {
+  private static class TUnionStandardScheme extends StandardScheme<TUnion> {
 
     @Override
     public void read(TProtocol iprot, TUnion struct) throws TException {
@@ -250,12 +249,12 @@ public abstract class TUnion<T extends T
   }
   
   private static class TUnionTupleSchemeFactory implements SchemeFactory {
-    public TUnionStandardScheme getScheme() {
-      return new TUnionStandardScheme();
+    public TUnionTupleScheme getScheme() {
+      return new TUnionTupleScheme();
     }
   }
   
-  public static class TUnionTupleScheme extends TupleScheme<TUnion> {
+  private static class TUnionTupleScheme extends TupleScheme<TUnion> {
 
     @Override
     public void read(TProtocol iprot, TUnion struct) throws TException {



Mime
View raw message