Skip to content

Commit

Permalink
Only warn about BigDecimal.new in verbose mode. Fixes #5189
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed May 24, 2018
1 parent e7b31ae commit 98abdb4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -701,7 +701,7 @@ public static RubyBigDecimal newInstance(IRubyObject recv, IRubyObject[] args) {
@Deprecated // no to be used in user-lang
@JRubyMethod(name = "new", meta = true)
public static RubyBigDecimal new_(ThreadContext context, IRubyObject recv, IRubyObject arg) {
context.runtime.getWarnings().warn(IRubyWarnings.ID.DEPRECATED_METHOD, "BigDecimal.new is deprecated");
context.runtime.getWarnings().warning(IRubyWarnings.ID.DEPRECATED_METHOD, "BigDecimal.new is deprecated");
return newInstance(context, recv, arg);
}

Expand Down

0 comments on commit 98abdb4

Please sign in to comment.