Switch back to older Spotless version
diff --git a/build.gradle b/build.gradle index d48cbaf..074ef63 100644 --- a/build.gradle +++ b/build.gradle
@@ -7,7 +7,7 @@ id 'jacoco' id 'distribution' id 'checkstyle' - id 'com.diffplug.spotless' version "6.19.0" + id 'com.diffplug.spotless' version "5.17.1" id 'com.github.spotbugs' version "5.0.13" }
diff --git a/src/org/mozilla/javascript/BaseFunction.java b/src/org/mozilla/javascript/BaseFunction.java index 219d51d..0acfa10 100644 --- a/src/org/mozilla/javascript/BaseFunction.java +++ b/src/org/mozilla/javascript/BaseFunction.java
@@ -32,9 +32,7 @@ obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } - /** - * @deprecated Use {@link #init(Context, Scriptable, boolean)} instead - */ + /** @deprecated Use {@link #init(Context, Scriptable, boolean)} instead */ @Deprecated static void init(Scriptable scope, boolean sealed) { init(Context.getContext(), scope, sealed);
diff --git a/src/org/mozilla/javascript/ClassCache.java b/src/org/mozilla/javascript/ClassCache.java index c9e326d..b49f477 100644 --- a/src/org/mozilla/javascript/ClassCache.java +++ b/src/org/mozilla/javascript/ClassCache.java
@@ -132,9 +132,7 @@ cachingIsEnabled = enabled; } - /** - * @return a map from classes to associated JavaMembers objects - */ + /** @return a map from classes to associated JavaMembers objects */ Map<CacheKey, JavaMembers> getClassCacheMap() { if (classTable == null) { // Use 1 as concurrency level here and for other concurrent hash maps
diff --git a/src/org/mozilla/javascript/CompilerEnvirons.java b/src/org/mozilla/javascript/CompilerEnvirons.java index becc48b..cdb16827 100644 --- a/src/org/mozilla/javascript/CompilerEnvirons.java +++ b/src/org/mozilla/javascript/CompilerEnvirons.java
@@ -142,9 +142,7 @@ this.generatingSource = generatingSource; } - /** - * @return true iff code will be generated with callbacks to enable instruction thresholds - */ + /** @return true iff code will be generated with callbacks to enable instruction thresholds */ public boolean isGenerateObserverCount() { return generateObserverCount; }
diff --git a/src/org/mozilla/javascript/Context.java b/src/org/mozilla/javascript/Context.java index 124c68b..dfbce47 100644 --- a/src/org/mozilla/javascript/Context.java +++ b/src/org/mozilla/javascript/Context.java
@@ -158,9 +158,7 @@ */ public static final int FEATURE_PARENT_PROTO_PROPERTIES = 5; - /** - * @deprecated In previous releases, this name was given to FEATURE_PARENT_PROTO_PROPERTIES. - */ + /** @deprecated In previous releases, this name was given to FEATURE_PARENT_PROTO_PROPERTIES. */ @Deprecated public static final int FEATURE_PARENT_PROTO_PROPRTIES = 5; /** @@ -949,36 +947,28 @@ return reportRuntimeError(msg); } - /** - * @deprecated Use {@link #reportRuntimeErrorById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #reportRuntimeErrorById(String messageId, Object... args)} instead */ @Deprecated static EvaluatorException reportRuntimeError0(String messageId) { String msg = ScriptRuntime.getMessageById(messageId); return reportRuntimeError(msg); } - /** - * @deprecated Use {@link #reportRuntimeErrorById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #reportRuntimeErrorById(String messageId, Object... args)} instead */ @Deprecated static EvaluatorException reportRuntimeError1(String messageId, Object arg1) { String msg = ScriptRuntime.getMessageById(messageId, arg1); return reportRuntimeError(msg); } - /** - * @deprecated Use {@link #reportRuntimeErrorById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #reportRuntimeErrorById(String messageId, Object... args)} instead */ @Deprecated static EvaluatorException reportRuntimeError2(String messageId, Object arg1, Object arg2) { String msg = ScriptRuntime.getMessageById(messageId, arg1, arg2); return reportRuntimeError(msg); } - /** - * @deprecated Use {@link #reportRuntimeErrorById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #reportRuntimeErrorById(String messageId, Object... args)} instead */ @Deprecated static EvaluatorException reportRuntimeError3( String messageId, Object arg1, Object arg2, Object arg3) { @@ -986,9 +976,7 @@ return reportRuntimeError(msg); } - /** - * @deprecated Use {@link #reportRuntimeErrorById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #reportRuntimeErrorById(String messageId, Object... args)} instead */ @Deprecated static EvaluatorException reportRuntimeError4( String messageId, Object arg1, Object arg2, Object arg3, Object arg4) {
diff --git a/src/org/mozilla/javascript/ContextFactory.java b/src/org/mozilla/javascript/ContextFactory.java index 8f5939f..6ee0116 100644 --- a/src/org/mozilla/javascript/ContextFactory.java +++ b/src/org/mozilla/javascript/ContextFactory.java
@@ -527,9 +527,7 @@ return enterContext(null); } - /** - * @deprecated Use {@link Context#exit()} instead. - */ + /** @deprecated Use {@link Context#exit()} instead. */ @Deprecated public final void exit() { Context.exit();
diff --git a/src/org/mozilla/javascript/ContextListener.java b/src/org/mozilla/javascript/ContextListener.java index 0862b36..c12d985 100644 --- a/src/org/mozilla/javascript/ContextListener.java +++ b/src/org/mozilla/javascript/ContextListener.java
@@ -15,15 +15,11 @@ @Deprecated public interface ContextListener extends ContextFactory.Listener { - /** - * @deprecated Rhino runtime never calls the method. - */ + /** @deprecated Rhino runtime never calls the method. */ @Deprecated public void contextEntered(Context cx); - /** - * @deprecated Rhino runtime never calls the method. - */ + /** @deprecated Rhino runtime never calls the method. */ @Deprecated public void contextExited(Context cx); }
diff --git a/src/org/mozilla/javascript/ContinuationPending.java b/src/org/mozilla/javascript/ContinuationPending.java index 7dbec7a..f167560 100644 --- a/src/org/mozilla/javascript/ContinuationPending.java +++ b/src/org/mozilla/javascript/ContinuationPending.java
@@ -53,9 +53,7 @@ this.continuationState = continuation; } - /** - * @return internal continuation state - */ + /** @return internal continuation state */ NativeContinuation getContinuationState() { return continuationState; } @@ -70,9 +68,7 @@ this.applicationState = applicationState; } - /** - * @return arbitrary application state - */ + /** @return arbitrary application state */ public Object getApplicationState() { return applicationState; }
diff --git a/src/org/mozilla/javascript/Delegator.java b/src/org/mozilla/javascript/Delegator.java index ad0be7f..81d5876 100644 --- a/src/org/mozilla/javascript/Delegator.java +++ b/src/org/mozilla/javascript/Delegator.java
@@ -74,17 +74,13 @@ this.obj = obj; } - /** - * @see org.mozilla.javascript.Scriptable#getClassName - */ + /** @see org.mozilla.javascript.Scriptable#getClassName */ @Override public String getClassName() { return getDelegee().getClassName(); } - /** - * @see org.mozilla.javascript.Scriptable#get(String, Scriptable) - */ + /** @see org.mozilla.javascript.Scriptable#get(String, Scriptable) */ @Override public Object get(String name, Scriptable start) { return getDelegee().get(name, start); @@ -99,17 +95,13 @@ return Scriptable.NOT_FOUND; } - /** - * @see org.mozilla.javascript.Scriptable#get(int, Scriptable) - */ + /** @see org.mozilla.javascript.Scriptable#get(int, Scriptable) */ @Override public Object get(int index, Scriptable start) { return getDelegee().get(index, start); } - /** - * @see org.mozilla.javascript.Scriptable#has(String, Scriptable) - */ + /** @see org.mozilla.javascript.Scriptable#has(String, Scriptable) */ @Override public boolean has(String name, Scriptable start) { return getDelegee().has(name, start); @@ -124,25 +116,19 @@ return false; } - /** - * @see org.mozilla.javascript.Scriptable#has(int, Scriptable) - */ + /** @see org.mozilla.javascript.Scriptable#has(int, Scriptable) */ @Override public boolean has(int index, Scriptable start) { return getDelegee().has(index, start); } - /** - * @see org.mozilla.javascript.Scriptable#put(String, Scriptable, Object) - */ + /** @see org.mozilla.javascript.Scriptable#put(String, Scriptable, Object) */ @Override public void put(String name, Scriptable start, Object value) { getDelegee().put(name, start, value); } - /** - * @see org.mozilla.javascript.SymbolScriptable#put(Symbol, Scriptable, Object) - */ + /** @see org.mozilla.javascript.SymbolScriptable#put(Symbol, Scriptable, Object) */ @Override public void put(Symbol symbol, Scriptable start, Object value) { final Scriptable delegee = getDelegee(); @@ -151,17 +137,13 @@ } } - /** - * @see org.mozilla.javascript.Scriptable#put(int, Scriptable, Object) - */ + /** @see org.mozilla.javascript.Scriptable#put(int, Scriptable, Object) */ @Override public void put(int index, Scriptable start, Object value) { getDelegee().put(index, start, value); } - /** - * @see org.mozilla.javascript.Scriptable#delete(String) - */ + /** @see org.mozilla.javascript.Scriptable#delete(String) */ @Override public void delete(String name) { getDelegee().delete(name); @@ -175,49 +157,37 @@ } } - /** - * @see org.mozilla.javascript.Scriptable#delete(int) - */ + /** @see org.mozilla.javascript.Scriptable#delete(int) */ @Override public void delete(int index) { getDelegee().delete(index); } - /** - * @see org.mozilla.javascript.Scriptable#getPrototype - */ + /** @see org.mozilla.javascript.Scriptable#getPrototype */ @Override public Scriptable getPrototype() { return getDelegee().getPrototype(); } - /** - * @see org.mozilla.javascript.Scriptable#setPrototype - */ + /** @see org.mozilla.javascript.Scriptable#setPrototype */ @Override public void setPrototype(Scriptable prototype) { getDelegee().setPrototype(prototype); } - /** - * @see org.mozilla.javascript.Scriptable#getParentScope - */ + /** @see org.mozilla.javascript.Scriptable#getParentScope */ @Override public Scriptable getParentScope() { return getDelegee().getParentScope(); } - /** - * @see org.mozilla.javascript.Scriptable#setParentScope - */ + /** @see org.mozilla.javascript.Scriptable#setParentScope */ @Override public void setParentScope(Scriptable parent) { getDelegee().setParentScope(parent); } - /** - * @see org.mozilla.javascript.Scriptable#getIds - */ + /** @see org.mozilla.javascript.Scriptable#getIds */ @Override public Object[] getIds() { return getDelegee().getIds(); @@ -241,17 +211,13 @@ : getDelegee().getDefaultValue(hint); } - /** - * @see org.mozilla.javascript.Scriptable#hasInstance - */ + /** @see org.mozilla.javascript.Scriptable#hasInstance */ @Override public boolean hasInstance(Scriptable instance) { return getDelegee().hasInstance(instance); } - /** - * @see org.mozilla.javascript.Function#call - */ + /** @see org.mozilla.javascript.Function#call */ @Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { return ((Function) getDelegee()).call(cx, scope, thisObj, args);
diff --git a/src/org/mozilla/javascript/EcmaError.java b/src/org/mozilla/javascript/EcmaError.java index 910f403..6565f7b 100644 --- a/src/org/mozilla/javascript/EcmaError.java +++ b/src/org/mozilla/javascript/EcmaError.java
@@ -90,41 +90,31 @@ return errorMessage; } - /** - * @deprecated Use {@link RhinoException#sourceName()} from the super class. - */ + /** @deprecated Use {@link RhinoException#sourceName()} from the super class. */ @Deprecated public String getSourceName() { return sourceName(); } - /** - * @deprecated Use {@link RhinoException#lineNumber()} from the super class. - */ + /** @deprecated Use {@link RhinoException#lineNumber()} from the super class. */ @Deprecated public int getLineNumber() { return lineNumber(); } - /** - * @deprecated Use {@link RhinoException#columnNumber()} from the super class. - */ + /** @deprecated Use {@link RhinoException#columnNumber()} from the super class. */ @Deprecated public int getColumnNumber() { return columnNumber(); } - /** - * @deprecated Use {@link RhinoException#lineSource()} from the super class. - */ + /** @deprecated Use {@link RhinoException#lineSource()} from the super class. */ @Deprecated public String getLineSource() { return lineSource(); } - /** - * @deprecated Always returns <b>null</b>. - */ + /** @deprecated Always returns <b>null</b>. */ @Deprecated public Scriptable getErrorObject() { return null;
diff --git a/src/org/mozilla/javascript/EvaluatorException.java b/src/org/mozilla/javascript/EvaluatorException.java index b03747a..1ab5437 100644 --- a/src/org/mozilla/javascript/EvaluatorException.java +++ b/src/org/mozilla/javascript/EvaluatorException.java
@@ -44,33 +44,25 @@ recordErrorOrigin(sourceName, lineNumber, lineSource, columnNumber); } - /** - * @deprecated Use {@link RhinoException#sourceName()} from the super class. - */ + /** @deprecated Use {@link RhinoException#sourceName()} from the super class. */ @Deprecated public String getSourceName() { return sourceName(); } - /** - * @deprecated Use {@link RhinoException#lineNumber()} from the super class. - */ + /** @deprecated Use {@link RhinoException#lineNumber()} from the super class. */ @Deprecated public int getLineNumber() { return lineNumber(); } - /** - * @deprecated Use {@link RhinoException#columnNumber()} from the super class. - */ + /** @deprecated Use {@link RhinoException#columnNumber()} from the super class. */ @Deprecated public int getColumnNumber() { return columnNumber(); } - /** - * @deprecated Use {@link RhinoException#lineSource()} from the super class. - */ + /** @deprecated Use {@link RhinoException#lineSource()} from the super class. */ @Deprecated public String getLineSource() { return lineSource();
diff --git a/src/org/mozilla/javascript/ImporterTopLevel.java b/src/org/mozilla/javascript/ImporterTopLevel.java index 328ea36..9baa400 100644 --- a/src/org/mozilla/javascript/ImporterTopLevel.java +++ b/src/org/mozilla/javascript/ImporterTopLevel.java
@@ -138,9 +138,7 @@ return null; } - /** - * @deprecated Kept only for compatibility. - */ + /** @deprecated Kept only for compatibility. */ @Deprecated public void importPackage(Context cx, Scriptable thisObj, Object[] args, Function funObj) { js_importPackage(this, args);
diff --git a/src/org/mozilla/javascript/JavaScriptException.java b/src/org/mozilla/javascript/JavaScriptException.java index 3b9792c..133675f 100644 --- a/src/org/mozilla/javascript/JavaScriptException.java +++ b/src/org/mozilla/javascript/JavaScriptException.java
@@ -90,24 +90,18 @@ } } - /** - * @return the value wrapped by this exception - */ + /** @return the value wrapped by this exception */ public Object getValue() { return value; } - /** - * @deprecated Use {@link RhinoException#sourceName()} from the super class. - */ + /** @deprecated Use {@link RhinoException#sourceName()} from the super class. */ @Deprecated public String getSourceName() { return sourceName(); } - /** - * @deprecated Use {@link RhinoException#lineNumber()} from the super class. - */ + /** @deprecated Use {@link RhinoException#lineNumber()} from the super class. */ @Deprecated public int getLineNumber() { return lineNumber();
diff --git a/src/org/mozilla/javascript/NativeArray.java b/src/org/mozilla/javascript/NativeArray.java index f4e25de..32fdf0ba 100644 --- a/src/org/mozilla/javascript/NativeArray.java +++ b/src/org/mozilla/javascript/NativeArray.java
@@ -853,9 +853,7 @@ return length; } - /** - * @deprecated Use {@link #getLength()} instead. - */ + /** @deprecated Use {@link #getLength()} instead. */ @Deprecated public long jsGet_length() { return getLength();
diff --git a/src/org/mozilla/javascript/NativeGlobal.java b/src/org/mozilla/javascript/NativeGlobal.java index 2b4e8c3..5daa449 100644 --- a/src/org/mozilla/javascript/NativeGlobal.java +++ b/src/org/mozilla/javascript/NativeGlobal.java
@@ -496,9 +496,7 @@ return false; } - /** - * @deprecated Use {@link ScriptRuntime#constructError(String,String)} instead. - */ + /** @deprecated Use {@link ScriptRuntime#constructError(String,String)} instead. */ @Deprecated public static EcmaError constructError( Context cx, String error, String message, Scriptable scope) {
diff --git a/src/org/mozilla/javascript/NativeJavaPackage.java b/src/org/mozilla/javascript/NativeJavaPackage.java index 6921e18..bab121e 100644 --- a/src/org/mozilla/javascript/NativeJavaPackage.java +++ b/src/org/mozilla/javascript/NativeJavaPackage.java
@@ -30,17 +30,13 @@ this.classLoader = classLoader; } - /** - * @deprecated NativeJavaPackage is an internal class, do not use it directly. - */ + /** @deprecated NativeJavaPackage is an internal class, do not use it directly. */ @Deprecated public NativeJavaPackage(String packageName, ClassLoader classLoader) { this(false, packageName, classLoader); } - /** - * @deprecated NativeJavaPackage is an internal class, do not use it directly. - */ + /** @deprecated NativeJavaPackage is an internal class, do not use it directly. */ @Deprecated public NativeJavaPackage(String packageName) { this(false, packageName, Context.getCurrentContext().getApplicationClassLoader());
diff --git a/src/org/mozilla/javascript/NativeNumber.java b/src/org/mozilla/javascript/NativeNumber.java index 2a932dd..63f730d 100644 --- a/src/org/mozilla/javascript/NativeNumber.java +++ b/src/org/mozilla/javascript/NativeNumber.java
@@ -16,9 +16,7 @@ final class NativeNumber extends IdScriptableObject { private static final long serialVersionUID = 3504516769741512101L; - /** - * @see https://www.ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer - */ + /** @see https://www.ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer */ public static final double MAX_SAFE_INTEGER = 9007199254740991.0; // Math.pow(2, 53) - 1 private static final Object NUMBER_TAG = "Number";
diff --git a/src/org/mozilla/javascript/NativeScript.java b/src/org/mozilla/javascript/NativeScript.java index 757d70d..d095143 100644 --- a/src/org/mozilla/javascript/NativeScript.java +++ b/src/org/mozilla/javascript/NativeScript.java
@@ -28,9 +28,7 @@ obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } - /** - * @deprecated Use {@link #init(Context, Scriptable, boolean)} instead - */ + /** @deprecated Use {@link #init(Context, Scriptable, boolean)} instead */ @Deprecated static void init(Scriptable scope, boolean sealed) { init(Context.getContext(), scope, sealed);
diff --git a/src/org/mozilla/javascript/Ref.java b/src/org/mozilla/javascript/Ref.java index 2d8e56b..a4e7544 100644 --- a/src/org/mozilla/javascript/Ref.java +++ b/src/org/mozilla/javascript/Ref.java
@@ -22,9 +22,7 @@ public abstract Object get(Context cx); - /** - * @deprecated Use {@link #set(Context, Scriptable, Object)} instead - */ + /** @deprecated Use {@link #set(Context, Scriptable, Object)} instead */ @Deprecated public abstract Object set(Context cx, Object value);
diff --git a/src/org/mozilla/javascript/ScriptRuntime.java b/src/org/mozilla/javascript/ScriptRuntime.java index ab6b4ef..d51773e 100644 --- a/src/org/mozilla/javascript/ScriptRuntime.java +++ b/src/org/mozilla/javascript/ScriptRuntime.java
@@ -1194,9 +1194,7 @@ return null; } - /** - * @param scope the scope that should be used to resolve primitive prototype - */ + /** @param scope the scope that should be used to resolve primitive prototype */ public static Scriptable toObjectOrNull(Context cx, Object obj, Scriptable scope) { if (obj instanceof Scriptable) { return (Scriptable) obj; @@ -1206,9 +1204,7 @@ return null; } - /** - * @deprecated Use {@link #toObject(Scriptable, Object)} instead. - */ + /** @deprecated Use {@link #toObject(Scriptable, Object)} instead. */ @Deprecated public static Scriptable toObject(Scriptable scope, Object val, Class<?> staticClass) { if (val instanceof Scriptable) { @@ -1266,18 +1262,14 @@ throw errorWithClassName("msg.invalid.type", val); } - /** - * @deprecated Use {@link #toObject(Context, Scriptable, Object)} instead. - */ + /** @deprecated Use {@link #toObject(Context, Scriptable, Object)} instead. */ @Deprecated public static Scriptable toObject( Context cx, Scriptable scope, Object val, Class<?> staticClass) { return toObject(cx, scope, val); } - /** - * @deprecated The method is only present for compatibility. - */ + /** @deprecated The method is only present for compatibility. */ @Deprecated public static Object call( Context cx, Object fun, Object thisArg, Object[] args, Scriptable scope) { @@ -1690,9 +1682,7 @@ return result; } - /** - * @deprecated Use {@link #getObjectPropNoWarn(Object, String, Context, Scriptable)} instead - */ + /** @deprecated Use {@link #getObjectPropNoWarn(Object, String, Context, Scriptable)} instead */ @Deprecated public static Object getObjectPropNoWarn(Object obj, String property, Context cx) { return getObjectPropNoWarn(obj, property, cx, getTopCallScope(cx)); @@ -1882,9 +1872,7 @@ return ref.get(cx); } - /** - * @deprecated Use {@link #refSet(Ref, Object, Context, Scriptable)} instead - */ + /** @deprecated Use {@link #refSet(Ref, Object, Context, Scriptable)} instead */ @Deprecated public static Object refSet(Ref ref, Object value, Context cx) { return refSet(ref, value, cx, getTopCallScope(cx)); @@ -1902,9 +1890,7 @@ return s.equals("__proto__") || s.equals("__parent__"); } - /** - * @deprecated Use {@link #specialRef(Object, String, Context, Scriptable)} instead - */ + /** @deprecated Use {@link #specialRef(Object, String, Context, Scriptable)} instead */ @Deprecated public static Ref specialRef(Object obj, String specialProperty, Context cx) { return specialRef(obj, specialProperty, cx, getTopCallScope(cx)); @@ -1914,9 +1900,7 @@ return SpecialRef.createSpecial(cx, scope, obj, specialProperty); } - /** - * @deprecated Use {@link #delete(Object, Object, Context, Scriptable, boolean)} instead - */ + /** @deprecated Use {@link #delete(Object, Object, Context, Scriptable, boolean)} instead */ @Deprecated public static Object delete(Object obj, Object id, Context cx) { return delete(obj, id, cx, false); @@ -2241,9 +2225,7 @@ public static final int ENUMERATE_ARRAY_NO_ITERATOR = 5; public static final int ENUMERATE_VALUES_IN_ORDER = 6; - /** - * @deprecated Use {@link #enumInit(Object, Context, Scriptable, int)} instead - */ + /** @deprecated Use {@link #enumInit(Object, Context, Scriptable, int)} instead */ @Deprecated public static Object enumInit(Object value, Context cx, int enumType) { return enumInit(value, cx, getTopCallScope(cx), enumType); @@ -2309,9 +2291,7 @@ ((IdEnumeration) enumObj).enumNumbers = enumNumbers; } - /** - * @deprecated since 1.7.15. Use {@link #enumNext(Context, Object)} instead - */ + /** @deprecated since 1.7.15. Use {@link #enumNext(Context, Object)} instead */ @Deprecated public static Boolean enumNext(Object enumObj) { return enumNext(enumObj, Context.getContext()); @@ -2790,9 +2770,7 @@ return function.call(cx, scope, callThis, callArgs); } - /** - * @return true if the passed in Scriptable looks like an array - */ + /** @return true if the passed in Scriptable looks like an array */ private static boolean isArrayLike(Scriptable obj) { return obj != null && (obj instanceof NativeArray @@ -3186,9 +3164,7 @@ return doScriptableIncrDecr(target, id, scopeChain, value, incrDecrMask); } - /** - * @deprecated Use {@link #propIncrDecr(Object, String, Context, Scriptable, int)} instead - */ + /** @deprecated Use {@link #propIncrDecr(Object, String, Context, Scriptable, int)} instead */ @Deprecated public static Object propIncrDecr(Object obj, String id, Context cx, int incrDecrMask) { return propIncrDecr(obj, id, cx, getTopCallScope(cx), incrDecrMask); @@ -3255,9 +3231,7 @@ return result; } - /** - * @deprecated Use {@link #elemIncrDecr(Object, Object, Context, Scriptable, int)} instead - */ + /** @deprecated Use {@link #elemIncrDecr(Object, Object, Context, Scriptable, int)} instead */ @Deprecated public static Object elemIncrDecr(Object obj, Object index, Context cx, int incrDecrMask) { return elemIncrDecr(obj, index, cx, getTopCallScope(cx), incrDecrMask); @@ -3297,9 +3271,7 @@ return result; } - /** - * @deprecated Use {@link #refIncrDecr(Ref, Context, Scriptable, int)} instead - */ + /** @deprecated Use {@link #refIncrDecr(Ref, Context, Scriptable, int)} instead */ @Deprecated public static Object refIncrDecr(Ref ref, Context cx, int incrDecrMask) { return refIncrDecr(ref, cx, getTopCallScope(cx), incrDecrMask); @@ -4496,44 +4468,34 @@ } } - /** - * @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead */ @Deprecated public static String getMessage0(String messageId) { return getMessage(messageId, null); } - /** - * @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead */ @Deprecated public static String getMessage1(String messageId, Object arg1) { Object[] arguments = {arg1}; return getMessage(messageId, arguments); } - /** - * @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead */ @Deprecated public static String getMessage2(String messageId, Object arg1, Object arg2) { Object[] arguments = {arg1, arg2}; return getMessage(messageId, arguments); } - /** - * @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead */ @Deprecated public static String getMessage3(String messageId, Object arg1, Object arg2, Object arg3) { Object[] arguments = {arg1, arg2, arg3}; return getMessage(messageId, arguments); } - /** - * @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead */ @Deprecated public static String getMessage4( String messageId, Object arg1, Object arg2, Object arg3, Object arg4) { @@ -4561,9 +4523,7 @@ public static final MessageProvider messageProvider = new DefaultMessageProvider(); - /** - * @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #getMessageById(String messageId, Object... args)} instead */ @Deprecated public static String getMessage(String messageId, Object[] arguments) { return messageProvider.getMessage(messageId, arguments); @@ -4649,36 +4609,28 @@ return typeError(msg); } - /** - * @deprecated Use {@link #typeErrorById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #typeErrorById(String messageId, Object... args)} instead */ @Deprecated public static EcmaError typeError0(String messageId) { String msg = getMessage0(messageId); return typeError(msg); } - /** - * @deprecated Use {@link #typeErrorById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #typeErrorById(String messageId, Object... args)} instead */ @Deprecated public static EcmaError typeError1(String messageId, Object arg1) { String msg = getMessage1(messageId, arg1); return typeError(msg); } - /** - * @deprecated Use {@link #typeErrorById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #typeErrorById(String messageId, Object... args)} instead */ @Deprecated public static EcmaError typeError2(String messageId, Object arg1, Object arg2) { String msg = getMessage2(messageId, arg1, arg2); return typeError(msg); } - /** - * @deprecated Use {@link #typeErrorById(String messageId, Object... args)} instead - */ + /** @deprecated Use {@link #typeErrorById(String messageId, Object... args)} instead */ @Deprecated public static EcmaError typeError3(String messageId, String arg1, String arg2, String arg3) { String msg = getMessage3(messageId, arg1, arg2, arg3);
diff --git a/src/org/mozilla/javascript/SecureCaller.java b/src/org/mozilla/javascript/SecureCaller.java index 78e79e4..0ff8cd4 100644 --- a/src/org/mozilla/javascript/SecureCaller.java +++ b/src/org/mozilla/javascript/SecureCaller.java
@@ -19,9 +19,7 @@ import java.util.Map; import java.util.WeakHashMap; -/** - * @author Attila Szegedi - */ +/** @author Attila Szegedi */ public abstract class SecureCaller { private static final byte[] secureCallerImplBytecode = loadBytecode();
diff --git a/src/org/mozilla/javascript/SecurityUtilities.java b/src/org/mozilla/javascript/SecurityUtilities.java index 6b024af..c9e46c7 100644 --- a/src/org/mozilla/javascript/SecurityUtilities.java +++ b/src/org/mozilla/javascript/SecurityUtilities.java
@@ -10,9 +10,7 @@ import java.security.PrivilegedAction; import java.security.ProtectionDomain; -/** - * @author Attila Szegedi - */ +/** @author Attila Szegedi */ public class SecurityUtilities { /** * Retrieves a system property within a privileged block. Use it only when the property is used
diff --git a/src/org/mozilla/javascript/Synchronizer.java b/src/org/mozilla/javascript/Synchronizer.java index f708ca3..2819ca7 100644 --- a/src/org/mozilla/javascript/Synchronizer.java +++ b/src/org/mozilla/javascript/Synchronizer.java
@@ -47,9 +47,7 @@ this.syncObject = syncObject; } - /** - * @see org.mozilla.javascript.Function#call - */ + /** @see org.mozilla.javascript.Function#call */ @Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { Object sync = syncObject != null ? syncObject : thisObj;
diff --git a/src/org/mozilla/javascript/WrapFactory.java b/src/org/mozilla/javascript/WrapFactory.java index 8794154..cb74600 100644 --- a/src/org/mozilla/javascript/WrapFactory.java +++ b/src/org/mozilla/javascript/WrapFactory.java
@@ -148,9 +148,7 @@ return javaPrimitiveWrap; } - /** - * @see #isJavaPrimitiveWrap() - */ + /** @see #isJavaPrimitiveWrap() */ public final void setJavaPrimitiveWrap(boolean value) { Context cx = Context.getCurrentContext(); if (cx != null && cx.isSealed()) {
diff --git a/src/org/mozilla/javascript/WrappedException.java b/src/org/mozilla/javascript/WrappedException.java index 022314c..00646b9 100644 --- a/src/org/mozilla/javascript/WrappedException.java +++ b/src/org/mozilla/javascript/WrappedException.java
@@ -16,9 +16,7 @@ public class WrappedException extends EvaluatorException { private static final long serialVersionUID = -1551979216966520648L; - /** - * @see Context#throwAsScriptRuntimeEx(Throwable e) - */ + /** @see Context#throwAsScriptRuntimeEx(Throwable e) */ public WrappedException(Throwable exception) { super("Wrapped " + exception); this.exception = exception; @@ -45,9 +43,7 @@ return exception; } - /** - * @deprecated Use {@link #getWrappedException()} instead. - */ + /** @deprecated Use {@link #getWrappedException()} instead. */ @Deprecated public Object unwrap() { return getWrappedException();
diff --git a/src/org/mozilla/javascript/ast/AstNode.java b/src/org/mozilla/javascript/ast/AstNode.java index 69cf597..cca813e 100644 --- a/src/org/mozilla/javascript/ast/AstNode.java +++ b/src/org/mozilla/javascript/ast/AstNode.java
@@ -453,9 +453,7 @@ } } - /** - * @see Kit#codeBug - */ + /** @see Kit#codeBug */ public static RuntimeException codeBug() throws RuntimeException { throw Kit.codeBug(); }
diff --git a/src/org/mozilla/javascript/optimizer/OptRuntime.java b/src/org/mozilla/javascript/optimizer/OptRuntime.java index ee6a91f..4452dac 100644 --- a/src/org/mozilla/javascript/optimizer/OptRuntime.java +++ b/src/org/mozilla/javascript/optimizer/OptRuntime.java
@@ -93,9 +93,7 @@ return ScriptRuntime.add(val1, val2, cx); } - /** - * @deprecated Use {@link #elemIncrDecr(Object, double, Context, Scriptable, int)} instead - */ + /** @deprecated Use {@link #elemIncrDecr(Object, double, Context, Scriptable, int)} instead */ @Deprecated public static Object elemIncrDecr(Object obj, double index, Context cx, int incrDecrMask) { return elemIncrDecr(obj, index, cx, getTopCallScope(cx), incrDecrMask);
diff --git a/testsrc/org/mozilla/javascript/drivers/JsDriver.java b/testsrc/org/mozilla/javascript/drivers/JsDriver.java index d1374d3..4e92fdc 100644 --- a/testsrc/org/mozilla/javascript/drivers/JsDriver.java +++ b/testsrc/org/mozilla/javascript/drivers/JsDriver.java
@@ -19,9 +19,7 @@ import org.w3c.dom.Element; import org.w3c.dom.NodeList; -/** - * @version $Id: JsDriver.java,v 1.10 2009/05/15 12:30:45 nboyd%atg.com Exp $ - */ +/** @version $Id: JsDriver.java,v 1.10 2009/05/15 12:30:45 nboyd%atg.com Exp $ */ public class JsDriver { private JsDriver() {}
diff --git a/testsrc/org/mozilla/javascript/drivers/ShellTest.java b/testsrc/org/mozilla/javascript/drivers/ShellTest.java index e5fa96c..07e096c 100644 --- a/testsrc/org/mozilla/javascript/drivers/ShellTest.java +++ b/testsrc/org/mozilla/javascript/drivers/ShellTest.java
@@ -25,9 +25,7 @@ import org.mozilla.javascript.tools.shell.Main; import org.mozilla.javascript.tools.shell.ShellContextFactory; -/** - * @version $Id: ShellTest.java,v 1.14 2011/03/29 15:17:49 hannes%helma.at Exp $ - */ +/** @version $Id: ShellTest.java,v 1.14 2011/03/29 15:17:49 hannes%helma.at Exp $ */ public class ShellTest { private static File frameworkFile; private static Script frameworkScript;
diff --git a/testsrc/org/mozilla/javascript/tests/Bug491621Test.java b/testsrc/org/mozilla/javascript/tests/Bug491621Test.java index b04393f..24c03ac 100644 --- a/testsrc/org/mozilla/javascript/tests/Bug491621Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug491621Test.java
@@ -11,9 +11,7 @@ import org.mozilla.javascript.Parser; import org.mozilla.javascript.ast.AstRoot; -/** - * @author Hannes Wallnoefer - */ +/** @author Hannes Wallnoefer */ public class Bug491621Test { /**
diff --git a/testsrc/org/mozilla/javascript/tests/Bug637811Test.java b/testsrc/org/mozilla/javascript/tests/Bug637811Test.java index 801abf2..bd73dd7 100755 --- a/testsrc/org/mozilla/javascript/tests/Bug637811Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug637811Test.java
@@ -10,9 +10,7 @@ import org.mozilla.javascript.Context; import org.mozilla.javascript.ContextFactory; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug637811Test { private Context cx;
diff --git a/testsrc/org/mozilla/javascript/tests/Bug685403Test.java b/testsrc/org/mozilla/javascript/tests/Bug685403Test.java index 1624eb2..5c21cc1 100755 --- a/testsrc/org/mozilla/javascript/tests/Bug685403Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug685403Test.java
@@ -17,9 +17,7 @@ import org.mozilla.javascript.Scriptable; import org.mozilla.javascript.ScriptableObject; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug685403Test { private Context cx;
diff --git a/testsrc/org/mozilla/javascript/tests/Bug687669Test.java b/testsrc/org/mozilla/javascript/tests/Bug687669Test.java index fd59c19..6a7d223 100644 --- a/testsrc/org/mozilla/javascript/tests/Bug687669Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug687669Test.java
@@ -18,9 +18,7 @@ import org.mozilla.javascript.Undefined; import org.mozilla.javascript.ast.AstRoot; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug687669Test { private Context cx;
diff --git a/testsrc/org/mozilla/javascript/tests/Bug688018Test.java b/testsrc/org/mozilla/javascript/tests/Bug688018Test.java index 12389a5..e000743 100644 --- a/testsrc/org/mozilla/javascript/tests/Bug688018Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug688018Test.java
@@ -16,9 +16,7 @@ import org.mozilla.javascript.Parser; import org.mozilla.javascript.ast.AstRoot; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug688018Test { private Context cx;
diff --git a/testsrc/org/mozilla/javascript/tests/Bug688021Test.java b/testsrc/org/mozilla/javascript/tests/Bug688021Test.java index 7892da3..1729708 100644 --- a/testsrc/org/mozilla/javascript/tests/Bug688021Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug688021Test.java
@@ -16,9 +16,7 @@ import org.mozilla.javascript.Parser; import org.mozilla.javascript.ast.AstRoot; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug688021Test { private Context cx;
diff --git a/testsrc/org/mozilla/javascript/tests/Bug688023Test.java b/testsrc/org/mozilla/javascript/tests/Bug688023Test.java index 9ffe4cb..04fd88a 100755 --- a/testsrc/org/mozilla/javascript/tests/Bug688023Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug688023Test.java
@@ -15,9 +15,7 @@ import org.mozilla.javascript.Parser; import org.mozilla.javascript.ast.AstRoot; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug688023Test { private Context cx;
diff --git a/testsrc/org/mozilla/javascript/tests/Bug689308Test.java b/testsrc/org/mozilla/javascript/tests/Bug689308Test.java index 0886e5a..748e023 100644 --- a/testsrc/org/mozilla/javascript/tests/Bug689308Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug689308Test.java
@@ -16,9 +16,7 @@ import org.mozilla.javascript.Parser; import org.mozilla.javascript.ast.AstRoot; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug689308Test { private Context cx;
diff --git a/testsrc/org/mozilla/javascript/tests/Bug689314Test.java b/testsrc/org/mozilla/javascript/tests/Bug689314Test.java index 6403293..3239434 100644 --- a/testsrc/org/mozilla/javascript/tests/Bug689314Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug689314Test.java
@@ -16,9 +16,7 @@ import org.mozilla.javascript.Parser; import org.mozilla.javascript.ast.AstRoot; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug689314Test { private Context cx;
diff --git a/testsrc/org/mozilla/javascript/tests/Bug708801Test.java b/testsrc/org/mozilla/javascript/tests/Bug708801Test.java index 64dffc1..e035d34 100644 --- a/testsrc/org/mozilla/javascript/tests/Bug708801Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug708801Test.java
@@ -30,9 +30,7 @@ import org.mozilla.javascript.optimizer.Codegen; import org.mozilla.javascript.optimizer.OptFunctionNode; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug708801Test { private static final ContextFactory factory =
diff --git a/testsrc/org/mozilla/javascript/tests/Bug714204Test.java b/testsrc/org/mozilla/javascript/tests/Bug714204Test.java index 78f3f1c..1408723 100644 --- a/testsrc/org/mozilla/javascript/tests/Bug714204Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug714204Test.java
@@ -15,9 +15,7 @@ import org.mozilla.javascript.Script; import org.mozilla.javascript.ScriptableObject; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug714204Test { private Context cx;
diff --git a/testsrc/org/mozilla/javascript/tests/Bug782363Test.java b/testsrc/org/mozilla/javascript/tests/Bug782363Test.java index 65dd8b8..01c0771 100755 --- a/testsrc/org/mozilla/javascript/tests/Bug782363Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug782363Test.java
@@ -30,9 +30,7 @@ import org.mozilla.javascript.optimizer.Codegen; import org.mozilla.javascript.optimizer.OptFunctionNode; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug782363Test { private Context cx;
diff --git a/testsrc/org/mozilla/javascript/tests/Bug783797Test.java b/testsrc/org/mozilla/javascript/tests/Bug783797Test.java index 88d55215..16f2da1 100755 --- a/testsrc/org/mozilla/javascript/tests/Bug783797Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug783797Test.java
@@ -14,9 +14,7 @@ import org.mozilla.javascript.Scriptable; import org.mozilla.javascript.ScriptableObject; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Bug783797Test { private interface Action {
diff --git a/testsrc/org/mozilla/javascript/tests/Bug789277Test.java b/testsrc/org/mozilla/javascript/tests/Bug789277Test.java index 3ba4f55..c519684 100755 --- a/testsrc/org/mozilla/javascript/tests/Bug789277Test.java +++ b/testsrc/org/mozilla/javascript/tests/Bug789277Test.java
@@ -25,9 +25,7 @@ import org.mozilla.javascript.ast.AstRoot; import org.mozilla.javascript.ast.IdeErrorReporter; -/** - * @author André Bargull - */ +/** @author André Bargull */ @SuppressWarnings("serial") @RunWith(Parameterized.class) public class Bug789277Test {
diff --git a/testsrc/org/mozilla/javascript/tests/ClassShutterExceptionTest.java b/testsrc/org/mozilla/javascript/tests/ClassShutterExceptionTest.java index f5b17b2..52de1e8 100644 --- a/testsrc/org/mozilla/javascript/tests/ClassShutterExceptionTest.java +++ b/testsrc/org/mozilla/javascript/tests/ClassShutterExceptionTest.java
@@ -14,9 +14,7 @@ import org.mozilla.javascript.RhinoException; import org.mozilla.javascript.Scriptable; -/** - * @author Norris Boyd - */ +/** @author Norris Boyd */ public class ClassShutterExceptionTest { private static Context.ClassShutterSetter classShutterSetter;
diff --git a/testsrc/org/mozilla/javascript/tests/JavaAcessibilityTest.java b/testsrc/org/mozilla/javascript/tests/JavaAcessibilityTest.java index bcf041d..2e54057 100644 --- a/testsrc/org/mozilla/javascript/tests/JavaAcessibilityTest.java +++ b/testsrc/org/mozilla/javascript/tests/JavaAcessibilityTest.java
@@ -18,9 +18,7 @@ import org.mozilla.javascript.tools.shell.Global; import org.mozilla.javascript.tools.shell.ShellContextFactory; -/** - * @author donnamalayeri - */ +/** @author donnamalayeri */ public class JavaAcessibilityTest { protected final Global global = new Global();
diff --git a/testsrc/org/mozilla/javascript/tests/NativeJsonTest.java b/testsrc/org/mozilla/javascript/tests/NativeJsonTest.java index cdc9ccf..6ee6213 100644 --- a/testsrc/org/mozilla/javascript/tests/NativeJsonTest.java +++ b/testsrc/org/mozilla/javascript/tests/NativeJsonTest.java
@@ -11,9 +11,7 @@ import org.mozilla.javascript.Context; import org.mozilla.javascript.Scriptable; -/** - * @author Ronald Brill - */ +/** @author Ronald Brill */ public class NativeJsonTest { @Test
diff --git a/testsrc/org/mozilla/javascript/tests/NativeRegExpTest.java b/testsrc/org/mozilla/javascript/tests/NativeRegExpTest.java index a19dcce..9446294 100644 --- a/testsrc/org/mozilla/javascript/tests/NativeRegExpTest.java +++ b/testsrc/org/mozilla/javascript/tests/NativeRegExpTest.java
@@ -25,209 +25,157 @@ }); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalCtor() throws Exception { testEvaluate("g-true-false-false-false", "new RegExp('foo', 'g');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void global() throws Exception { testEvaluate("g-true-false-false-false", "/foo/g;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void ignoreCaseCtor() throws Exception { testEvaluate("i-false-true-false-false", "new RegExp('foo', 'i');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void ignoreCase() throws Exception { testEvaluate("i-false-true-false-false", "/foo/i;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void multilineCtor() throws Exception { testEvaluate("m-false-false-true-false", "new RegExp('foo', 'm');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void multiline() throws Exception { testEvaluate("m-false-false-true-false", "/foo/m;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void stickyCtor() throws Exception { testEvaluate("y-false-false-false-true", "new RegExp('foo', 'y');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void sticky() throws Exception { testEvaluate("y-false-false-false-true", "/foo/y;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalMultilineCtor() throws Exception { testEvaluate("gm-true-false-true-false", "new RegExp('foo', 'gm');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalMultiline() throws Exception { testEvaluate("gm-true-false-true-false", "/foo/gm;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalIgnoreCaseCtor() throws Exception { testEvaluate("gi-true-true-false-false", "new RegExp('foo', 'ig');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalIgnoreCase() throws Exception { testEvaluate("gi-true-true-false-false", "/foo/ig;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalStickyCtor() throws Exception { testEvaluate("gy-true-false-false-true", "new RegExp('foo', 'gy');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalSticky() throws Exception { testEvaluate("gy-true-false-false-true", "/foo/gy;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalMultilineIgnoreCaseCtor() throws Exception { testEvaluate("gim-true-true-true-false", "new RegExp('foo', 'mig');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalMultilineIgnoreCase() throws Exception { testEvaluate("gim-true-true-true-false", "/foo/gmi;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalIgnoreCaseStickyCtor() throws Exception { testEvaluate("giy-true-true-false-true", "new RegExp('foo', 'yig');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalIgnoreCaseSticky() throws Exception { testEvaluate("giy-true-true-false-true", "/foo/ygi;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalMultilineStickyCtor() throws Exception { testEvaluate("gmy-true-false-true-true", "new RegExp('foo', 'gmy');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void globalMultilineSticky() throws Exception { testEvaluate("gmy-true-false-true-true", "/foo/gmy;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void ignoreCaseMultilineCtor() throws Exception { testEvaluate("im-false-true-true-false", "new RegExp('foo', 'im');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void ignoreCaseMultiline() throws Exception { testEvaluate("im-false-true-true-false", "/foo/mi;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void ignoreCaseStickyCtor() throws Exception { testEvaluate("iy-false-true-false-true", "new RegExp('foo', 'yi');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void ignoreCaseSticky() throws Exception { testEvaluate("iy-false-true-false-true", "/foo/iy;"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void multilineStickyCtor() throws Exception { testEvaluate("my-false-false-true-true", "new RegExp('foo', 'my');"); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void multilineSticky() throws Exception { testEvaluate("my-false-false-true-true", "/foo/my;"); @@ -253,9 +201,7 @@ test(expected, script); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void stickyTest() throws Exception { final String script = @@ -272,9 +218,7 @@ test("true-9-false-0-false-0", script); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void stickyStartOfLine() throws Exception { final String script = @@ -285,9 +229,7 @@ test("false", script); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void stickyStartOfLineMultiline() throws Exception { final String script = @@ -300,9 +242,7 @@ test("false-true", script); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void matchGlobal() throws Exception { final String script = @@ -315,9 +255,7 @@ test("3-a-a-a", script); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ // TODO @Test public void matchGlobalSymbol() throws Exception { final String script = @@ -330,9 +268,7 @@ test("3-a-a-a", script); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void matchSticky() throws Exception { final String script = @@ -343,9 +279,7 @@ test("1-a", script); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void matchStickySymbol() throws Exception { final String script = @@ -356,9 +290,7 @@ test("1-a", script); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ @Test public void matchStickyAndGlobal() throws Exception { final String script = @@ -370,9 +302,7 @@ test("2-a-a", script); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ // TODO @Test public void matchStickyAndGlobalSymbol() throws Exception { final String script = @@ -384,9 +314,7 @@ test("2-a-a", script); } - /** - * @throws Exception if an error occurs - */ + /** @throws Exception if an error occurs */ // TODO @Test public void flagsPropery() throws Exception { final String script =
diff --git a/testsrc/org/mozilla/javascript/tests/ObserveInstructionCountTest.java b/testsrc/org/mozilla/javascript/tests/ObserveInstructionCountTest.java index a9bd46c..a83b351c 100644 --- a/testsrc/org/mozilla/javascript/tests/ObserveInstructionCountTest.java +++ b/testsrc/org/mozilla/javascript/tests/ObserveInstructionCountTest.java
@@ -17,9 +17,7 @@ import org.mozilla.javascript.Scriptable; import org.mozilla.javascript.drivers.TestUtils; -/** - * @author Norris Boyd - */ +/** @author Norris Boyd */ public class ObserveInstructionCountTest { // Custom Context to store execution time. static class MyContext extends Context {
diff --git a/testsrc/org/mozilla/javascript/tests/StackTraceTest.java b/testsrc/org/mozilla/javascript/tests/StackTraceTest.java index 1075d62..d8e3b85 100644 --- a/testsrc/org/mozilla/javascript/tests/StackTraceTest.java +++ b/testsrc/org/mozilla/javascript/tests/StackTraceTest.java
@@ -13,9 +13,7 @@ import org.mozilla.javascript.Scriptable; import org.mozilla.javascript.StackStyle; -/** - * @author Marc Guillemot - */ +/** @author Marc Guillemot */ public class StackTraceTest { static final String LS = System.getProperty("line.separator");
diff --git a/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java b/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java index 4410b3b..82670fe 100644 --- a/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java +++ b/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java
@@ -442,9 +442,7 @@ private final Test262Case testCase; private final boolean markedAsFailing; - /** - * @see https://github.com/tc39/test262/blob/main/INTERPRETING.md#host-defined-functions - */ + /** @see https://github.com/tc39/test262/blob/main/INTERPRETING.md#host-defined-functions */ public static class $262 { private ScriptableObject scope;
diff --git a/testsrc/org/mozilla/javascript/tests/WrapFactoryTest.java b/testsrc/org/mozilla/javascript/tests/WrapFactoryTest.java index d98fe09..8a34928 100644 --- a/testsrc/org/mozilla/javascript/tests/WrapFactoryTest.java +++ b/testsrc/org/mozilla/javascript/tests/WrapFactoryTest.java
@@ -13,9 +13,7 @@ import org.mozilla.javascript.Scriptable; import org.mozilla.javascript.ScriptableObject; -/** - * @author hatanaka - */ +/** @author hatanaka */ public class WrapFactoryTest { /** javascript code */ private static String script =
diff --git a/testsrc/org/mozilla/javascript/tests/WriteReadOnlyPropertyTest.java b/testsrc/org/mozilla/javascript/tests/WriteReadOnlyPropertyTest.java index 366765c..1f00de6 100644 --- a/testsrc/org/mozilla/javascript/tests/WriteReadOnlyPropertyTest.java +++ b/testsrc/org/mozilla/javascript/tests/WriteReadOnlyPropertyTest.java
@@ -22,17 +22,13 @@ */ public class WriteReadOnlyPropertyTest { - /** - * @throws Exception if the test fails - */ + /** @throws Exception if the test fails */ @Test public void writeReadOnly_accepted() throws Exception { testWriteReadOnly(true); } - /** - * @throws Exception if the test fails - */ + /** @throws Exception if the test fails */ @Test public void writeReadOnly_throws() throws Exception { try {
diff --git a/testsrc/org/mozilla/javascript/tests/commentspr465/IfCommentsTest.java b/testsrc/org/mozilla/javascript/tests/commentspr465/IfCommentsTest.java index 4d7dfd9a..b4d046a 100644 --- a/testsrc/org/mozilla/javascript/tests/commentspr465/IfCommentsTest.java +++ b/testsrc/org/mozilla/javascript/tests/commentspr465/IfCommentsTest.java
@@ -9,9 +9,7 @@ import org.mozilla.javascript.ast.FunctionNode; import org.mozilla.javascript.ast.IfStatement; -/** - * @author ravik @@since 08/08/18 12:01 PM - */ +/** @author ravik @@since 08/08/18 12:01 PM */ public class IfCommentsTest { @Test
diff --git a/testsrc/org/mozilla/javascript/tests/commentspr465/LoopCommentsTest.java b/testsrc/org/mozilla/javascript/tests/commentspr465/LoopCommentsTest.java index 1ec0f22..b5ade25 100644 --- a/testsrc/org/mozilla/javascript/tests/commentspr465/LoopCommentsTest.java +++ b/testsrc/org/mozilla/javascript/tests/commentspr465/LoopCommentsTest.java
@@ -12,9 +12,7 @@ import org.mozilla.javascript.ast.WhileLoop; import org.mozilla.javascript.ast.WithStatement; -/** - * @author ravik @@since 08/08/18 2:31 PM - */ +/** @author ravik @@since 08/08/18 2:31 PM */ public class LoopCommentsTest { @Test
diff --git a/testsrc/org/mozilla/javascript/tests/commentspr465/MiscCommentsTest.java b/testsrc/org/mozilla/javascript/tests/commentspr465/MiscCommentsTest.java index 061fc0b..51f019b 100644 --- a/testsrc/org/mozilla/javascript/tests/commentspr465/MiscCommentsTest.java +++ b/testsrc/org/mozilla/javascript/tests/commentspr465/MiscCommentsTest.java
@@ -8,9 +8,7 @@ import org.mozilla.javascript.ast.FunctionNode; import org.mozilla.javascript.ast.TryStatement; -/** - * @author ravik @@since 08/08/18 3:13 PM - */ +/** @author ravik @@since 08/08/18 3:13 PM */ public class MiscCommentsTest { @Test
diff --git a/testsrc/org/mozilla/javascript/tests/commentspr465/SwitchCommentsTest.java b/testsrc/org/mozilla/javascript/tests/commentspr465/SwitchCommentsTest.java index d77240c..5904dec 100644 --- a/testsrc/org/mozilla/javascript/tests/commentspr465/SwitchCommentsTest.java +++ b/testsrc/org/mozilla/javascript/tests/commentspr465/SwitchCommentsTest.java
@@ -11,9 +11,7 @@ import org.mozilla.javascript.ast.SwitchCase; import org.mozilla.javascript.ast.SwitchStatement; -/** - * @author ravik @@since 07/08/18 12:36 PM - */ +/** @author ravik @@since 07/08/18 12:36 PM */ public class SwitchCommentsTest { @Test
diff --git a/testsrc/org/mozilla/javascript/tests/es5/Test262RegExpTest.java b/testsrc/org/mozilla/javascript/tests/es5/Test262RegExpTest.java index 1a7640b..56288e8 100644 --- a/testsrc/org/mozilla/javascript/tests/es5/Test262RegExpTest.java +++ b/testsrc/org/mozilla/javascript/tests/es5/Test262RegExpTest.java
@@ -15,9 +15,7 @@ import org.mozilla.javascript.EcmaError; import org.mozilla.javascript.ScriptableObject; -/** - * @author André Bargull - */ +/** @author André Bargull */ public class Test262RegExpTest { private Context cx; private ScriptableObject scope;
diff --git a/testsrc/org/mozilla/javascript/tests/es6/FunctionNullSetTest.java b/testsrc/org/mozilla/javascript/tests/es6/FunctionNullSetTest.java index 620e21f..6fd3eef 100644 --- a/testsrc/org/mozilla/javascript/tests/es6/FunctionNullSetTest.java +++ b/testsrc/org/mozilla/javascript/tests/es6/FunctionNullSetTest.java
@@ -18,9 +18,7 @@ */ public class FunctionNullSetTest { - /** - * @throws Exception if the test fails - */ + /** @throws Exception if the test fails */ @Test public void setFunctionToNull() throws Exception { final String script = "function onclick() {onclick=null}";
diff --git a/testsrc/org/mozilla/javascript/tests/es6/NativeRegExpTest.java b/testsrc/org/mozilla/javascript/tests/es6/NativeRegExpTest.java index 0e4aa64..cc8adde 100644 --- a/testsrc/org/mozilla/javascript/tests/es6/NativeRegExpTest.java +++ b/testsrc/org/mozilla/javascript/tests/es6/NativeRegExpTest.java
@@ -15,9 +15,7 @@ import org.mozilla.javascript.ScriptableObject; import org.mozilla.javascript.tests.Utils; -/** - * @author Ronald Brill - */ +/** @author Ronald Brill */ public class NativeRegExpTest { @Test
diff --git a/testsrc/org/mozilla/javascript/tests/es6/TypedArrayJavaTest.java b/testsrc/org/mozilla/javascript/tests/es6/TypedArrayJavaTest.java index c104c54..c325cf8 100644 --- a/testsrc/org/mozilla/javascript/tests/es6/TypedArrayJavaTest.java +++ b/testsrc/org/mozilla/javascript/tests/es6/TypedArrayJavaTest.java
@@ -22,9 +22,7 @@ allTypes(script, "1,2"); } - /** - * @throws Exception if test failed - */ + /** @throws Exception if test failed */ @Test public void subarrayFromSubarray() throws Exception { subarrayFromSubarray(0, 7, 0, 6, "1,2,3,4,5,6,7 - 1,2,3,4,5,6");
diff --git a/testsrc/org/mozilla/javascript/tests/intl402/NativeStringTest.java b/testsrc/org/mozilla/javascript/tests/intl402/NativeStringTest.java index 1582ad6..2d84458 100644 --- a/testsrc/org/mozilla/javascript/tests/intl402/NativeStringTest.java +++ b/testsrc/org/mozilla/javascript/tests/intl402/NativeStringTest.java
@@ -14,9 +14,7 @@ import org.mozilla.javascript.Scriptable; import org.mozilla.javascript.tests.Utils; -/** - * @author Ronald Brill - */ +/** @author Ronald Brill */ public class NativeStringTest { private ContextFactory contextFactoryIntl402 = new ContextFactory() {
diff --git a/toolsrc/org/mozilla/javascript/tools/debugger/Main.java b/toolsrc/org/mozilla/javascript/tools/debugger/Main.java index 0050f4e..85f3315 100644 --- a/toolsrc/org/mozilla/javascript/tools/debugger/Main.java +++ b/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
@@ -242,47 +242,35 @@ // Deprecated methods - /** - * @deprecated Use {@link #setSize(int, int)} instead. - */ + /** @deprecated Use {@link #setSize(int, int)} instead. */ @Deprecated public void setSize(java.awt.Dimension dimension) { debugGui.setSize(dimension.width, dimension.height); } - /** - * @deprecated The method does nothing and is only present for compatibility. - */ + /** @deprecated The method does nothing and is only present for compatibility. */ @Deprecated public void setOptimizationLevel(int level) {} - /** - * @deprecated The method is only present for compatibility and should not be called. - */ + /** @deprecated The method is only present for compatibility and should not be called. */ @Deprecated public void contextEntered(Context cx) { throw new IllegalStateException(); } - /** - * @deprecated The method is only present for compatibility and should not be called. - */ + /** @deprecated The method is only present for compatibility and should not be called. */ @Deprecated public void contextExited(Context cx) { throw new IllegalStateException(); } - /** - * @deprecated The method is only present for compatibility and should not be called. - */ + /** @deprecated The method is only present for compatibility and should not be called. */ @Deprecated public void contextCreated(Context cx) { throw new IllegalStateException(); } - /** - * @deprecated The method is only present for compatibility and should not be called. - */ + /** @deprecated The method is only present for compatibility and should not be called. */ @Deprecated public void contextReleased(Context cx) { throw new IllegalStateException();
diff --git a/toolsrc/org/mozilla/javascript/tools/jsc/Main.java b/toolsrc/org/mozilla/javascript/tools/jsc/Main.java index ac4fb6d..01edd86 100644 --- a/toolsrc/org/mozilla/javascript/tools/jsc/Main.java +++ b/toolsrc/org/mozilla/javascript/tools/jsc/Main.java
@@ -16,9 +16,7 @@ import org.mozilla.javascript.tools.SourceReader; import org.mozilla.javascript.tools.ToolErrorReporter; -/** - * @author Norris Boyd - */ +/** @author Norris Boyd */ public class Main { /**
diff --git a/toolsrc/org/mozilla/javascript/tools/shell/ShellConsole.java b/toolsrc/org/mozilla/javascript/tools/shell/ShellConsole.java index d3e70d9..2cfc445 100644 --- a/toolsrc/org/mozilla/javascript/tools/shell/ShellConsole.java +++ b/toolsrc/org/mozilla/javascript/tools/shell/ShellConsole.java
@@ -21,9 +21,7 @@ import org.mozilla.javascript.Scriptable; import org.mozilla.javascript.ScriptableObject; -/** - * @author André Bargull - */ +/** @author André Bargull */ public abstract class ShellConsole { private static final Class[] NO_ARG = {}; @@ -337,9 +335,7 @@ private static JLineShellConsoleV1 getJLineShellConsoleV1( ClassLoader classLoader, Class<?> readerClass, Scriptable scope, Charset cs) - throws NoSuchMethodException, - InstantiationException, - IllegalAccessException, + throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException { // ConsoleReader reader = new ConsoleReader(); Constructor<?> c = readerClass.getConstructor(); @@ -362,9 +358,7 @@ private static JLineShellConsoleV2 getJLineShellConsoleV2( ClassLoader classLoader, Class<?> readerClass, Scriptable scope, Charset cs) - throws NoSuchMethodException, - InstantiationException, - IllegalAccessException, + throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException { // ConsoleReader reader = new ConsoleReader(); Constructor<?> c = readerClass.getConstructor();
diff --git a/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java b/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java index b4bcc24..0dbaa31 100644 --- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java +++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java
@@ -78,9 +78,7 @@ return delegate.getNamespace().getUri(); } - /** - * @deprecated - */ + /** @deprecated */ @Deprecated final XmlNode.QName toNodeQname() { return delegate;
diff --git a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java index 14f6056..0670cb3 100644 --- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java +++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java
@@ -109,17 +109,13 @@ this.globalScope = globalScope; } - /** - * @deprecated - */ + /** @deprecated */ @Deprecated QName qnamePrototype() { return qnamePrototype; } - /** - * @deprecated - */ + /** @deprecated */ @Deprecated Scriptable globalScope() { return globalScope; @@ -146,9 +142,7 @@ qnamePrototype.exportAsJSClass(sealed); } - /** - * @deprecated - */ + /** @deprecated */ @Deprecated XMLName toAttributeName(Context cx, Object nameValue) { if (nameValue instanceof XMLName) {
diff --git a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLName.java b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLName.java index 7a749df..9e6ccd4 100644 --- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLName.java +++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLName.java
@@ -106,9 +106,7 @@ return rv; } - /** - * @deprecated - */ + /** @deprecated */ @Deprecated static XMLName formProperty(XmlNode.Namespace namespace, String localName) { if (localName != null && localName.equals("*")) localName = null; @@ -151,9 +149,7 @@ return rv; } - /** - * @deprecated - */ + /** @deprecated */ @Deprecated static XMLName create(XmlNode.QName qname) { return create(qname, false, false); @@ -441,9 +437,7 @@ } // TODO Fix whether this is an descendant XMLName at construction? - /** - * @deprecated - */ + /** @deprecated */ @Deprecated void setIsDescendants() { // if (isDescendants) throw new IllegalStateException();
diff --git a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlNode.java b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlNode.java index 2493093..5513434 100644 --- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlNode.java +++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlNode.java
@@ -671,9 +671,7 @@ return rv; } - /** - * @deprecated - */ + /** @deprecated */ @Deprecated static QName create(String uri, String localName, String prefix) { return create(Namespace.create(prefix, uri), localName);