src/share/classes/javax/accessibility/AccessibleRelationSet.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1999, 2013, 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 --- 1,7 ---- /* ! * Copyright (c) 1999, 2014, 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
*** 193,204 **** if (relations == null) { return null; } else { int len = relations.size(); for (int i = 0; i < len; i++) { ! AccessibleRelation relation = ! (AccessibleRelation)relations.elementAt(i); if (relation != null && relation.getKey().equals(key)) { return relation; } } return null; --- 193,203 ---- if (relations == null) { return null; } else { int len = relations.size(); for (int i = 0; i < len; i++) { ! AccessibleRelation relation = relations.elementAt(i); if (relation != null && relation.getKey().equals(key)) { return relation; } } return null;
*** 214,224 **** return new AccessibleRelation[0]; } else { AccessibleRelation[] relationArray = new AccessibleRelation[relations.size()]; for (int i = 0; i < relationArray.length; i++) { ! relationArray[i] = (AccessibleRelation) relations.elementAt(i); } return relationArray; } } --- 213,223 ---- return new AccessibleRelation[0]; } else { AccessibleRelation[] relationArray = new AccessibleRelation[relations.size()]; for (int i = 0; i < relationArray.length; i++) { ! relationArray[i] = relations.elementAt(i); } return relationArray; } }
*** 230,244 **** * @see AccessibleBundle#toDisplayString */ public String toString() { String ret = ""; if ((relations != null) && (relations.size() > 0)) { ! ret = ((AccessibleRelation) (relations.elementAt(0))).toDisplayString(); for (int i = 1; i < relations.size(); i++) { ret = ret + "," ! + ((AccessibleRelation) (relations.elementAt(i))). ! toDisplayString(); } } return ret; } } --- 229,242 ---- * @see AccessibleBundle#toDisplayString */ public String toString() { String ret = ""; if ((relations != null) && (relations.size() > 0)) { ! ret = (relations.elementAt(0)).toDisplayString(); for (int i = 1; i < relations.size(); i++) { ret = ret + "," ! + (relations.elementAt(i)).toDisplayString(); } } return ret; } }