Looking at the following code, handlers will never be null. https://github.com/spring-projects/spring-boot/blob/47516b50c39bd6ea924a1f6720ce6d4a71088651/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/Handler.java#L414-L440

Therefore, whether the branch handlers==null can be deleted.

Comment From: aoyvx

If this behavior does not meet expectations, please assign the issue to me.

Comment From: philwebb

Good spot @aoyvx, I think we should be calling String handlers = System.getProperty(PROTOCOL_HANDLER); without the default value. I'll assign the issue to you. Thanks!

Comment From: philwebb

Closing in favor of PR #31870. Thanks @aoyvx!

Comment From: aoyvx

@philwebb Excuse me, I want to know how to appear on the contributors.I submitted PR to spring framework and spring boot, but I didn't join the contributors. thanks.

Comment From: snicoll

@aoyvx you are a contributor, look at the badge next to your comment.

Comment From: aoyvx

@snicoll Thanks, it's cool. 😀