--- a/examples/Matrix.java +++ b/examples/Matrix.java @@ -218,7 +218,7 @@ public class Matrix implements Scriptabl * Use the convenience method from Context that takes care of calling * toString, etc. */ - public Object getDefaultValue(Class typeHint) { + public Object getDefaultValue(Class typeHint) { return "[object Matrix]"; } --- a/examples/PrimitiveWrapFactory.java +++ b/examples/PrimitiveWrapFactory.java @@ -25,7 +25,7 @@ import org.mozilla.javascript.*; public class PrimitiveWrapFactory extends WrapFactory { @Override public Object wrap(Context cx, Scriptable scope, Object obj, - Class staticType) + Class staticType) { if (obj instanceof String || obj instanceof Number || obj instanceof Boolean) --- a/src/org/mozilla/javascript/WrapFactory.java +++ b/src/org/mozilla/javascript/WrapFactory.java @@ -42,7 +42,7 @@ public class WrapFactory * @return the wrapped value. */ public Object wrap(Context cx, Scriptable scope, - Object obj, Class staticType) + Object obj, Class staticType) { if (obj == null || obj == Undefined.instance || obj instanceof Scriptable) --- a/toolsrc/org/mozilla/javascript/tools/debugger/build.xml +++ b/toolsrc/org/mozilla/javascript/tools/debugger/build.xml @@ -8,7 +8,7 @@ - @@ -16,9 +16,9 @@ - - - + + + @@ -26,58 +26,58 @@ - + import java.awt.Component; -package org.mozilla.javascript.tools.debugger.downloaded; +package org.mozilla.javascript.tools.debugger.treetable; - + import java.awt.event.*; - + import java.awt.AWTEvent; - + import java.io.Serializable; - + import javax.swing.*; - package org.mozilla.javascript.tools.debugger.downloaded; + package org.mozilla.javascript.tools.debugger.treetable; import javax.swing.*; - + class ListToTreeSelectionModelWrapper public class ListToTreeSelectionModelWrapper - + ListSelectionModel getListSelectionModel public ListSelectionModel getListSelectionModel - + import java.awt.Rectangle; - + import javax.swing.tree.TreeModel; - package org.mozilla.javascript.tools.debugger.downloaded; + package org.mozilla.javascript.tools.debugger.treetable; import javax.swing.tree.TreeModel; - + import javax.swing.JTree; - package org.mozilla.javascript.tools.debugger.downloaded; + package org.mozilla.javascript.tools.debugger.treetable; import javax.swing.JTree; - + --- a/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java +++ b/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java @@ -36,7 +36,7 @@ public class JavaPolicySecurity extends return super.defineClass(name, data, 0, data.length, domain); } - public void linkClass(Class cl) { + public void linkClass(Class cl) { resolveClass(cl); } } --- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java +++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java @@ -86,7 +86,7 @@ class Namespace extends IdScriptableObje } @Override - public Object getDefaultValue(Class hint) { + public Object getDefaultValue(Class hint) { return uri(); } --- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java +++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java @@ -116,7 +116,7 @@ final class QName extends IdScriptableOb } @Override - public Object getDefaultValue(Class hint) { + public Object getDefaultValue(Class hint) { return toString(); } --- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java +++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java @@ -105,7 +105,7 @@ abstract class XMLObjectImpl extends XML } @Override - public final Object getDefaultValue(Class hint) { + public final Object getDefaultValue(Class hint) { return this.toString(); }