From baf9591d3b0eea51434f1e2ef726c29bd35c85d5 Mon Sep 17 00:00:00 2001 From: Inderjeet Singh Date: Thu, 10 Mar 2011 23:55:16 +0000 Subject: [PATCH] Made constructors package private for package private classes. --- .../main/java/com/google/gson/DisjunctionExclusionStrategy.java | 2 +- gson/src/main/java/com/google/gson/GsonBuilder.java | 2 +- .../java/com/google/gson/ModifyFirstLetterNamingPolicy.java | 2 +- .../src/main/java/com/google/gson/VersionExclusionStrategy.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gson/src/main/java/com/google/gson/DisjunctionExclusionStrategy.java b/gson/src/main/java/com/google/gson/DisjunctionExclusionStrategy.java index c7974b1a..87194051 100644 --- a/gson/src/main/java/com/google/gson/DisjunctionExclusionStrategy.java +++ b/gson/src/main/java/com/google/gson/DisjunctionExclusionStrategy.java @@ -27,7 +27,7 @@ import java.util.Collection; final class DisjunctionExclusionStrategy implements ExclusionStrategy { private final Collection strategies; - public DisjunctionExclusionStrategy(Collection strategies) { + DisjunctionExclusionStrategy(Collection strategies) { Preconditions.checkNotNull(strategies); this.strategies = strategies; } diff --git a/gson/src/main/java/com/google/gson/GsonBuilder.java b/gson/src/main/java/com/google/gson/GsonBuilder.java index a5115fdd..f948a4ed 100644 --- a/gson/src/main/java/com/google/gson/GsonBuilder.java +++ b/gson/src/main/java/com/google/gson/GsonBuilder.java @@ -464,7 +464,7 @@ public final class GsonBuilder { */ public GsonBuilder registerTypeHierarchyAdapter(Class baseType, Object typeAdapter) { Preconditions.checkArgument(typeAdapter instanceof JsonSerializer - || typeAdapter instanceof JsonDeserializer || typeAdapter instanceof InstanceCreator); + || typeAdapter instanceof JsonDeserializer || typeAdapter instanceof InstanceCreator); if (typeAdapter instanceof InstanceCreator) { registerInstanceCreatorForTypeHierarchy(baseType, (InstanceCreator) typeAdapter); } diff --git a/gson/src/main/java/com/google/gson/ModifyFirstLetterNamingPolicy.java b/gson/src/main/java/com/google/gson/ModifyFirstLetterNamingPolicy.java index a5884397..87fd35f5 100644 --- a/gson/src/main/java/com/google/gson/ModifyFirstLetterNamingPolicy.java +++ b/gson/src/main/java/com/google/gson/ModifyFirstLetterNamingPolicy.java @@ -62,7 +62,7 @@ final class ModifyFirstLetterNamingPolicy extends RecursiveFieldNamingPolicy { * @param modifier the type of modification that should be performed * @throws IllegalArgumentException if {@code modifier} is null */ - public ModifyFirstLetterNamingPolicy(LetterModifier modifier) { + ModifyFirstLetterNamingPolicy(LetterModifier modifier) { Preconditions.checkNotNull(modifier); this.letterModifier = modifier; } diff --git a/gson/src/main/java/com/google/gson/VersionExclusionStrategy.java b/gson/src/main/java/com/google/gson/VersionExclusionStrategy.java index 8bd726f3..8f80389b 100644 --- a/gson/src/main/java/com/google/gson/VersionExclusionStrategy.java +++ b/gson/src/main/java/com/google/gson/VersionExclusionStrategy.java @@ -28,7 +28,7 @@ import com.google.gson.annotations.Until; final class VersionExclusionStrategy implements ExclusionStrategy { private final double version; - public VersionExclusionStrategy(double version) { + VersionExclusionStrategy(double version) { Preconditions.checkArgument(version >= 0.0D); this.version = version; }