< prev index next >

src/java.desktop/unix/native/libawt_xawt/awt/awt_Insets.c

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1998, 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) 1998, 2019, 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
*** 22,41 **** * or visit www.oracle.com if you need additional information or have any * questions. */ #include "java_awt_Insets.h" - #include "jni_util.h" - - #include "awt_Insets.h" - - struct InsetsIDs insetsIDs; - JNIEXPORT void JNICALL Java_java_awt_Insets_initIDs(JNIEnv *env, jclass cls) { - CHECK_NULL(insetsIDs.top = (*env)->GetFieldID(env, cls, "top", "I")); - CHECK_NULL(insetsIDs.bottom = (*env)->GetFieldID(env, cls, "bottom", "I")); - CHECK_NULL(insetsIDs.left = (*env)->GetFieldID(env, cls, "left", "I")); - CHECK_NULL(insetsIDs.right = (*env)->GetFieldID(env, cls, "right", "I")); } --- 22,31 ----
< prev index next >