Skip to content

Commit cb8321b

Browse files
committed
fix #985: maks sFactory private - force injection in test module
1 parent 7c8d5ab commit cb8321b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/SystemServiceFactory.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22

33
import android.content.Context;
44

5-
import org.wordpress.android.util.AppLog.T;
6-
75
public class SystemServiceFactory {
8-
public static SystemServiceFactoryAbstract sFactory;
6+
private static SystemServiceFactoryAbstract sFactory;
97

108
public static Object get(Context context, String name) {
119
if (sFactory == null) {
1210
sFactory = new SystemServiceFactoryDefault();
1311
}
14-
AppLog.v(T.UTILS, "instantiate SystemService using sFactory: " + sFactory.getClass());
1512
return sFactory.get(context, name);
1613
}
1714
}

0 commit comments

Comments
 (0)