Skip to content

Commit

Permalink
RhinoScriptEngine: Remove redundant // for NOSONAR
Browse files Browse the repository at this point in the history
Fix the Eclipse file formatting while editing it.

Change-Id: Iba6499538f34df22ed590b56bb7e8c82b0706742
Signed-off-by: Marco Miller <marco.miller@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass/org.eclipse.tracecompass/+/200886
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
  • Loading branch information
marco-miller committed Mar 31, 2023
1 parent 2de54cf commit 6484af7
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -108,7 +108,7 @@ public synchronized void teardownEngine() {
* @throws RhinoException
* if script execution fails
*/
public @Nullable Object execute(final String javascriptExpression) throws RhinoException{
public @Nullable Object execute(final String javascriptExpression) throws RhinoException {
Context context = fContext;
ScriptableObject scope = fScope;
Object result = null;
Expand All @@ -121,7 +121,7 @@ public synchronized void teardownEngine() {
return null;
} else if (result instanceof NativeJavaObject) {
return ((NativeJavaObject) result).unwrap();
} else if ("org.mozilla.javascript.InterpretedFunction".equals(result.getClass().getName())) { //$NON-NLS-1$ //NOSONAR
} else if ("org.mozilla.javascript.InterpretedFunction".equals(result.getClass().getName())) { //$NON-NLS-1$ NOSONAR
return null;
}
return result;
Expand Down

0 comments on commit 6484af7

Please sign in to comment.