Skip to content

Commit d5c61c1

Browse files
committed
align internal private "impl" method naming to be consistent
1 parent 9bd2336 commit d5c61c1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/main/java/org/jruby/ext/openssl/SSLSocket.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ private void doShutdown() throws IOException {
702702
flushData(true);
703703
}
704704

705-
private IRubyObject do_sysread(final ThreadContext context,
705+
private IRubyObject sysreadImpl(final ThreadContext context,
706706
IRubyObject len, IRubyObject buff, final boolean blocking, final boolean exception) {
707707
final Ruby runtime = context.runtime;
708708

@@ -763,12 +763,12 @@ private IRubyObject do_sysread(final ThreadContext context,
763763

764764
@JRubyMethod
765765
public IRubyObject sysread(ThreadContext context, IRubyObject len) {
766-
return do_sysread(context, len, null, true, true);
766+
return sysreadImpl(context, len, null, true, true);
767767
}
768768

769769
@JRubyMethod
770770
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);
772772
}
773773

774774
@Deprecated // @JRubyMethod(rest = true, required = 1, optional = 1)
@@ -785,20 +785,20 @@ public IRubyObject sysread(ThreadContext context, IRubyObject[] args) {
785785

786786
@JRubyMethod
787787
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);
789789
}
790790

791791
@JRubyMethod
792792
public IRubyObject sysread_nonblock(ThreadContext context, IRubyObject len, IRubyObject arg) {
793793
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));
795795
}
796-
return do_sysread(context, len, arg, false, true); // buffer arg
796+
return sysreadImpl(context, len, arg, false, true); // buffer arg
797797
}
798798

799799
@JRubyMethod
800800
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));
802802
}
803803

804804

@@ -816,7 +816,7 @@ public IRubyObject sysread_nonblock(ThreadContext context, IRubyObject[] args) {
816816
return null; // won't happen as checkArgumentCount raises
817817
}
818818

819-
private IRubyObject do_syswrite(final ThreadContext context,
819+
private IRubyObject syswriteImpl(final ThreadContext context,
820820
final IRubyObject arg, final boolean blocking, final boolean exception) {
821821
final Ruby runtime = context.runtime;
822822
try {
@@ -845,17 +845,17 @@ private IRubyObject do_syswrite(final ThreadContext context,
845845

846846
@JRubyMethod
847847
public IRubyObject syswrite(ThreadContext context, IRubyObject arg) {
848-
return do_syswrite(context, arg, true, true);
848+
return syswriteImpl(context, arg, true, true);
849849
}
850850

851851
@JRubyMethod
852852
public IRubyObject syswrite_nonblock(ThreadContext context, IRubyObject arg) {
853-
return do_syswrite(context, arg, false, true);
853+
return syswriteImpl(context, arg, false, true);
854854
}
855855

856856
@JRubyMethod
857857
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));
859859
}
860860

861861
private static boolean getExceptionOpt(final ThreadContext context, final IRubyObject opts) {

0 commit comments

Comments
 (0)