1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Add missing @NullMarked to spring-data package-info

Issue gh-17789
This commit is contained in:
Rob Winch
2025-08-22 11:59:28 -05:00
parent f496ded4e5
commit f7f41ba6c4
3 changed files with 47 additions and 1 deletions
@@ -0,0 +1,23 @@
/*
* Copyright 2004-present 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.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* AOT integration for Spring Security's Data integration.
*/
@NullMarked
package org.springframework.security.data.aot.hint;
import org.jspecify.annotations.NullMarked;
@@ -116,7 +116,7 @@ public class SecurityEvaluationContextExtension implements EvaluationContextExte
* Creates a new instance that always uses the same {@link Authentication} object.
* @param authentication the {@link Authentication} to use
*/
public SecurityEvaluationContextExtension(Authentication authentication) {
public SecurityEvaluationContextExtension(@Nullable Authentication authentication) {
this.authentication = authentication;
}
@@ -0,0 +1,23 @@
/*
* Copyright 2004-present 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.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Spring Security extensions for Spring Data queries.
*/
@NullMarked
package org.springframework.security.data.repository.query;
import org.jspecify.annotations.NullMarked;