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

@@ -211,7 +211,7 @@ final class AsciiBytes {
if (this == obj) {
return true;
}
if (obj.getClass().equals(AsciiBytes.class)) {
if (obj.getClass() == AsciiBytes.class) {
AsciiBytes other = (AsciiBytes) obj;
if (this.length == other.length) {
for (int i = 0; i < this.length; i++) {