[java-mvn-enforcer] 02/03: Supress a null warning
Rod Widdowson
rdw at steadingsoftware.com
Wed Nov 1 14:12:38 UTC 2023
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-mvn-enforcer.
View the commit online:
http://git.shibboleth.net/view/?p=java-mvn-enforcer.git;a=commit;h=0759a66d68e2f93451c7d14a1c20dc7073bed13a
commit 0759a66d68e2f93451c7d14a1c20dc7073bed13a
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Oct 30 14:11:37 2023 +0000
Supress a null warning
---
src/test/java/net/shibboleth/mvn/enforcer/cli/impl/ListKeysCLI.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test/java/net/shibboleth/mvn/enforcer/cli/impl/ListKeysCLI.java b/src/test/java/net/shibboleth/mvn/enforcer/cli/impl/ListKeysCLI.java
index ecca3ef..23c2ae4 100644
--- a/src/test/java/net/shibboleth/mvn/enforcer/cli/impl/ListKeysCLI.java
+++ b/src/test/java/net/shibboleth/mvn/enforcer/cli/impl/ListKeysCLI.java
@@ -74,6 +74,7 @@ public final class ListKeysCLI extends AbstractCommandLine<ListKeysCommandLineAr
if (log == null) {
log = LoggerFactory.getLogger(ListKeysCLI.class);
}
+ assert log!=null;
return log;
}
@@ -170,7 +171,7 @@ public final class ListKeysCLI extends AbstractCommandLine<ListKeysCommandLineAr
/** {@inheritDoc} */
@Override
- @Nullable protected String getVersion() {
+ protected @Nonnull String getVersion() {
return "Unversioned - only for test";
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list