Skip to content

Commit

Permalink
Use has_rest_arg instead of removed rest_arg
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Apr 15, 2015
1 parent 9c48aae commit e6bda5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby/stdlib/jruby/compiler/java_class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def log(str)
node.post && node.post.child_nodes.each do |post_arg|
current_method.args << post_arg.name
end
if node.rest_arg >= 0
if node.has_rest_arg
current_method.args << node.rest_arg_node.name
end
if node.block
Expand Down

0 comments on commit e6bda5d

Please sign in to comment.