Skip to content

Commit

Permalink
MiniSSL.java - set serialVersionUID, fix RaiseException deprecation (#…
Browse files Browse the repository at this point in the history
…3270)

* MiniSSL.java - fix compile warning - serialVersionUID

* MiniSSL.java - fix 'warning: [deprecation] RaiseException'

Co-authored-by: Karol Bucek <kares@users.noreply.github.com>
  • Loading branch information
MSP-Greg and kares committed Oct 30, 2023
1 parent 95bd3c4 commit c2fe0ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/puma_http11/org/jruby/puma/MiniSSL.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import static javax.net.ssl.SSLEngineResult.HandshakeStatus;

public class MiniSSL extends RubyObject { // MiniSSL::Engine
private static final long serialVersionUID = -6903439483039141234L;
private static ObjectAllocator ALLOCATOR = new ObjectAllocator() {
public IRubyObject allocate(Ruby runtime, RubyClass klass) {
return new MiniSSL(runtime, klass);
Expand Down Expand Up @@ -500,7 +501,7 @@ private static RaiseException newSSLError(Ruby runtime, SSLException cause) {
}

private static RaiseException newError(Ruby runtime, RubyClass errorClass, String message, Throwable cause) {
RaiseException ex = new RaiseException(runtime, errorClass, message, true);
RaiseException ex = RaiseException.from(runtime, errorClass, message);
ex.initCause(cause);
return ex;
}
Expand Down

0 comments on commit c2fe0ed

Please sign in to comment.