Skip to content

Commit

Permalink
Revert "add comments"
Browse files Browse the repository at this point in the history
This reverts commit 4b420d3.
  • Loading branch information
adoroszlai committed Jul 30, 2024
1 parent 4b420d3 commit 90870bd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/jnr/posix/util/SunMiscSignal.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ public static SignalHandler signal(jnr.constants.platform.Signal sig, final Sign
sun.misc.SignalHandler oldHandler = Signal.handle(s, new SunMiscSignalHandler(handler));

if (oldHandler instanceof SunMiscSignalHandler) {
// previous custom handler
return ((SunMiscSignalHandler)oldHandler).handler;
} else if (oldHandler != null) {
// default handler
return any -> oldHandler.handle(s);
} else {
return null;
Expand Down

0 comments on commit 90870bd

Please sign in to comment.