Make hot methods in-line friendly

Refactor a few hot methods so that they are more likely to be in-lined
by the JIT.

Fixes gh-11409
This commit is contained in:
Phillip Webb
2017-12-21 18:28:48 -08:00
parent e141f77801
commit 2efa21c570
4 changed files with 27 additions and 15 deletions

View File

@@ -74,7 +74,7 @@ class WebTestClientContextCustomizer implements ContextCustomizer {
@Override
public boolean equals(Object obj) {
return (obj != null && obj.getClass().equals(getClass()));
return (obj != null && obj.getClass() == getClass());
}
/**