@@ -123,7 +123,7 @@ public static void testAnd() {
123
123
final StringBuilder out = new StringBuilder ();
124
124
125
125
// A noisy listener that logs.
126
- HtmlChangeListener <Object > listener = new HtmlChangeListener <Object >() {
126
+ HtmlChangeListener <Object > listener = new HtmlChangeListener <>() {
127
127
128
128
public void discardedTag (Object ctx , String elementName ) {
129
129
assertEquals (context , ctx );
@@ -141,7 +141,7 @@ public void discardedAttributes(
141
141
142
142
};
143
143
144
- Handler <IOException > ioHandler = new Handler <IOException >() {
144
+ Handler <IOException > ioHandler = new Handler <>() {
145
145
146
146
public void handle (IOException x ) {
147
147
log .append ("Handled IOException " + x .getMessage () + "\n " );
@@ -150,7 +150,7 @@ public void handle(IOException x) {
150
150
};
151
151
152
152
// Should not be called.
153
- Handler <String > badHtmlHandler = new Handler <String >() {
153
+ Handler <String > badHtmlHandler = new Handler <>() {
154
154
155
155
public void handle (String x ) {
156
156
throw new AssertionError (x );
@@ -611,7 +611,7 @@ static final class SubstringFilter implements AttributePolicy {
611
611
612
612
public String apply (
613
613
String elementName , String attributeName , String value ) {
614
- List <String > outParts = new ArrayList <String >();
614
+ List <String > outParts = new ArrayList <>();
615
615
for (String part : value .split ("," )) {
616
616
part = part .trim ();
617
617
if (part .contains (substr )) {
0 commit comments