You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The auto-correct gladly doesn't break code as Java.float seems to work as well, but overall I prefer Java::float.new over the dot version, as it is a class.
I deactivated the cop for now, a fix would be great, though. Dunno how that would be best done other than white listing "Java::#{all_the_types}"
Cheers and thanks for rubucop!
The text was updated successfully, but these errors were encountered:
In JRuby Java::float and the like are used to access primitive Java classes (like byte etc.), see: https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby#java-primitive-classes . Rubocop falsely marks them with the
Style/ColonMethodCall
cop.The
auto-correct
gladly doesn't break code asJava.float
seems to work as well, but overall I preferJava::float.new
over the dot version, as it is a class.I deactivated the cop for now, a fix would be great, though. Dunno how that would be best done other than white listing "Java::#{all_the_types}"
Cheers and thanks for rubucop!
The text was updated successfully, but these errors were encountered: