Skip to content

Commit

Permalink
Refine null-safety
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Apr 5, 2024
1 parent d955549 commit 4a7c24d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public class LazyInitTargetSource extends AbstractBeanFactoryBasedTargetSource {


@Override
@Nullable
public synchronized Object getTarget() throws BeansException {
if (this.target == null) {
this.target = getBeanFactory().getBean(getTargetBeanName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ public void afterPropertiesSet() throws Exception {
* @see #getEarlySingletonInterfaces()
*/
@Override
@Nullable
public final T getObject() throws Exception {
if (isSingleton()) {
return (this.initialized ? this.singletonInstance : getEarlySingletonInstance());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ public final int getPosition() {
* @see #getSimpleMessage()
* @see java.lang.Throwable#getMessage()
*/
@Override
@Nullable
public String getMessage() {
return toDetailedString();
}
Expand All @@ -133,7 +131,6 @@ public String getMessage() {
* Return a detailed description of this exception, including the expression
* String and position (if available) as well as the actual exception message.
*/
@Nullable
public String toDetailedString() {
if (this.expressionString != null) {
StringBuilder output = new StringBuilder();
Expand All @@ -158,7 +155,6 @@ public String toDetailedString() {
* that caused the failure.
* @since 4.0
*/
@Nullable
public String getSimpleMessage() {
return super.getMessage();
}
Expand Down

0 comments on commit 4a7c24d

Please sign in to comment.