From ef7bd4c999c6d4d3d418138a03bd98e2efe4ca63 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Mon, 14 Mar 2011 21:50:14 +0000 Subject: [PATCH] Don't document an API that we don't offer! --- .../main/java/com/google/gson/reflect/TypeToken.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gson/src/main/java/com/google/gson/reflect/TypeToken.java b/gson/src/main/java/com/google/gson/reflect/TypeToken.java index e73395d7..65284a7a 100644 --- a/gson/src/main/java/com/google/gson/reflect/TypeToken.java +++ b/gson/src/main/java/com/google/gson/reflect/TypeToken.java @@ -43,16 +43,6 @@ import java.util.Map; * Method#getGenericReturnType extracting types from members} or by using the * {@link Types} factory class. * - *

Along with modeling generic types, this class can resolve type parameters. - * For example, to figure out what type {@code keySet()} returns on a {@code - * Map}, use this code:

   {@code
- *
- *   TypeLiteral> mapType
- *       = new TypeToken>() {};
- *   TypeToken keySetType
- *       = mapType.getReturnType(Map.class.getMethod("keySet"));
- *   System.out.println(keySetType); // prints "Set"}
- * * @author Bob Lee * @author Sven Mawson * @author Jesse Wilson