3434 */
3535public class NotYetImplementedTest {
3636
37- private Set <String > entries_ = new TreeSet <>();
37+ private final Set <String > entries_ = new TreeSet <>();
3838
3939 /**
4040 * @throws Exception if the test fails
@@ -121,13 +121,13 @@ else if (line.startsWith(" @HtmlUnitNYI")) {
121121 browser += "EDGE" ;
122122 }
123123 if (nyiString .contains ("FF_ESR = " )) {
124- if (browser .length () > 0 ) {
124+ if (! browser .isEmpty () ) {
125125 browser += ", " ;
126126 }
127127 browser += "FF_ESR" ;
128128 }
129129 if (nyiString .contains ("FF = " )) {
130- if (browser .length () > 0 ) {
130+ if (! browser .isEmpty () ) {
131131 browser += ", " ;
132132 }
133133 browser += "FF" ;
@@ -163,7 +163,7 @@ private static String getDescription(final List<String> lines, final int index)
163163 break ;
164164 }
165165 if (start != -1 ) {
166- if (builder .length () != 0 ) {
166+ if (! builder .isEmpty () ) {
167167 builder .append (' ' );
168168 }
169169 builder .append (line , start , line .length () - (end ? 2 : 0 ));
@@ -232,7 +232,7 @@ private void save() throws Exception {
232232 builder .append ("</td>\n " );
233233 lastFile = file ;
234234 }
235- builder .append (" <td>" ).append (Integer . toString ( count ++) ).append ("</td>\n " );
235+ builder .append (" <td>" ).append (count ++).append ("</td>\n " );
236236
237237 builder .append (" <td><a target='_blank' href='https://github.com/HtmlUnit/htmlunit/blob/master/" )
238238 .append (file )
@@ -268,7 +268,7 @@ private void save() throws Exception {
268268 final StringBuilder overview = new StringBuilder ();
269269 overview .append ("<table class='bottomBorder'>\n " );
270270 overview .append (" <tr>\n " );
271- overview .append (" <td class='numeric'>" ).append (Integer . toString ( count ) ).append ("</td>\n " );
271+ overview .append (" <td class='numeric'>" ).append (count ).append ("</td>\n " );
272272 overview .append (" <td>methods marked as NotYetImplemented</td>\n " );
273273 overview .append (" </tr>\n " );
274274
@@ -283,7 +283,7 @@ private void save() throws Exception {
283283 overview .append (" </tr>\n " );
284284
285285 overview .append (" <tr>\n " );
286- overview .append (" <td class='numeric'>" ).append (Integer . toString ( countChrome ) ).append ("</td>\n " );
286+ overview .append (" <td class='numeric'>" ).append (countChrome ).append ("</td>\n " );
287287 overview .append (" <td>for Chrome</td>\n " );
288288 overview .append (" </tr>\n " );
289289
0 commit comments