Skip to content

Commit

Permalink
no need of synchronized with Holder pattern
Browse files Browse the repository at this point in the history
Signed-off-by: olivier lamy <olamy@apache.org>
  • Loading branch information
olamy committed Sep 25, 2018
1 parent 2b518cf commit 7797286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jenkinsci/plugins/pubsub/PubsubBus.java
Expand Up @@ -96,7 +96,7 @@ public void onChange() {
* @return The installed {@link PubsubBus} implementation, or default
* implementation if none are found.
*/
public synchronized static @Nonnull PubsubBus getBus() {
public static @Nonnull PubsubBus getBus() {
return Holder.pubsubBus;
}

Expand Down

0 comments on commit 7797286

Please sign in to comment.