Skip to content

Commit f7f41ba

Browse files
committed
Add missing @NullMarked to spring-data package-info
Issue gh-17789
1 parent f496ded commit f7f41ba

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright 2004-present the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* AOT integration for Spring Security's Data integration.
19+
*/
20+
@NullMarked
21+
package org.springframework.security.data.aot.hint;
22+
23+
import org.jspecify.annotations.NullMarked;

data/src/main/java/org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public SecurityEvaluationContextExtension() {
116116
* Creates a new instance that always uses the same {@link Authentication} object.
117117
* @param authentication the {@link Authentication} to use
118118
*/
119-
public SecurityEvaluationContextExtension(Authentication authentication) {
119+
public SecurityEvaluationContextExtension(@Nullable Authentication authentication) {
120120
this.authentication = authentication;
121121
}
122122

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright 2004-present the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* Spring Security extensions for Spring Data queries.
19+
*/
20+
@NullMarked
21+
package org.springframework.security.data.repository.query;
22+
23+
import org.jspecify.annotations.NullMarked;

0 commit comments

Comments
 (0)