@@ -702,7 +702,7 @@ private void doShutdown() throws IOException {
702
702
flushData (true );
703
703
}
704
704
705
- private IRubyObject do_sysread (final ThreadContext context ,
705
+ private IRubyObject sysreadImpl (final ThreadContext context ,
706
706
IRubyObject len , IRubyObject buff , final boolean blocking , final boolean exception ) {
707
707
final Ruby runtime = context .runtime ;
708
708
@@ -763,12 +763,12 @@ private IRubyObject do_sysread(final ThreadContext context,
763
763
764
764
@ JRubyMethod
765
765
public IRubyObject sysread (ThreadContext context , IRubyObject len ) {
766
- return do_sysread (context , len , null , true , true );
766
+ return sysreadImpl (context , len , null , true , true );
767
767
}
768
768
769
769
@ JRubyMethod
770
770
public IRubyObject sysread (ThreadContext context , IRubyObject len , IRubyObject buff ) {
771
- return do_sysread (context , len , buff , true , true );
771
+ return sysreadImpl (context , len , buff , true , true );
772
772
}
773
773
774
774
@ Deprecated // @JRubyMethod(rest = true, required = 1, optional = 1)
@@ -785,20 +785,20 @@ public IRubyObject sysread(ThreadContext context, IRubyObject[] args) {
785
785
786
786
@ JRubyMethod
787
787
public IRubyObject sysread_nonblock (ThreadContext context , IRubyObject len ) {
788
- return do_sysread (context , len , null , false , true );
788
+ return sysreadImpl (context , len , null , false , true );
789
789
}
790
790
791
791
@ JRubyMethod
792
792
public IRubyObject sysread_nonblock (ThreadContext context , IRubyObject len , IRubyObject arg ) {
793
793
if ( arg instanceof RubyHash ) { // exception: false
794
- return do_sysread (context , len , null , false , getExceptionOpt (context , arg ));
794
+ return sysreadImpl (context , len , null , false , getExceptionOpt (context , arg ));
795
795
}
796
- return do_sysread (context , len , arg , false , true ); // buffer arg
796
+ return sysreadImpl (context , len , arg , false , true ); // buffer arg
797
797
}
798
798
799
799
@ JRubyMethod
800
800
public IRubyObject sysread_nonblock (ThreadContext context , IRubyObject len , IRubyObject buff , IRubyObject opts ) {
801
- return do_sysread (context , len , buff , false , getExceptionOpt (context , opts ));
801
+ return sysreadImpl (context , len , buff , false , getExceptionOpt (context , opts ));
802
802
}
803
803
804
804
@@ -816,7 +816,7 @@ public IRubyObject sysread_nonblock(ThreadContext context, IRubyObject[] args) {
816
816
return null ; // won't happen as checkArgumentCount raises
817
817
}
818
818
819
- private IRubyObject do_syswrite (final ThreadContext context ,
819
+ private IRubyObject syswriteImpl (final ThreadContext context ,
820
820
final IRubyObject arg , final boolean blocking , final boolean exception ) {
821
821
final Ruby runtime = context .runtime ;
822
822
try {
@@ -845,17 +845,17 @@ private IRubyObject do_syswrite(final ThreadContext context,
845
845
846
846
@ JRubyMethod
847
847
public IRubyObject syswrite (ThreadContext context , IRubyObject arg ) {
848
- return do_syswrite (context , arg , true , true );
848
+ return syswriteImpl (context , arg , true , true );
849
849
}
850
850
851
851
@ JRubyMethod
852
852
public IRubyObject syswrite_nonblock (ThreadContext context , IRubyObject arg ) {
853
- return do_syswrite (context , arg , false , true );
853
+ return syswriteImpl (context , arg , false , true );
854
854
}
855
855
856
856
@ JRubyMethod
857
857
public IRubyObject syswrite_nonblock (ThreadContext context , IRubyObject arg , IRubyObject opts ) {
858
- return do_syswrite (context , arg , false , getExceptionOpt (context , opts ));
858
+ return syswriteImpl (context , arg , false , getExceptionOpt (context , opts ));
859
859
}
860
860
861
861
private static boolean getExceptionOpt (final ThreadContext context , final IRubyObject opts ) {
0 commit comments