Bladeren bron

Add missing @NullMarked to spring-data package-info

Issue gh-17789
Rob Winch 15 uur geleden
bovenliggende
commit
f7f41ba6c4

+ 23 - 0
data/src/main/java/org/springframework/security/data/aot/hint/package-info.java

@@ -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;

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

@@ -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;
 	}
 

+ 23 - 0
data/src/main/java/org/springframework/security/data/repository/query/package-info.java

@@ -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;