File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/main/java/org/jruby/ext/openssl Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -178,22 +178,20 @@ public IRubyObject copy(IRubyObject other) {
178
178
return this ;
179
179
}
180
180
181
- @ JRubyMethod ( name = "to_s" , rest = true , optional = 1 )
181
+ @ Deprecated
182
182
public RubyString to_s (IRubyObject [] args ) {
183
183
int argc = Arity .checkArgumentCount (getRuntime (), args , 0 , 1 );
184
184
return to_s ( argc == 1 ? RubyNumeric .num2int (args [0 ]) : 10 );
185
185
}
186
186
187
- // 1.6.8 can not handle - this way :
188
-
189
187
@ Override
190
- // @JRubyMethod(name = "to_s")
188
+ @ JRubyMethod (name = "to_s" )
191
189
public RubyString to_s () { return to_s (10 ); }
192
190
193
- // @JRubyMethod(name = "to_s")
194
- // public RubyString to_s(IRubyObject base) {
195
- // return to_s( RubyNumeric.num2int(base) );
196
- // }
191
+ @ JRubyMethod (name = "to_s" )
192
+ public RubyString to_s (IRubyObject base ) {
193
+ return to_s ( RubyNumeric .num2int (base ) );
194
+ }
197
195
198
196
private RubyString to_s (final int base ) {
199
197
final Ruby runtime = getRuntime ();
You can’t perform that action at this time.
0 commit comments