Skip to content

Commit

Permalink
Test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Nov 16, 2023
1 parent 8b8fd6e commit 1549500
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import jsinterop.annotations.JsType;

/**
* Tests Miscelaneous fixes.
* Tests Miscellaneous fixes.
*/
public class CompilerMiscRegressionTest extends GWTTestCase {

Expand All @@ -67,11 +67,11 @@ native double minusAndDecrement(double val) /*-{

/**
* The array {@code map.get("one")[0]} gets normalized (by {@link ImplementCastsAndTypeChecks}) to
* {@code Cast.dynamicCast(map.get("one"), ...)[0]}. The expression resulting from dynamiCast
* {@code Cast.dynamicCast(map.get("one"), ...)[0]}. The expression resulting from dynamicCast
* would have type Object and that would not be a valid type for an array access operation.
*/
public void testOverridingReturnType() {
Map<String, String[]> map = new HashMap();
Map<String, String[]> map = new HashMap<>();
map.put("one", new String[10]);

map.get("one")[0] = "one";
Expand Down Expand Up @@ -462,7 +462,7 @@ public void testNativeConstructorJSNI() {

// Regression tests for issue #9573
public void testTopLevelNameClash() {
boolean isNaN = isNaN(Global.Nan);
boolean isNaN = isNaN(Global.Nan);
assertTrue(isNaN);
}

Expand All @@ -475,7 +475,7 @@ final NativeObjectWithOverlay getThis() {
}
}

public void testOveralyDispatchOnNull() {
public void testOverlayDispatchOnNull() {
// Define a variable where the compiler can not statically determine that it is actually null.
NativeObjectWithOverlay objectWithOverlay =
Math.random() > 1000 ? new NativeObjectWithOverlay() : null;
Expand Down

0 comments on commit 1549500

Please sign in to comment.