From 8d3bfc0f4715cbe00ce0865d2de5018a7207f687 Mon Sep 17 00:00:00 2001 From: Inderjeet Singh Date: Wed, 6 Apr 2011 00:13:31 +0000 Subject: [PATCH] Marked the getTypeInfoForField() method package private as it was inadvertently marked public. Removed commented out code in pom.xml that is now obsoleted with sonatype syncing. --- gson/pom.xml | 14 -------------- .../main/java/com/google/gson/FieldAttributes.java | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/gson/pom.xml b/gson/pom.xml index bf7d6cfb..831d460d 100644 --- a/gson/pom.xml +++ b/gson/pom.xml @@ -17,20 +17,6 @@ UTF-8 - The Apache Software License, Version 2.0 diff --git a/gson/src/main/java/com/google/gson/FieldAttributes.java b/gson/src/main/java/com/google/gson/FieldAttributes.java index 722cd505..f847b20e 100644 --- a/gson/src/main/java/com/google/gson/FieldAttributes.java +++ b/gson/src/main/java/com/google/gson/FieldAttributes.java @@ -254,7 +254,7 @@ public final class FieldAttributes { * @param typeDefiningF the type that contains the field {@code f} * @return the type information for the field */ - public static Type getTypeInfoForField(Field f, Type typeDefiningF) { + static Type getTypeInfoForField(Field f, Type typeDefiningF) { Class rawType = $Types.getRawType(typeDefiningF); if (!f.getDeclaringClass().isAssignableFrom(rawType)) { // this field is unrelated to the type; the user probably omitted type information