< prev index next >
src/java.desktop/macosx/classes/com/apple/eio/FileManager.java
Print this page
*** 108,118 ****
*/
@SuppressWarnings("deprecation")
public static int OSTypeToInt(String type) {
int result = 0;
! byte b[] = { (byte) 0, (byte) 0, (byte) 0, (byte) 0 };
int len = type.length();
if (len > 0) {
if (len > 4) len = 4;
type.getBytes(0, len, b, 4 - len);
}
--- 108,118 ----
*/
@SuppressWarnings("deprecation")
public static int OSTypeToInt(String type) {
int result = 0;
! byte[] b = { (byte) 0, (byte) 0, (byte) 0, (byte) 0 };
int len = type.length();
if (len > 0) {
if (len > 4) len = 4;
type.getBytes(0, len, b, 4 - len);
}
< prev index next >