Nullability refinements and related polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -67,7 +67,6 @@ public abstract class ApplicationEventsHolder {
|
||||
* @throws IllegalStateException if an instance of {@code ApplicationEvents}
|
||||
* has not been registered for the current thread
|
||||
*/
|
||||
@Nullable
|
||||
public static ApplicationEvents getRequiredApplicationEvents() {
|
||||
ApplicationEvents events = applicationEvents.get();
|
||||
Assert.state(events != null, "Failed to retrieve ApplicationEvents for the current thread. " +
|
||||
|
||||
Reference in New Issue
Block a user