Skip to content

Commit

Permalink
Remove all double semicolons
Browse files Browse the repository at this point in the history
These are rejected by some tools.
  • Loading branch information
headius committed Jul 10, 2024
1 parent e9d2707 commit 7d01a1e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -5385,7 +5385,7 @@ public final OpenFile MakeOpenFile() {

private static int rb_io_fptr_finalize(Ruby runtime, OpenFile fptr) {
if (fptr == null) return 0;
fptr.setPath(null);;
fptr.setPath(null);
if (fptr.fd() != null)
fptr.cleanup(runtime, true);
fptr.write_lock = null;
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyInstanceConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ public static ClassLoader defaultClassLoader() {

private ProfilingMode profilingMode = Options.CLI_PROFILING_MODE.load();
private ProfileOutput profileOutput = new ProfileOutput(System.err);
private String profilingService = Options.CLI_PROFILING_SERVICE.load();;
private String profilingService = Options.CLI_PROFILING_SERVICE.load();

private ClassLoader loader = defaultClassLoader();

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ir/builder/IRBuilderAST.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.jruby.ir.operands.Float;
import org.jruby.ir.operands.FrozenString;
import org.jruby.ir.operands.Hash;
import org.jruby.ir.operands.ImmutableLiteral;;
import org.jruby.ir.operands.ImmutableLiteral;
import org.jruby.ir.operands.Integer;
import org.jruby.ir.operands.Label;
import org.jruby.ir.operands.LocalVariable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
public class JavaExtensions {

private static final boolean LAZY = Options.JI_LOAD_LAZY.load();;
private static final boolean LAZY = Options.JI_LOAD_LAZY.load();

private JavaExtensions() { /* hidden */ }

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/javasupport/ext/JavaLang.java
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ static final class InspectRawValue extends JavaMethod.JavaMethodZero {

@Override
public IRubyObject call(final ThreadContext context, final IRubyObject self, final RubyModule clazz, final java.lang.String name) {
java.lang.Object val = unwrapIfJavaObject(self);;
java.lang.Object val = unwrapIfJavaObject(self);
return context.runtime.newString(val.toString());
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/javasupport/ext/JavaUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ public static RubyArray to_a(final ThreadContext context, final IRubyObject self
final java.util.List list = unwrapIfJavaObject(self);
final IRubyObject[] array = new IRubyObject[ list.size() ];
int i = 0; for ( Object elem : list ) {
array[i++] = convertJavaToUsableRubyObject(runtime, elem);;
array[i++] = convertJavaToUsableRubyObject(runtime, elem);
}
return RubyArray.newArrayMayCopy(runtime, array);
}
Expand Down

0 comments on commit 7d01a1e

Please sign in to comment.