Upgrade to Nullability Plugin 0.0.9

Closes gh-48638
This commit is contained in:
Andy Wilkinson
2026-01-08 11:59:51 +00:00
parent 9bd1a460a1
commit 0ffffee4bf
212 changed files with 2601 additions and 356 deletions
@@ -16,6 +16,10 @@
package org.springframework.boot.jsonb.autoconfigure.jsontest.app;
import java.util.Objects;
import org.jspecify.annotations.Nullable;
/**
* Example object to read/write as JSON.
*
@@ -23,9 +27,9 @@ package org.springframework.boot.jsonb.autoconfigure.jsontest.app;
*/
public class ExampleBasicObject {
private String value;
private @Nullable String value;
public String getValue() {
public @Nullable String getValue() {
return this.value;
}
@@ -36,14 +40,14 @@ public class ExampleBasicObject {
@Override
public boolean equals(Object obj) {
if (obj != null && obj.getClass() == getClass()) {
return this.value.equals(((ExampleBasicObject) obj).value);
return Objects.equals(this.value, ((ExampleBasicObject) obj).value);
}
return false;
}
@Override
public int hashCode() {
return this.value.hashCode();
return Objects.hashCode(this.value);
}
}
@@ -0,0 +1,20 @@
/*
* Copyright 2012-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.
*/
@NullMarked
package org.springframework.boot.jsonb.autoconfigure.jsontest.app;
import org.jspecify.annotations.NullMarked;
@@ -0,0 +1,20 @@
/*
* Copyright 2012-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.
*/
@NullMarked
package org.springframework.boot.jsonb.autoconfigure.jsontest;
import org.jspecify.annotations.NullMarked;