From 7ed5028b8ece946fbd7b960caa5b2177cbdc291a Mon Sep 17 00:00:00 2001 From: ghubstan <36207203+ghubstan@users.noreply.github.com> Date: Tue, 1 Sep 2020 10:58:37 -0300 Subject: [PATCH] Add @VisibleForTesting annotation The access modifier on CompositeOptionSet was changed to public in commit c402386, to make it visible to the apitest config class. The annotation added in this change concisely explains why the class is not package protected. --- .../src/main/java/bisq/common/config/CompositeOptionSet.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/main/java/bisq/common/config/CompositeOptionSet.java b/common/src/main/java/bisq/common/config/CompositeOptionSet.java index f6a28ee3a6..0b3f39687b 100644 --- a/common/src/main/java/bisq/common/config/CompositeOptionSet.java +++ b/common/src/main/java/bisq/common/config/CompositeOptionSet.java @@ -4,6 +4,8 @@ import joptsimple.ArgumentAcceptingOptionSpec; import joptsimple.OptionSet; import joptsimple.OptionSpec; +import com.google.common.annotations.VisibleForTesting; + import java.util.ArrayList; import java.util.List; @@ -17,6 +19,7 @@ import java.util.List; * the command line with those provided via config file, such that those provided at the * command line take precedence over those provided in the config file. */ +@VisibleForTesting public class CompositeOptionSet { private final List optionSets = new ArrayList<>();