Commit 495d1b15 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #15153 from dreis2211

* pr/15153:
  Polish some Map operations
parents ab6ab0d5 3b4b0641
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 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.
......@@ -84,12 +84,7 @@ class TokenValidator {
}
private boolean hasValidKeyId(String tokenKey) {
for (String candidate : this.tokenKeys.keySet()) {
if (tokenKey.equals(candidate)) {
return true;
}
}
return false;
return this.tokenKeys.containsKey(tokenKey);
}
private boolean hasValidSignature(Token token, String key) {
......
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 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.
......@@ -43,8 +43,8 @@ public final class AutoConfigurationImportedCondition
ConditionEvaluationReport report = ConditionEvaluationReport
.get((ConfigurableListableBeanFactory) context
.getAutowireCapableBeanFactory());
return report.getConditionAndOutcomesBySource().keySet()
.contains(this.autoConfigurationClass.getName());
return report.getConditionAndOutcomesBySource()
.containsKey(this.autoConfigurationClass.getName());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment