Skip to content

Commit

Permalink
Remove code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Apr 7, 2016
1 parent 317a3fd commit 5891894
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ public String getCurrentWord() {
}

public boolean continuesSuggestion(char newChar) {
if (!getSuggestedWord().startsWith(currentWord + newChar)) {
return false;
}
return true;
return !getSuggestedWord().startsWith(currentWord + newChar);
}

public void updateState(char newChar) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

public class AutoCompleterFactoryTest {
@Before
public void setup() {
public void setUp() {
Globals.prefs = mock(JabRefPreferences.class);
}

@After
public void teardown() {
public void tearDown() {
Globals.prefs = null;
}

Expand Down

0 comments on commit 5891894

Please sign in to comment.