From 7d01a1e839348a1d0cda5f7d172427fcd814a93d Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Wed, 10 Jul 2024 11:44:30 -0500 Subject: [PATCH] Remove all double semicolons These are rejected by some tools. --- core/src/main/java/org/jruby/RubyIO.java | 2 +- core/src/main/java/org/jruby/RubyInstanceConfig.java | 2 +- core/src/main/java/org/jruby/ir/builder/IRBuilderAST.java | 2 +- .../src/main/java/org/jruby/javasupport/ext/JavaExtensions.java | 2 +- core/src/main/java/org/jruby/javasupport/ext/JavaLang.java | 2 +- core/src/main/java/org/jruby/javasupport/ext/JavaUtil.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/org/jruby/RubyIO.java b/core/src/main/java/org/jruby/RubyIO.java index 41548690d53..8c67c8f0250 100644 --- a/core/src/main/java/org/jruby/RubyIO.java +++ b/core/src/main/java/org/jruby/RubyIO.java @@ -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; diff --git a/core/src/main/java/org/jruby/RubyInstanceConfig.java b/core/src/main/java/org/jruby/RubyInstanceConfig.java index 88b2c72265f..0609818d280 100644 --- a/core/src/main/java/org/jruby/RubyInstanceConfig.java +++ b/core/src/main/java/org/jruby/RubyInstanceConfig.java @@ -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(); diff --git a/core/src/main/java/org/jruby/ir/builder/IRBuilderAST.java b/core/src/main/java/org/jruby/ir/builder/IRBuilderAST.java index 0f01ec1af2c..f8112198887 100644 --- a/core/src/main/java/org/jruby/ir/builder/IRBuilderAST.java +++ b/core/src/main/java/org/jruby/ir/builder/IRBuilderAST.java @@ -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; diff --git a/core/src/main/java/org/jruby/javasupport/ext/JavaExtensions.java b/core/src/main/java/org/jruby/javasupport/ext/JavaExtensions.java index cd809b0a759..7ad03881e82 100644 --- a/core/src/main/java/org/jruby/javasupport/ext/JavaExtensions.java +++ b/core/src/main/java/org/jruby/javasupport/ext/JavaExtensions.java @@ -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 */ } diff --git a/core/src/main/java/org/jruby/javasupport/ext/JavaLang.java b/core/src/main/java/org/jruby/javasupport/ext/JavaLang.java index 14d1adb0add..be8fcf7a4d2 100644 --- a/core/src/main/java/org/jruby/javasupport/ext/JavaLang.java +++ b/core/src/main/java/org/jruby/javasupport/ext/JavaLang.java @@ -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()); } diff --git a/core/src/main/java/org/jruby/javasupport/ext/JavaUtil.java b/core/src/main/java/org/jruby/javasupport/ext/JavaUtil.java index 018abb3ac7a..255967f6931 100644 --- a/core/src/main/java/org/jruby/javasupport/ext/JavaUtil.java +++ b/core/src/main/java/org/jruby/javasupport/ext/JavaUtil.java @@ -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); }