@Test public void asdasd() throws Exception { Assert.assertThat( new ExcludeComparisions( new JavaSourceFile( "class A {\n", " void method() {\n", " String name = \"some name\";\n", " if (name == null) {}", " }\n", "}\n" ).nulls() ).asList().isEmpty(), IsEqual.equalTo(true) ); }
@Override public List<Null> asList() { final List<Null> filtered = new ArrayList<>(); for (final Null nil : origin.asList()) { if (!nil.isInComparision()) { filtered.add(nil); } } return filtered; }
ExcludeComparisions implements Nulls { @Override public List<Null> asList() { final List<Null> filtered = new ArrayList<>(); for (final Null nil : origin.asList()) { if (!nil.isInComparision()) { filtered.add(nil); } } return filtered; } }
ExcludeComparisions implements Nulls { @Override public List<Null> asList() { final List<Null> filtered = new ArrayList<>(); for (final Null nil : origin.asList()) { if (!nil.isInComparision()) { filtered.add(nil); } } return filtered; } ExcludeComparisions(final Nulls origin); }
ExcludeComparisions implements Nulls { @Override public List<Null> asList() { final List<Null> filtered = new ArrayList<>(); for (final Null nil : origin.asList()) { if (!nil.isInComparision()) { filtered.add(nil); } } return filtered; } ExcludeComparisions(final Nulls origin); @Override List<Null> asList(); }
ExcludeComparisions implements Nulls { @Override public List<Null> asList() { final List<Null> filtered = new ArrayList<>(); for (final Null nil : origin.asList()) { if (!nil.isInComparision()) { filtered.add(nil); } } return filtered; } ExcludeComparisions(final Nulls origin); @Override List<Null> asList();  }