Skip to content

Commit afe7b6c

Browse files
fix: use @nonnull for required location field in Metaschema.java
Since location is required in the Metaschema module (required: yes), use @nonnull instead of @nullable for getLocation() and setLocation().
1 parent 22ac0c4 commit afe7b6c

File tree

1 file changed

+4
-3
lines changed
  • metaschema-testing/src/main/java/gov/nist/csrc/ns/metaschema/test_suite/_1_0

1 file changed

+4
-3
lines changed

metaschema-testing/src/main/java/gov/nist/csrc/ns/metaschema/test_suite/_1_0/Metaschema.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import java.lang.String;
1515
import java.net.URI;
1616

17+
import edu.umd.cs.findbugs.annotations.NonNull;
1718
import edu.umd.cs.findbugs.annotations.Nullable;
1819

1920
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
@@ -66,9 +67,9 @@ public IMetaschemaData getMetaschemaData() {
6667
/**
6768
* Get the URI reference to the metaschema module location.
6869
*
69-
* @return the location URI, or {@code null} if not set
70+
* @return the location URI
7071
*/
71-
@Nullable
72+
@NonNull
7273
public URI getLocation() {
7374
return _location;
7475
}
@@ -79,7 +80,7 @@ public URI getLocation() {
7980
* @param value
8081
* the location URI to set
8182
*/
82-
public void setLocation(@Nullable URI value) {
83+
public void setLocation(@NonNull URI value) {
8384
_location = value;
8485
}
8586

0 commit comments

Comments
 (0)