Skip to content

Commit

Permalink
Removed senseless instanceof check. Thanks finbugs!
Browse files Browse the repository at this point in the history
  • Loading branch information
sockeqwe committed Aug 26, 2015
1 parent 51d547c commit 2aa6267
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void viewShowThat() {

@Test public void pickingCorrectViewInterface() {

ViewWithMulitpleInterfaces view = new ViewWithMulitpleInterfaces();
TestView view = new ViewWithMulitpleInterfaces();
TestNullObjectPresenter presenter = new TestNullObjectPresenter();

presenter.attachView(view);
Expand All @@ -145,7 +145,6 @@ public void viewShowThat() {

presenter.detachView(false);
Assert.assertNotNull(presenter.getView());
Assert.assertTrue(presenter.getView() instanceof TestView);
Assert.assertFalse(presenter.getView() == view);
}
}

0 comments on commit 2aa6267

Please sign in to comment.