Fix assignment condition for jruby.