Skip to content

Commit

Permalink
Fixes for some obvious FindBugs-discovered inefficiencies
Browse files Browse the repository at this point in the history
  • Loading branch information
szegedi committed Nov 13, 2008
1 parent c0b354f commit 82429c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/org/mozilla/javascript/NativeArray.java
Expand Up @@ -1521,7 +1521,7 @@ else if (start < 0)
if (na.dense[i] != Scriptable.NOT_FOUND &&
ScriptRuntime.shallowEq(na.dense[i], compareTo))
{
return new Long(i);
return Long.valueOf(i);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/org/mozilla/javascript/NativeError.java
Expand Up @@ -90,7 +90,7 @@ static NativeError make(Context cx, Scriptable scope,
int[] linep = new int[1];
String fileName = Context.getSourcePositionFromStack(linep);
ScriptableObject.putProperty(obj, "lineNumber",
new Integer(linep[0]));
Integer.valueOf(linep[0]));
if(arglen < 2) {
ScriptableObject.putProperty(obj, "fileName", fileName);
}
Expand Down

0 comments on commit 82429c9

Please sign in to comment.