diff options
author | Allen Winter <allen.winter@kdab.com> | 2022-06-06 08:09:39 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2022-06-06 08:09:39 -0400 |
commit | 5de3e1500d33e3f14b289ee29ceb79cd9cc64fed (patch) | |
tree | 071fd080dfcbb6e9e78aee3abded1236a9060470 /src/java | |
parent | 8a02c81153db797703adf2e18be94efe0f0c7b8c (diff) | |
download | libical-git-5de3e1500d33e3f14b289ee29ceb79cd9cc64fed.tar.gz |
REUSE compliance
fixes: #489
Diffstat (limited to 'src/java')
39 files changed, 96 insertions, 254 deletions
diff --git a/src/java/CMakeLists.txt b/src/java/CMakeLists.txt index 0b9c08a4..d1dd43d9 100644 --- a/src/java/CMakeLists.txt +++ b/src/java/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Allen Winter <winter@kde.org> +# SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ########### next target ############### diff --git a/src/java/ICalDurationType.java b/src/java/ICalDurationType.java index 2dcc2344..045589d9 100644 --- a/src/java/ICalDurationType.java +++ b/src/java/ICalDurationType.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: ICalDurationType.java CREATOR: structConverter 01/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; diff --git a/src/java/ICalParameter.java b/src/java/ICalParameter.java index af764e27..078c05f8 100644 --- a/src/java/ICalParameter.java +++ b/src/java/ICalParameter.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: ICalParameter.java CREATOR: gnorman 01/09/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; diff --git a/src/java/ICalPeriodType.java b/src/java/ICalPeriodType.java index 204ff2a1..765ca0c1 100644 --- a/src/java/ICalPeriodType.java +++ b/src/java/ICalPeriodType.java @@ -1,6 +1,8 @@ /*====================================================================== FILE: ICalPeriodType.java CREATOR: structConverter 01/11/02 + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; @@ -68,4 +70,3 @@ public class ICalPeriodType private ICalTimeType end = new ICalTimeType(); private ICalDurationType duration = new ICalDurationType(); } - diff --git a/src/java/ICalProperty.java b/src/java/ICalProperty.java index 87e99f6e..a93b4e0a 100644 --- a/src/java/ICalProperty.java +++ b/src/java/ICalProperty.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: ICalProperty.java CREATOR: gnorman 01/09/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; diff --git a/src/java/ICalRecurrenceType.java b/src/java/ICalRecurrenceType.java index cfe27911..e53bf93d 100644 --- a/src/java/ICalRecurrenceType.java +++ b/src/java/ICalRecurrenceType.java @@ -1,6 +1,8 @@ /*====================================================================== FILE: ICalRecurrenceType.java CREATOR: structConverter 01/11/02 + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; @@ -281,4 +283,3 @@ public class ICalRecurrenceType public static final int ICAL_BY_MONTH_SIZE = 13; public static final int ICAL_BY_SETPOS_SIZE = 367; } - diff --git a/src/java/ICalTimeType.java b/src/java/ICalTimeType.java index 15cf8715..ad0946c9 100644 --- a/src/java/ICalTimeType.java +++ b/src/java/ICalTimeType.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: ICalTimeType.java CREATOR: structConverter 01/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; @@ -132,4 +133,3 @@ public class ICalTimeType private int is_date; private String zone = new String(); // Converted from char* } - diff --git a/src/java/ICalTriggerType.java b/src/java/ICalTriggerType.java index e2ef7a72..d23f3ba4 100644 --- a/src/java/ICalTriggerType.java +++ b/src/java/ICalTriggerType.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: ICalTriggerType.java CREATOR: structConverter 01/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; @@ -90,4 +91,3 @@ public class ICalTriggerType private ICalTimeType time = new ICalTimeType(); private ICalDurationType duration = new ICalDurationType(); } - diff --git a/src/java/ICalValue.java b/src/java/ICalValue.java index f7160ff6..94c7de99 100644 --- a/src/java/ICalValue.java +++ b/src/java/ICalValue.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: ICalValue.java CREATOR: gnorman 01/10/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; diff --git a/src/java/VAgenda.java b/src/java/VAgenda.java index 8b85fe11..d487c0eb 100644 --- a/src/java/VAgenda.java +++ b/src/java/VAgenda.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: VAgenda.java CREATOR: fnguyen 01/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; @@ -10,7 +11,7 @@ public class VAgenda extends VComponent { public VAgenda() { super(ICalComponentKind.ICAL_VAGENDA_COMPONENT); - } + } public VAgenda(long obj) { diff --git a/src/java/VAlarm.java b/src/java/VAlarm.java index d7693f76..2de52e89 100644 --- a/src/java/VAlarm.java +++ b/src/java/VAlarm.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: VAlarm.java CREATOR: fnguyen 01/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; @@ -11,7 +12,7 @@ public class VAlarm extends VComponent { { super(ICalComponentKind.ICAL_VALARM_COMPONENT); } - + public VAlarm(long obj) { super(obj); diff --git a/src/java/VCalendar.java b/src/java/VCalendar.java index 4cfcad27..a3f0958f 100644 --- a/src/java/VCalendar.java +++ b/src/java/VCalendar.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: VCalendar.java CREATOR: echoi 01/28/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; @@ -10,7 +11,7 @@ public class VCalendar extends VComponent { public VCalendar() { super(ICalComponentKind.ICAL_VCALENDAR_COMPONENT); - } + } public VCalendar(long obj) { diff --git a/src/java/VComponent.java b/src/java/VComponent.java index d77c5bb9..b828b32c 100644 --- a/src/java/VComponent.java +++ b/src/java/VComponent.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: VComponent.java CREATOR: gnorman 01/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; diff --git a/src/java/VEvent.java b/src/java/VEvent.java index 2017aa58..33019b81 100644 --- a/src/java/VEvent.java +++ b/src/java/VEvent.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: VEvent.java CREATOR: fnguyen 01/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; @@ -10,7 +11,7 @@ public class VEvent extends VComponent { public VEvent() { super(ICalComponentKind.ICAL_VEVENT_COMPONENT); - } + } public VEvent(long obj) { diff --git a/src/java/VFreeBusy.java b/src/java/VFreeBusy.java index a781edc5..c8dbf144 100644 --- a/src/java/VFreeBusy.java +++ b/src/java/VFreeBusy.java @@ -1,10 +1,17 @@ +/*====================================================================== + FILE: VFreeBusy.java + CREATOR: + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 +======================================================================*/ + package net.cp.jlibical; public class VFreeBusy extends VComponent { public VFreeBusy() { super(ICalComponentKind.ICAL_VFREEBUSY_COMPONENT); - } + } public VFreeBusy(long obj) { diff --git a/src/java/VQuery.java b/src/java/VQuery.java index e94a0732..d827534a 100644 --- a/src/java/VQuery.java +++ b/src/java/VQuery.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: VQuery.java CREATOR: fnguyen 01/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; @@ -10,7 +11,7 @@ public class VQuery extends VComponent { public VQuery() { super(ICalComponentKind.ICAL_VQUERY_COMPONENT); - } + } public VQuery(long obj) { diff --git a/src/java/VToDo.java b/src/java/VToDo.java index 9e4a06e1..af1e2bcf 100644 --- a/src/java/VToDo.java +++ b/src/java/VToDo.java @@ -1,7 +1,8 @@ /*====================================================================== FILE: VToDo.java CREATOR: fnguyen 01/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ package net.cp.jlibical; @@ -10,7 +11,7 @@ public class VToDo extends VComponent { public VToDo() { super(ICalComponentKind.ICAL_VTODO_COMPONENT); - } + } public VToDo(long obj) { diff --git a/src/java/jlibical_consts_cxx.h b/src/java/jlibical_consts_cxx.h index b4c72da4..d970b660 100644 --- a/src/java/jlibical_consts_cxx.h +++ b/src/java/jlibical_consts_cxx.h @@ -2,18 +2,10 @@ FILE: jlibical_consts_cxx/h CREATOR: Srinivasa Boppana/George Norman - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef JLIBICAL_CONSTS_CXX_H #define JLIBICAL_CONSTS_CXX_H diff --git a/src/java/jlibical_utils_cxx.cpp b/src/java/jlibical_utils_cxx.cpp index d89ee862..e52e33f4 100644 --- a/src/java/jlibical_utils_cxx.cpp +++ b/src/java/jlibical_utils_cxx.cpp @@ -2,18 +2,10 @@ FILE: jlibical_utils_cxx.cpp CREATOR: Srinivasa Boppana/George Norman - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef JLIBICAL_UTILS_CXX_H @@ -415,7 +407,6 @@ jobject doCreateNewSurrogate(JNIEnv *env, jclass surrogateClass, jlong subject) return(result); } - //------------------------------------------------------- // For the given cpErr, create a new Exception and send it to env. // Note: Throw does not throw anything. It only sets the state. diff --git a/src/java/jlibical_utils_cxx.h b/src/java/jlibical_utils_cxx.h index d812202c..2a61b54e 100644 --- a/src/java/jlibical_utils_cxx.h +++ b/src/java/jlibical_utils_cxx.h @@ -2,18 +2,10 @@ FILE: jlibical_utils_cxx.h CREATOR: Srinivasa Boppana/George Norman - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef TEST_CXX_H @@ -66,5 +58,4 @@ jobject createNewICalPeriodType(JNIEnv *env, icalperiodtype* source); jobject doCreateNewSurrogate(JNIEnv *env, jclass surrogateClass, jlong subject); - #endif /*TEST_CXX_H*/ diff --git a/src/java/jniICalDurationType_cxx.cpp b/src/java/jniICalDurationType_cxx.cpp index d7bb9d97..de77ce94 100644 --- a/src/java/jniICalDurationType_cxx.cpp +++ b/src/java/jniICalDurationType_cxx.cpp @@ -1,18 +1,10 @@ /*====================================================================== FILE: jniICalDurationType_cxx.cpp CREATOR: structConverter - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #include <jni.h> @@ -26,7 +18,6 @@ static jfieldID ICalDurationType_Hours_FID; static jfieldID ICalDurationType_Minutes_FID; static jfieldID ICalDurationType_Seconds_FID; - void initICalDurationTypeFieldIDs(JNIEnv* env, jclass clazz) { ICalDurationType_Is_neg_FID = env->GetFieldID(clazz, "is_neg", "I"); diff --git a/src/java/jniICalDurationType_cxx.h b/src/java/jniICalDurationType_cxx.h index a7408e3c..44b28db7 100644 --- a/src/java/jniICalDurationType_cxx.h +++ b/src/java/jniICalDurationType_cxx.h @@ -2,18 +2,10 @@ FILE: jniICalDurationType_cxx.h CREATOR: structConverter - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef _jni_ICalDurationType_H #define _jni_ICalDurationType_H @@ -22,7 +14,6 @@ // I forgot how to do this using a typedef in c++!!!! #define ICalDurationType icaldurationtype - #ifdef __cplusplus extern "C" { #endif @@ -49,7 +40,6 @@ void jni_GetAll_from_ICalDurationType(struct ICalDurationType* __ICalDurationTyp JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalDurationType_initFIDs(JNIEnv *env, jclass clazz); JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalDurationType_init__J(JNIEnv *env, jobject thisICalDurationType, jlong data); - #ifdef __cplusplus } #endif diff --git a/src/java/jniICalPeriodType_cxx.cpp b/src/java/jniICalPeriodType_cxx.cpp index 84d3ed61..d1df8cdb 100644 --- a/src/java/jniICalPeriodType_cxx.cpp +++ b/src/java/jniICalPeriodType_cxx.cpp @@ -2,19 +2,11 @@ FILE: jniICalPeriodType_cxx.cpp CREATOR: structConverter - (C) COPYRIGHT 2001, Eric Busboom <eric@civicknowledge.com> - (C) COPYRIGHT 2001, Patrick Lewis <plewis@inetarena.com> + SPDX-FileCopyrightText: 2001, Eric Busboom <eric@civicknowledge.com> + SPDX-FileCopyrightText: 2001, Patrick Lewis <plewis@inetarena.com> - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #include <jni.h> @@ -26,7 +18,6 @@ static jfieldID ICalPeriodType_Start_FID; static jfieldID ICalPeriodType_End_FID; static jfieldID ICalPeriodType_Duration_FID; - void initICalPeriodTypeFieldIDs(JNIEnv* env, jclass clazz) { ICalPeriodType_Start_FID = env->GetFieldID(clazz, "start", "Lnet/cp/jlibical/ICalTimeType;"); diff --git a/src/java/jniICalPeriodType_cxx.h b/src/java/jniICalPeriodType_cxx.h index 5928219c..62d8a2e9 100644 --- a/src/java/jniICalPeriodType_cxx.h +++ b/src/java/jniICalPeriodType_cxx.h @@ -2,18 +2,10 @@ FILE: jniICalPeriodType_cxx.h CREATOR: structConverter - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef _jni_ICalPeriodType_H #define _jni_ICalPeriodType_H @@ -22,7 +14,6 @@ // I forgot how to do this using a typedef in c++!!!! #define ICalPeriodType icalperiodtype - #ifdef __cplusplus extern "C" { #endif @@ -44,7 +35,6 @@ void jni_GetAll_from_ICalPeriodType(struct ICalPeriodType* __ICalPeriodType_, JN JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalPeriodType_init__J(JNIEnv* env, jobject thisICalPeriodType, jlong data); JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalPeriodType_initFIDs(JNIEnv *env, jclass clazz); - #ifdef __cplusplus } #endif diff --git a/src/java/jniICalRecurrenceType_cxx.cpp b/src/java/jniICalRecurrenceType_cxx.cpp index 34048eaa..83325894 100644 --- a/src/java/jniICalRecurrenceType_cxx.cpp +++ b/src/java/jniICalRecurrenceType_cxx.cpp @@ -1,17 +1,8 @@ /*====================================================================== FILE: jniICalRecurrenceType_cxx.cpp CREATOR: structConverter - - This library is free software; you can redistribute it and/or modify - it under the terms of either: - - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 ======================================================================*/ #include <jni.h> @@ -35,7 +26,6 @@ static jfieldID ICalRecurrenceType_By_week_no_FID; static jfieldID ICalRecurrenceType_By_month_FID; static jfieldID ICalRecurrenceType_By_set_pos_FID; - void initICalRecurrenceTypeFieldIDs(JNIEnv* env, jclass clazz) { ICalRecurrenceType_Until_FID = env->GetFieldID(clazz, "until", "Lnet/cp/jlibical/ICalTimeType;"); @@ -343,7 +333,6 @@ void jni_GetAll_from_ICalRecurrenceType(struct ICalRecurrenceType* __ICalRecurre jni_GetBy_week_no_from_ICalRecurrenceType(__ICalRecurrenceType_, env, thisICalRecurrenceType); jni_GetBy_month_from_ICalRecurrenceType(__ICalRecurrenceType_, env, thisICalRecurrenceType); jni_GetBy_set_pos_from_ICalRecurrenceType(__ICalRecurrenceType_, env, thisICalRecurrenceType); - } JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalRecurrenceType_init__J(JNIEnv* env, jobject thisICalRecurrenceType, jlong data) { diff --git a/src/java/jniICalRecurrenceType_cxx.h b/src/java/jniICalRecurrenceType_cxx.h index 683cc017..47d90d1b 100644 --- a/src/java/jniICalRecurrenceType_cxx.h +++ b/src/java/jniICalRecurrenceType_cxx.h @@ -2,18 +2,10 @@ FILE: jniICalRecurrenceType_cxx.h CREATOR: structConverter - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef _jni_ICalRecurrenceType_H_ #define _jni_ICalRecurrenceType_H_ @@ -63,7 +55,6 @@ void jni_GetAll_from_ICalRecurrenceType(struct ICalRecurrenceType* __ICalRecurre JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalRecurrenceType_init__J(JNIEnv* env, jobject thisICalRecurrenceType, jlong data); JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalRecurrenceType_initFIDs(JNIEnv *env, jclass clazz); - #ifdef __cplusplus } #endif diff --git a/src/java/jniICalTimeType_cxx.cpp b/src/java/jniICalTimeType_cxx.cpp index 9609b3b8..f956a7f3 100644 --- a/src/java/jniICalTimeType_cxx.cpp +++ b/src/java/jniICalTimeType_cxx.cpp @@ -1,18 +1,10 @@ /*====================================================================== FILE: jniICalTimeType_cxx.cpp CREATOR: structConverter - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #include <jni.h> @@ -30,7 +22,6 @@ static jfieldID ICalTimeType_Second_FID; static jfieldID ICalTimeType_Is_date_FID; static jfieldID ICalTimeType_Zone_FID; - void initICalTimeTypeFieldIDs(JNIEnv* env, jclass clazz) { ICalTimeType_Year_FID = env->GetFieldID(clazz, "year", "I"); diff --git a/src/java/jniICalTimeType_cxx.h b/src/java/jniICalTimeType_cxx.h index ac28303d..e0f6fb9e 100644 --- a/src/java/jniICalTimeType_cxx.h +++ b/src/java/jniICalTimeType_cxx.h @@ -2,18 +2,10 @@ FILE: jniICalTimeType_cxx.h CREATOR: structConverter - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef _jni_ICalTimeType_H #define _jni_ICalTimeType_H @@ -52,7 +44,6 @@ void jni_GetAll_from_ICalTimeType(struct ICalTimeType* __ICalTimeType_, JNIEnv* JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalTimeType_initFIDs(JNIEnv *env, jclass clazz); JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalTimeType_init__J(JNIEnv* env, jobject thisICalTimeType, jlong data); - #ifdef __cplusplus } #endif diff --git a/src/java/jniICalTriggerType_cxx.cpp b/src/java/jniICalTriggerType_cxx.cpp index 42cea1aa..fd1a93a4 100644 --- a/src/java/jniICalTriggerType_cxx.cpp +++ b/src/java/jniICalTriggerType_cxx.cpp @@ -2,18 +2,10 @@ FILE: jniICalTriggerType_cxx.cpp CREATOR: structConverter - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #include <jni.h> @@ -24,7 +16,6 @@ static jfieldID ICalTriggerType_Time_FID; static jfieldID ICalTriggerType_Duration_FID; - void initICalTriggerTypeFieldIDs(JNIEnv* env, jclass clazz) { ICalTriggerType_Time_FID = env->GetFieldID(clazz, "time", "Lnet/cp/jlibical/ICalTimeType;"); diff --git a/src/java/jniICalTriggerType_cxx.h b/src/java/jniICalTriggerType_cxx.h index 3835caf5..e71f8f25 100644 --- a/src/java/jniICalTriggerType_cxx.h +++ b/src/java/jniICalTriggerType_cxx.h @@ -2,18 +2,10 @@ FILE: jniICalTriggerType_cxx.h CREATOR: structConverter - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef _jni_ICalTriggerType_H @@ -23,7 +15,6 @@ // I forgot how to do this using a typedef in c++!!!! #define ICalTriggerType icaltriggertype - #ifdef __cplusplus extern "C" { #endif @@ -42,7 +33,6 @@ void jni_GetAll_from_ICalTriggerType(struct ICalTriggerType* __ICalTriggerType_, JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalTriggerType_init__J(JNIEnv* env, jobject thisICalTriggerType, jlong data); JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalTriggerType_initFIDs(JNIEnv *env, jclass clazz); - #ifdef __cplusplus } #endif diff --git a/src/java/net_cp_jlibical_ICalParameter_cxx.cpp b/src/java/net_cp_jlibical_ICalParameter_cxx.cpp index d3d52da6..b55807a8 100644 --- a/src/java/net_cp_jlibical_ICalParameter_cxx.cpp +++ b/src/java/net_cp_jlibical_ICalParameter_cxx.cpp @@ -1,18 +1,10 @@ /*====================================================================== FILE: net_cp_jlibical_ICalParameter_cxx.cpp CREATOR: gnorman 1/10/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef NET_CP_JLIBICAL_ICALPARAMETER_CXX_H diff --git a/src/java/net_cp_jlibical_ICalParameter_cxx.h b/src/java/net_cp_jlibical_ICalParameter_cxx.h index 1949a0f2..88ba98a6 100644 --- a/src/java/net_cp_jlibical_ICalParameter_cxx.h +++ b/src/java/net_cp_jlibical_ICalParameter_cxx.h @@ -2,18 +2,10 @@ FILE: net_cp_jlibical_ICalParameter_cxx.h CREATOR: javah 1/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef _Included_net_cp_jlibical_ICalParameter #define _Included_net_cp_jlibical_ICalParameter diff --git a/src/java/net_cp_jlibical_ICalProperty_cxx.cpp b/src/java/net_cp_jlibical_ICalProperty_cxx.cpp index 415b696b..24846f15 100644 --- a/src/java/net_cp_jlibical_ICalProperty_cxx.cpp +++ b/src/java/net_cp_jlibical_ICalProperty_cxx.cpp @@ -1,18 +1,10 @@ /*====================================================================== FILE: net_cp_jlibical_ICalProperty_cxx.cpp CREATOR: gnorman 1/10/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef NET_CP_JLIBICAL_ICALPROPERTY_CXX_H @@ -1388,7 +1380,6 @@ JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalProperty_init__I setCObjectPtr(env,jobj,new ICalProperty((icalproperty_kind)kind)); } - /* * Class: net_cp_jlibical_ICalProperty * Method: set_status diff --git a/src/java/net_cp_jlibical_ICalProperty_cxx.h b/src/java/net_cp_jlibical_ICalProperty_cxx.h index b1c71c32..bc8af40f 100644 --- a/src/java/net_cp_jlibical_ICalProperty_cxx.h +++ b/src/java/net_cp_jlibical_ICalProperty_cxx.h @@ -2,18 +2,10 @@ FILE: net_cp_jlibical_ICalProperty_cxx.h CREATOR: javah 1/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef _Included_net_cp_jlibical_ICalProperty #define _Included_net_cp_jlibical_ICalProperty diff --git a/src/java/net_cp_jlibical_ICalValue_cxx.cpp b/src/java/net_cp_jlibical_ICalValue_cxx.cpp index f01a9338..3068ce47 100644 --- a/src/java/net_cp_jlibical_ICalValue_cxx.cpp +++ b/src/java/net_cp_jlibical_ICalValue_cxx.cpp @@ -1,18 +1,10 @@ /*====================================================================== FILE: net_cp_jlibical_ICalValue_cxx.cpp CREATOR: gnorman 1/10/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef NET_CP_JLIBICAL_ICALVALUE_CXX_H diff --git a/src/java/net_cp_jlibical_ICalValue_cxx.h b/src/java/net_cp_jlibical_ICalValue_cxx.h index f7ffde37..7de5cadc 100644 --- a/src/java/net_cp_jlibical_ICalValue_cxx.h +++ b/src/java/net_cp_jlibical_ICalValue_cxx.h @@ -2,18 +2,10 @@ FILE: net_cp_jlibical_ICalValue_cxx.h CREATOR: javah 1/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef _Included_net_cp_jlibical_ICalValue #define _Included_net_cp_jlibical_ICalValue diff --git a/src/java/net_cp_jlibical_VComponent_cxx.cpp b/src/java/net_cp_jlibical_VComponent_cxx.cpp index 1b5bb852..d7054618 100644 --- a/src/java/net_cp_jlibical_VComponent_cxx.cpp +++ b/src/java/net_cp_jlibical_VComponent_cxx.cpp @@ -1,18 +1,10 @@ /*====================================================================== FILE: net_cp_jlibical_VComponent_cxx.cpp CREATOR: gnorman 1/10/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef NET_CP_JLIBICAL_VCOMPONENT_CXX_H @@ -470,7 +462,6 @@ JNIEXPORT jobject JNICALL Java_net_cp_jlibical_VComponent_get_1dtend // create a new surrogate, using aTime as the subject. result = createNewICalTimeType(env,&aTime); - } return(result); diff --git a/src/java/net_cp_jlibical_VComponent_cxx.h b/src/java/net_cp_jlibical_VComponent_cxx.h index 3bf9d09e..8aa703af 100644 --- a/src/java/net_cp_jlibical_VComponent_cxx.h +++ b/src/java/net_cp_jlibical_VComponent_cxx.h @@ -2,18 +2,10 @@ FILE: net_cp_jlibical_VComponent_cxx.h CREATOR: javah 1/11/02 - (C) COPYRIGHT 2002, Critical Path + SPDX-FileCopyrightText: 2002, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ ======================================================================*/ #ifndef _Included_net_cp_jlibical_VComponent #define _Included_net_cp_jlibical_VComponent diff --git a/src/java/testjni.java b/src/java/testjni.java index bb6a6aee..89ff875b 100644 --- a/src/java/testjni.java +++ b/src/java/testjni.java @@ -1,3 +1,10 @@ +/*====================================================================== + FILE: testjni.java + CREATOR: + SPDX-FileCopyrightText: 2002, Critical Path + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 +======================================================================*/ + package net.cp.jlibical; import java.lang.String; |