Don't use private Sun API in JsContext

This commit is contained in:
Alexander Udalov
2015-04-18 14:46:33 +03:00
parent d34f103652
commit 02f05a1d9a
@@ -5,7 +5,6 @@
package com.google.dart.compiler.backend.js.ast; package com.google.dart.compiler.backend.js.ast;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import java.util.List; import java.util.List;
@@ -17,7 +16,7 @@ import java.util.List;
public abstract class JsContext<T extends JsNode> { public abstract class JsContext<T extends JsNode> {
public <R extends T> void addPrevious(R node) { public <R extends T> void addPrevious(R node) {
throw new NotImplementedException(); throw new UnsupportedOperationException();
} }
public <R extends T> void addPrevious(List<R> nodes) { public <R extends T> void addPrevious(List<R> nodes) {
@@ -27,7 +26,7 @@ public abstract class JsContext<T extends JsNode> {
} }
public <R extends T> void addNext(R node) { public <R extends T> void addNext(R node) {
throw new NotImplementedException(); throw new UnsupportedOperationException();
} }
public abstract void removeMe(); public abstract void removeMe();