Skip to content

Commit

Permalink
Compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pozhidaev committed Dec 9, 2016
1 parent e6c06d2 commit 61c781f
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/main/java/org/luwrain/app/contacts/Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,12 @@ class Base

boolean init(Luwrain luwrain, Strings strings)
{
NullCheck.notNull(luwrain, "luwrain");
NullCheck.notNull(strings, "strings");
this.luwrain = luwrain;
this.strings = strings;
if (luwrain == null)
throw new NullPointerException("luwrain may not be null");
if (strings == null)
throw new NullPointerException("strings may not be null");
final Object obj = luwrain.getSharedObject(SHARED_OBJECT_NAME);
if (obj == null || !(obj instanceof org.luwrain.pim.contacts.Factory))
return false;
final org.luwrain.pim.contacts.Factory factory = (org.luwrain.pim.contacts.Factory)obj;
final Object obj2 = factory.createContactsStoring();
if (obj2 == null || !(obj2 instanceof ContactsStoring))
return false;
storing = (ContactsStoring)obj2;
return true;
storing = org.luwrain.pim.contacts.Factory.getContactsStoring(luwrain );
return storing != null;
}

boolean hasCurrentContact()
Expand Down

0 comments on commit 61c781f

Please sign in to comment.