jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JModuleDirective.java
changeset 43852 93a527059d8a
parent 42124 640a383428fb
child 45678 65fdff10664d
equal deleted inserted replaced
43752:3c68ef249093 43852:93a527059d8a
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    99      * </pre></blockquote> using {@code int} arithmetic.
    99      * </pre></blockquote> using {@code int} arithmetic.
   100      * @return a hash code value for this object.
   100      * @return a hash code value for this object.
   101      */
   101      */
   102     @Override
   102     @Override
   103     public int hashCode() {
   103     public int hashCode() {
   104         return 97 * (Integer.hashCode(getType().ordinal() + 1)) + name.hashCode();
   104         return 97 * (Integer.valueOf(getType().ordinal() + 1)).hashCode() + name.hashCode();
   105     }
   105     }
   106 
   106 
   107     /**
   107     /**
   108      * Gets the name of this module directive.
   108      * Gets the name of this module directive.
   109      * @return name of this module directive.
   109      * @return name of this module directive.