Skip to content

Commit 866def2

Browse files
committedFeb 6, 2018
Whoops transposed boolean from != return false instead of true.
1 parent 94d74e3 commit 866def2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/src/main/java/org/jruby/javasupport/JavaPackage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public IRubyObject respond_to_missing_p(final ThreadContext context, IRubyObject
249249
}
250250

251251
private RubyBoolean respond_to_missing(final ThreadContext context, IRubyObject mname, final boolean includePrivate) {
252-
return context.runtime.newBoolean(BlankSlateWrapper.handlesMethod(TypeConverter.checkID(mname).getBytes())!= null);
252+
return context.runtime.newBoolean(BlankSlateWrapper.handlesMethod(TypeConverter.checkID(mname).getBytes()) == null);
253253
}
254254

255255
@JRubyMethod(name = "method_missing", visibility = Visibility.PRIVATE)

0 commit comments

Comments
 (0)
Please sign in to comment.