[java-metadata-aggregator] branch main updated: Refactor: null safety
Ian Young
ian at iay.org.uk
Wed Oct 19 09:39:02 UTC 2022
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch main
in repository java-metadata-aggregator.
View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=3cd2c439f9a5da70dd1eb7fb238d0d599a6fd480
The following commit(s) were added to refs/heads/main by this push:
new 3cd2c43 Refactor: null safety
3cd2c43 is described below
commit 3cd2c439f9a5da70dd1eb7fb238d0d599a6fd480
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Wed Oct 19 10:38:59 2022 +0100
Refactor: null safety
---
.../src/main/java/net/shibboleth/metadata/cli/SimpleCommandLine.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mda-cli/src/main/java/net/shibboleth/metadata/cli/SimpleCommandLine.java b/mda-cli/src/main/java/net/shibboleth/metadata/cli/SimpleCommandLine.java
index 2055a5b..b6c16f8 100644
--- a/mda-cli/src/main/java/net/shibboleth/metadata/cli/SimpleCommandLine.java
+++ b/mda-cli/src/main/java/net/shibboleth/metadata/cli/SimpleCommandLine.java
@@ -174,8 +174,9 @@ public final class SimpleCommandLine {
* @param cli command line arguments
*/
protected static void initLogging(final SimpleCommandLineArguments cli) {
- if (cli.getLoggingConfiguration() != null) {
- setLoggingProperty(cli.getLoggingConfiguration());
+ final var config = cli.getLoggingConfiguration();
+ if (config != null) {
+ setLoggingProperty(config);
} else if (cli.doVerboseOutput()) {
setLoggingToLocalResource("logger-verbose.xml");
} else if (cli.doQuietOutput()) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list