< prev index next >

src/java.desktop/share/classes/sun/awt/FontConfiguration.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1996, 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) 1996, 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
*** 1604,1614 **** } return exInt; } } ! private static boolean contains(short IDs[], short id, int limit) { for (int i = 0; i < limit; i++) { if (IDs[i] == id) { return true; } } --- 1604,1614 ---- } return exInt; } } ! private static boolean contains(short[] IDs, short id, int limit) { for (int i = 0; i < limit; i++) { if (IDs[i] == id) { return true; } }
*** 1756,1766 **** stringIDs = tmp; } return (short)(stringIDNum - 1); } ! private static short getShortArrayID(short sa[]) { char[] cc = new char[sa.length]; for (int i = 0; i < sa.length; i ++) { cc[i] = (char)sa[i]; } String s = new String(cc); --- 1756,1766 ---- stringIDs = tmp; } return (short)(stringIDNum - 1); } ! private static short getShortArrayID(short[] sa) { char[] cc = new char[sa.length]; for (int i = 0; i < sa.length; i ++) { cc[i] = (char)sa[i]; } String s = new String(cc);
< prev index next >