From 10c39317a108dd1721924f871f7c62721dcadc82 Mon Sep 17 00:00:00 2001 From: Joel Leitch Date: Thu, 8 Oct 2009 21:52:56 +0000 Subject: [PATCH] Makes ExclusionStrategy public. --- gson/src/main/java/com/google/gson/ExclusionStrategy.java | 2 +- gson/src/main/java/com/google/gson/GsonBuilder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gson/src/main/java/com/google/gson/ExclusionStrategy.java b/gson/src/main/java/com/google/gson/ExclusionStrategy.java index 9864aba8..d2f90b24 100644 --- a/gson/src/main/java/com/google/gson/ExclusionStrategy.java +++ b/gson/src/main/java/com/google/gson/ExclusionStrategy.java @@ -78,7 +78,7 @@ package com.google.gson; * * @since 1.4 */ -interface ExclusionStrategy { +public interface ExclusionStrategy { /** * @param f the field object that is under test diff --git a/gson/src/main/java/com/google/gson/GsonBuilder.java b/gson/src/main/java/com/google/gson/GsonBuilder.java index 8760292e..f4f00844 100644 --- a/gson/src/main/java/com/google/gson/GsonBuilder.java +++ b/gson/src/main/java/com/google/gson/GsonBuilder.java @@ -237,7 +237,7 @@ public final class GsonBuilder { * @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern * @since 1.4 */ - GsonBuilder setExclusionStrategies(ExclusionStrategy... strategies) { + public GsonBuilder setExclusionStrategies(ExclusionStrategy... strategies) { for (ExclusionStrategy strategy : strategies) { exclusionStrategies.add(strategy); }