8074972: Unused imports, a missing javadoc and a build warning

Reviewed-by: hannesw, lagergren
This commit is contained in:
Athijegannathan Sundararajan 2015-03-11 16:58:04 +05:30
parent 235fd3be93
commit 984eae0ebf
11 changed files with 9 additions and 7 deletions

View File

@ -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;

View File

@ -45,5 +45,6 @@ public interface BreakTree extends GotoTree {
*
* @return label associated with this break statement.
*/
@Override
String getLabel();
}

View File

@ -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;

View File

@ -44,5 +44,6 @@ public interface ContinueTree extends GotoTree {
*
* @return label associated with this continue statement.
*/
@Override
String getLabel();
}

View File

@ -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;

View File

@ -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;

View File

@ -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();
}

View File

@ -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 {

View File

@ -25,8 +25,6 @@
package jdk.nashorn.api.tree;
import java.util.List;
/**
* A tree node to declare a new instance of a class.
*

View File

@ -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;
}

View File

@ -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;