File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/io/appium/java_client/proxy Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1616
1717package io .appium .java_client .proxy ;
1818
19+ import com .google .common .annotations .VisibleForTesting ;
1920import com .google .common .base .Preconditions ;
2021import java .util .Map ;
2122import java .util .WeakHashMap ;
@@ -57,10 +58,11 @@ public class Helpers {
5758
5859 /**
5960 * Gets CACHED_PROXY_CLASSES size.
60- * Used for cache clear up tests.
61+ * Used for cache clear up tests {@see io.appium.java_client.pagefactory_tests.widget.tests.combined.CombinedWidgetTest} .
6162 *
6263 * @return the cached proxy classes size
6364 */
65+ @ VisibleForTesting
6466 public static int getCachedProxyClassesSize () {
6567 return CACHED_PROXY_CLASSES .size ();
6668 }
@@ -128,7 +130,6 @@ public static <T> T createProxy(
128130 @ Nullable ElementMatcher <MethodDescription > extraMethodMatcher
129131 ) {
130132 var signature = ProxyClassSignature .of (cls , constructorArgTypes , extraMethodMatcher );
131- System .out .println ("CACHED_PROXY_CLASSES size = " + CACHED_PROXY_CLASSES .size ());
132133 var proxyClass = CACHED_PROXY_CLASSES .computeIfAbsent (signature , k -> {
133134 Preconditions .checkArgument (constructorArgs .length == constructorArgTypes .length ,
134135 String .format (
You can’t perform that action at this time.
0 commit comments