Commit f8c7890a authored by Phillip Webb's avatar Phillip Webb

Merge branch '1.5.x'

parents b1cb8bb3 58018e97
/* /*
* Copyright 2012-2016 the original author or authors. * Copyright 2012-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -224,9 +224,8 @@ final class AsciiBytes { ...@@ -224,9 +224,8 @@ final class AsciiBytes {
} }
public static int hashCode(int hash, String string) { public static int hashCode(int hash, String string) {
char[] chars = string.toCharArray(); for (int i = 0; i < string.length(); i++) {
for (int i = 0; i < chars.length; i++) { hash = 31 * hash + string.charAt(i);
hash = 31 * hash + chars[i];
} }
return hash; return hash;
} }
......
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