Skip to content
Permalink
Browse files
8256663: [test] Deprecated use of new Double in jshell ImportTest
8256667: [test] Unexpected warnings in javac test T8074381a

Reviewed-by: lfoltan, mchung
  • Loading branch information
Roger Riggs committed Nov 19, 2020
1 parent 12f93eb commit eb31a05ad92e9a240b39eb6b97ecce2286bc5f78
Showing with 3 additions and 3 deletions.
  1. +1 −1 test/langtools/jdk/jshell/ImportTest.java
  2. +2 −2 test/langtools/tools/javac/lambda/8074381/T8074381a.java
@@ -68,7 +68,7 @@ public void testImportOnDemand() {

public void testImportStatic() {
assertImportKeyMatch("import static java.lang.Math.PI;", "PI", SINGLE_STATIC_IMPORT_SUBKIND, added(VALID));
assertEval("new Double(PI).toString().substring(0, 16).equals(\"3.14159265358979\");", "true");
assertEval("Double.valueOf(PI).toString().substring(0, 16).equals(\"3.14159265358979\");", "true");
}

public void testImportStaticOnDemand() {
@@ -13,7 +13,7 @@
boolean m(String s);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
void testRaw() {
Sub s1 = c -> true;
Sub s2 = Boolean::new;
@@ -23,7 +23,7 @@ void testRaw() {
};
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
void testNonRaw() {
Sub<Integer> s1 = c -> true;
Sub<Integer> s2 = Boolean::new;

0 comments on commit eb31a05

Please sign in to comment.