浏览代码

修复访问TypeToken问题

drake 3 年之前
父节点
当前提交
564dff70b0

+ 1 - 1
net/src/main/java/com/drake/net/reflect/$Gson$Preconditions.java

@@ -29,7 +29,7 @@ package com.drake.net.reflect;
  * @author Inderjeet Singh
  * @author Joel Leitch
  */
-final class $Gson$Preconditions {
+public final class $Gson$Preconditions {
     private $Gson$Preconditions() {
         throw new UnsupportedOperationException();
     }

+ 1 - 1
net/src/main/java/com/drake/net/reflect/$Gson$Types.java

@@ -41,7 +41,7 @@ import java.util.Properties;
  * @author Bob Lee
  * @author Jesse Wilson
  */
-final class $Gson$Types {
+public final class $Gson$Types {
     static final Type[] EMPTY_TYPE_ARRAY = new Type[]{};
 
     private $Gson$Types() {

+ 3 - 3
net/src/main/java/com/drake/net/reflect/TypeToken.java

@@ -44,9 +44,9 @@ import java.util.Map;
  * @author Jesse Wilson
  */
 public class TypeToken<T> {
-  final Class<? super T> rawType;
-  final Type type;
-  final int hashCode;
+  public final Class<? super T> rawType;
+  public final Type type;
+  public final int hashCode;
 
   /**
    * Constructs a new type literal. Derives represented class from type