Skip to content

Commit

Permalink
fix #985: maks sFactory private - force injection in test module
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Nov 20, 2014
1 parent 7c8d5ab commit cb8321b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

import android.content.Context;

import org.wordpress.android.util.AppLog.T;

public class SystemServiceFactory {
public static SystemServiceFactoryAbstract sFactory;
private static SystemServiceFactoryAbstract sFactory;

public static Object get(Context context, String name) {
if (sFactory == null) {
sFactory = new SystemServiceFactoryDefault();
}
AppLog.v(T.UTILS, "instantiate SystemService using sFactory: " + sFactory.getClass());
return sFactory.get(context, name);
}
}

0 comments on commit cb8321b

Please sign in to comment.