OverrideObject.java revision 1088:7e62d98d4625
1275970Scy/* 2275970Scy * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 3275970Scy * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4275970Scy * 5275970Scy * This code is free software; you can redistribute it and/or modify it 6275970Scy * under the terms of the GNU General Public License version 2 only, as 7275970Scy * published by the Free Software Foundation. Oracle designates this 8275970Scy * particular file as subject to the "Classpath" exception as provided 9275970Scy * by Oracle in the LICENSE file that accompanied this code. 10275970Scy * 11275970Scy * This code is distributed in the hope that it will be useful, but WITHOUT 12275970Scy * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13362716Scy * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14275970Scy * version 2 for more details (a copy is included in the LICENSE file that 15344884Scy * accompanied this code). 16275970Scy * 17362716Scy * You should have received a copy of the GNU General Public License version 18275970Scy * 2 along with this work; if not, write to the Free Software Foundation, 19275970Scy * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20275970Scy * 21275970Scy * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22275970Scy * or visit www.oracle.com if you need additional information or have any 23275970Scy * questions. 24275970Scy */ 25275970Scy 26275970Scypackage jdk.nashorn.test.models; 27275970Scy 28275970Scy@SuppressWarnings("javadoc") 29275970Scypublic class OverrideObject { 30275970Scy @Override 31275970Scy public int hashCode() { 32275970Scy return 5; 33275970Scy } 34275970Scy 35275970Scy @Override 36275970Scy public String toString() { 37275970Scy return "override-object"; 38275970Scy } 39275970Scy 40275970Scy @Override 41285169Scy public boolean equals(final Object o) { 42275970Scy // TODO: add a FindBugs annotation to ignore EQ_ALWAYS_FALSE here. This is just a test. 43275970Scy return false; 44275970Scy } 45285169Scy} 46275970Scy