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.
This commit is contained in:
parent
b4eb810347
commit
8d3bfc0f47
14
gson/pom.xml
14
gson/pom.xml
|
@ -17,20 +17,6 @@
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
<!-- distributionManagement>
|
|
||||||
// Disabled for automatic integration with Sonatype
|
|
||||||
<repository>
|
|
||||||
<id>local.repo</id>
|
|
||||||
<name>file repository to svn</name>
|
|
||||||
<url>file://${basedir}/../../mavenrepo</url>
|
|
||||||
</repository>
|
|
||||||
</distributionManagement>
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>gson</id>
|
|
||||||
<url> http://google-gson.googlecode.com/svn/mavenrepo/ </url>
|
|
||||||
</repository>
|
|
||||||
</repositories-->
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
<name>The Apache Software License, Version 2.0</name>
|
<name>The Apache Software License, Version 2.0</name>
|
||||||
|
|
|
@ -254,7 +254,7 @@ public final class FieldAttributes {
|
||||||
* @param typeDefiningF the type that contains the field {@code f}
|
* @param typeDefiningF the type that contains the field {@code f}
|
||||||
* @return the type information for the field
|
* @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);
|
Class<?> rawType = $Types.getRawType(typeDefiningF);
|
||||||
if (!f.getDeclaringClass().isAssignableFrom(rawType)) {
|
if (!f.getDeclaringClass().isAssignableFrom(rawType)) {
|
||||||
// this field is unrelated to the type; the user probably omitted type information
|
// this field is unrelated to the type; the user probably omitted type information
|
||||||
|
|
Loading…
Reference in New Issue
Block a user