Skip to content

Commit

Permalink
Revert "Prevent compilation warnings with @Nullable"
Browse files Browse the repository at this point in the history
This reverts commit dc242df.
  • Loading branch information
sdeleuze committed Apr 10, 2024
1 parent f6089af commit d6e9562
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2024 the original author or authors.
* Copyright 2002-2023 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.
Expand All @@ -22,8 +22,9 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import javax.annotation.meta.TypeQualifierNickname;
import javax.annotation.meta.When;

/**
* A common Spring annotation to declare that annotated elements can be {@code null}
Expand All @@ -49,7 +50,7 @@
@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@CheckForNull
@Nonnull(when = When.MAYBE)
@TypeQualifierNickname
public @interface Nullable {
}

0 comments on commit d6e9562

Please sign in to comment.