diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2020-05-12 13:52:39 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-06-09 20:03:05 +0000 |
commit | 41d73907d9cf4b08c7483a6a07d5ad4efaf13f84 (patch) | |
tree | e20a82cf47a80f063c967562e8a3389d6891f787 /server/sonar-webserver-core | |
parent | ef7557b75dec680b0bed940f87e52023720b8a53 (diff) | |
download | sonarqube-41d73907d9cf4b08c7483a6a07d5ad4efaf13f84.tar.gz sonarqube-41d73907d9cf4b08c7483a6a07d5ad4efaf13f84.zip |
SONAR-14951 Scanners require Java 11
Diffstat (limited to 'server/sonar-webserver-core')
-rw-r--r-- | server/sonar-webserver-core/src/main/java/org/sonar/server/rule/RegisterRules.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/rule/RegisterRules.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/rule/RegisterRules.java index 86b5c3148c5..ce0fc6e48e0 100644 --- a/server/sonar-webserver-core/src/main/java/org/sonar/server/rule/RegisterRules.java +++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/rule/RegisterRules.java @@ -225,7 +225,7 @@ public class RegisterRules implements Startable { .filter(Objects::nonNull) .findFirst(); // may occur in case of plugin downgrade - if (!res.isPresent()) { + if (res.isEmpty()) { return Optional.ofNullable(dbRulesByDbDeprecatedKey.get(ruleKey)); } return res; |