Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@
public class QueryEngineRegistry
{
List<QueryEngineFactory> factories = new ArrayList<>();
static { init(); }

// Singleton
static QueryEngineRegistry registry = null;
private static QueryEngineRegistry registry;
static { init(); }

static public QueryEngineRegistry get()
{
if ( registry == null )
init();
return registry;
}

Expand Down Expand Up @@ -86,7 +85,7 @@ public static QueryEngineRegistry copyFrom(Context context) {

public QueryEngineRegistry() { }

private static synchronized void init()
private static void init()
{
registry = new QueryEngineRegistry();
registry.add(QueryEngineMain.getFactory());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,19 @@
public class UpdateEngineRegistry
{
List<UpdateEngineFactory> factories = new ArrayList<>() ;
static { init() ; }

// Singleton
static UpdateEngineRegistry registry = null ;
private static UpdateEngineRegistry registry ;
static { init() ; }

static public UpdateEngineRegistry get()
{
if ( registry == null )
init() ;
return registry;
}

private UpdateEngineRegistry() { }

private static synchronized void init()
private static void init()
{
registry = new UpdateEngineRegistry() ;
registry.add(UpdateEngineMain.getFactory()) ;
Expand Down