< prev index next >
jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JModuleDirective.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -99,11 +99,11 @@
* </pre></blockquote> using {@code int} arithmetic.
* @return a hash code value for this object.
*/
@Override
public int hashCode() {
- return 97 * (Integer.hashCode(getType().ordinal() + 1)) + name.hashCode();
+ return 97 * (Integer.valueOf(getType().ordinal() + 1)).hashCode() + name.hashCode();
}
/**
* Gets the name of this module directive.
* @return name of this module directive.
< prev index next >