2020
2121import java .util .Arrays ;
2222import java .util .List ;
23-
24- import jsinterop .annotations .*;
23+ import jsinterop .annotations .JsMethod ;
24+ import jsinterop .annotations .JsProperty ;
25+ import jsinterop .annotations .JsType ;
2526
2627/**
2728 * Tests Java 17 features. It is super sourced so that gwt can be compiles under Java 11.
@@ -45,11 +46,10 @@ public interface TextBlock {
4546 public sealed class Shape permits Square , Circle {
4647 public static int count = 0 ;
4748
48- public static Shape returnAndIncrement (Shape shape ){
49+ public static Shape returnAndIncrement (Shape shape ) {
4950 count ++;
5051 return shape ;
5152 }
52-
5353 }
5454
5555 public final class Square extends Shape {
@@ -174,7 +174,7 @@ public String toString() {
174174 assertEquals ("bar" , RecordWithStaticField .foo );
175175 // Under the current implementation this next line would fail - this is not inconsistent with the spec,
176176 // but it is different than what the JVM does.
177- // assertEquals(0, new TopLevelRecord("", 0).hashCode());
177+ // assertEquals(0, new TopLevelRecord("", 0).hashCode());
178178 assertFalse (0 == new TopLevelRecord ("" , 7 ).hashCode ());
179179 assertFalse (0 == new TopLevelRecord ("Pear" , 0 ).hashCode ());
180180
@@ -188,7 +188,7 @@ public String toString() {
188188 // check that an instance is equal to itself
189189 assertEquals (sameA , sameA );
190190 assertEquals (sameA .hashCode (), sameA .hashCode ());
191- //check that an instance is equal to a different record instance with same values
191+ // check that an instance is equal to a different record instance with same values
192192 assertEquals (sameA , sameB );
193193 assertEquals (sameA .hashCode (), sameB .hashCode ());
194194
0 commit comments