mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-03 12:40:10 +00:00
8074972: Unused imports, a missing javadoc and a build warning
Reviewed-by: hannesw, lagergren
This commit is contained in:
parent
235fd3be93
commit
984eae0ebf
@ -250,6 +250,7 @@ public abstract class AbstractJSObject implements JSObject {
|
||||
*
|
||||
* @return this object's numeric value.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public double toNumber() {
|
||||
return Double.NaN;
|
||||
|
||||
@ -45,5 +45,6 @@ public interface BreakTree extends GotoTree {
|
||||
*
|
||||
* @return label associated with this break statement.
|
||||
*/
|
||||
@Override
|
||||
String getLabel();
|
||||
}
|
||||
|
||||
@ -26,7 +26,6 @@
|
||||
package jdk.nashorn.api.tree;
|
||||
|
||||
import jdk.nashorn.internal.ir.BreakNode;
|
||||
import jdk.nashorn.internal.ir.IdentNode;
|
||||
|
||||
final class BreakTreeImpl extends StatementTreeImpl implements BreakTree {
|
||||
private final String label;
|
||||
|
||||
@ -44,5 +44,6 @@ public interface ContinueTree extends GotoTree {
|
||||
*
|
||||
* @return label associated with this continue statement.
|
||||
*/
|
||||
@Override
|
||||
String getLabel();
|
||||
}
|
||||
|
||||
@ -26,7 +26,6 @@
|
||||
package jdk.nashorn.api.tree;
|
||||
|
||||
import jdk.nashorn.internal.ir.ContinueNode;
|
||||
import jdk.nashorn.internal.ir.IdentNode;
|
||||
|
||||
final class ContinueTreeImpl extends StatementTreeImpl implements ContinueTree {
|
||||
private final String label;
|
||||
|
||||
@ -27,7 +27,6 @@ package jdk.nashorn.api.tree;
|
||||
|
||||
import jdk.nashorn.internal.parser.Token;
|
||||
import jdk.nashorn.internal.runtime.ParserException;
|
||||
import jdk.nashorn.internal.runtime.Source;
|
||||
|
||||
final class DiagnosticImpl implements Diagnostic {
|
||||
private final ParserException exp;
|
||||
|
||||
@ -50,6 +50,7 @@ public interface ForLoopTree extends ConditionalLoopTree {
|
||||
*
|
||||
* @return the condition expression
|
||||
*/
|
||||
@Override
|
||||
ExpressionTree getCondition();
|
||||
|
||||
/**
|
||||
@ -64,5 +65,6 @@ public interface ForLoopTree extends ConditionalLoopTree {
|
||||
*
|
||||
* @return the statement
|
||||
*/
|
||||
@Override
|
||||
StatementTree getStatement();
|
||||
}
|
||||
|
||||
@ -25,7 +25,6 @@
|
||||
|
||||
package jdk.nashorn.api.tree;
|
||||
|
||||
import java.util.List;
|
||||
import jdk.nashorn.internal.ir.ForNode;
|
||||
|
||||
final class ForLoopTreeImpl extends StatementTreeImpl implements ForLoopTree {
|
||||
|
||||
@ -25,8 +25,6 @@
|
||||
|
||||
package jdk.nashorn.api.tree;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* A tree node to declare a new instance of a class.
|
||||
*
|
||||
|
||||
@ -530,6 +530,10 @@ public interface Tree {
|
||||
associatedInterface = intf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the associated interface type that uses this kind.
|
||||
* @return the associated interface
|
||||
*/
|
||||
public Class<? extends Tree> asInterface() {
|
||||
return associatedInterface;
|
||||
}
|
||||
|
||||
@ -25,7 +25,6 @@
|
||||
|
||||
package jdk.nashorn.internal.ir;
|
||||
|
||||
import java.util.function.Function;
|
||||
import jdk.nashorn.internal.codegen.types.Type;
|
||||
import jdk.nashorn.internal.ir.annotations.Immutable;
|
||||
import jdk.nashorn.internal.ir.visitor.NodeVisitor;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user