Skip to content

Commit

Permalink
Minor cleanup (unused import statements, whitespace)
Browse files Browse the repository at this point in the history
  • Loading branch information
hns committed Jan 27, 2012
1 parent d175e1e commit 58221e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 3 additions & 5 deletions src/org/mozilla/javascript/ConsString.java
Expand Up @@ -38,9 +38,6 @@

package org.mozilla.javascript;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

/**
Expand All @@ -63,7 +60,7 @@ public class ConsString implements CharSequence, Serializable {

private static final long serialVersionUID = -8432806714471372570L;

private transient CharSequence s1, s2;
private CharSequence s1, s2;
private final int length;
private int depth;

Expand All @@ -83,7 +80,8 @@ public ConsString(CharSequence str1, CharSequence str2) {
flatten();
}
}


// Replace with string representation when serializing
private Object writeReplace() {
return this.toString();
}
Expand Down
6 changes: 2 additions & 4 deletions src/org/mozilla/javascript/ScriptRuntime.java
Expand Up @@ -82,11 +82,9 @@ protected ScriptRuntime() {
public static BaseFunction typeErrorThrower() {
if (THROW_TYPE_ERROR == null) {
BaseFunction thrower = new BaseFunction() {

static final long serialVersionUID = -5891740962154902286L;


@Override

@Override
public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) {
throw typeError0("msg.op.not.allowed");
}
Expand Down

0 comments on commit 58221e4

Please sign in to comment.