< prev index next >

src/java.desktop/share/classes/javax/swing/text/html/AccessibleHTML.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 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 --- 1,7 ---- /* ! * Copyright (c) 2000, 2018, 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
*** 1973,1983 **** for (int i = 0; i < nRows; i++) { if (isAccessibleRowSelected(i)) { vec.addElement(Integer.valueOf(i)); } } ! int retval[] = new int[vec.size()]; for (int i = 0; i < retval.length; i++) { retval[i] = vec.elementAt(i).intValue(); } return retval; } --- 1973,1983 ---- for (int i = 0; i < nRows; i++) { if (isAccessibleRowSelected(i)) { vec.addElement(Integer.valueOf(i)); } } ! int[] retval = new int[vec.size()]; for (int i = 0; i < retval.length; i++) { retval[i] = vec.elementAt(i).intValue(); } return retval; }
*** 1998,2008 **** for (int i = 0; i < nColumns; i++) { if (isAccessibleColumnSelected(i)) { vec.addElement(Integer.valueOf(i)); } } ! int retval[] = new int[vec.size()]; for (int i = 0; i < retval.length; i++) { retval[i] = vec.elementAt(i).intValue(); } return retval; } --- 1998,2008 ---- for (int i = 0; i < nColumns; i++) { if (isAccessibleColumnSelected(i)) { vec.addElement(Integer.valueOf(i)); } } ! int[] retval = new int[vec.size()]; for (int i = 0; i < retval.length; i++) { retval[i] = vec.elementAt(i).intValue(); } return retval; }
< prev index next >