From 40e57b32867452bcad383dd5b76ebe9078ebca0e Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Thu, 15 Nov 2018 02:11:44 +0100 Subject: [PATCH] remove header boilerplate --- src/com/b44t/messenger/DcChat.java | 21 ----------------- src/com/b44t/messenger/DcChatlist.java | 23 ------------------- src/com/b44t/messenger/DcContact.java | 23 ------------------- src/com/b44t/messenger/DcContext.java | 23 ------------------- src/com/b44t/messenger/DcEventCenter.java | 23 ------------------- src/com/b44t/messenger/DcLot.java | 23 ------------------- src/com/b44t/messenger/DcMsg.java | 23 ------------------- .../connect/ApplicationDcContext.java | 1 - .../connect/AttachmentsContentProvider.java | 1 - .../securesms/connect/DcChatlistLoader.java | 1 - .../securesms/connect/DcContactsLoader.java | 1 - .../securesms/connect/DcMsgListLoader.java | 1 - .../securesms/connect/ForegroundDetector.java | 1 - .../securesms/connect/KeepAliveService.java | 1 - .../connect/NetworkStateReceiver.java | 2 -- 15 files changed, 168 deletions(-) diff --git a/src/com/b44t/messenger/DcChat.java b/src/com/b44t/messenger/DcChat.java index 70eaaf58a..28128c720 100644 --- a/src/com/b44t/messenger/DcChat.java +++ b/src/com/b44t/messenger/DcChat.java @@ -1,24 +1,3 @@ -/******************************************************************************* - * - * Delta Chat Java Adapter - * (C) 2017 Björn Petersen - * Contact: r10s@b44t.com, http://b44t.com - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see http://www.gnu.org/licenses/ . - * - ******************************************************************************/ - package com.b44t.messenger; public class DcChat { diff --git a/src/com/b44t/messenger/DcChatlist.java b/src/com/b44t/messenger/DcChatlist.java index 79b2772b0..0b2343d38 100644 --- a/src/com/b44t/messenger/DcChatlist.java +++ b/src/com/b44t/messenger/DcChatlist.java @@ -1,28 +1,5 @@ -/******************************************************************************* - * - * Delta Chat Java Adapter - * (C) 2017 Björn Petersen - * Contact: r10s@b44t.com, http://b44t.com - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see http://www.gnu.org/licenses/ . - * - ******************************************************************************/ - - package com.b44t.messenger; - import android.support.annotation.NonNull; public class DcChatlist { diff --git a/src/com/b44t/messenger/DcContact.java b/src/com/b44t/messenger/DcContact.java index 48b26a036..f380c2ec2 100644 --- a/src/com/b44t/messenger/DcContact.java +++ b/src/com/b44t/messenger/DcContact.java @@ -1,28 +1,5 @@ -/******************************************************************************* - * - * Delta Chat Java Adapter - * (C) 2017 Björn Petersen - * Contact: r10s@b44t.com, http://b44t.com - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see http://www.gnu.org/licenses/ . - * - ******************************************************************************/ - - package com.b44t.messenger; - public class DcContact { public final static int DC_CONTACT_ID_SELF = 1; diff --git a/src/com/b44t/messenger/DcContext.java b/src/com/b44t/messenger/DcContext.java index 35fa87bb2..ebdf5c669 100644 --- a/src/com/b44t/messenger/DcContext.java +++ b/src/com/b44t/messenger/DcContext.java @@ -1,28 +1,5 @@ -/******************************************************************************* - * - * Delta Chat Java Adapter - * (C) 2017 Björn Petersen - * Contact: r10s@b44t.com, http://b44t.com - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see http://www.gnu.org/licenses/ . - * - ******************************************************************************/ - - package com.b44t.messenger; - import android.support.annotation.NonNull; public class DcContext { diff --git a/src/com/b44t/messenger/DcEventCenter.java b/src/com/b44t/messenger/DcEventCenter.java index a169c598f..02e5a3c2a 100644 --- a/src/com/b44t/messenger/DcEventCenter.java +++ b/src/com/b44t/messenger/DcEventCenter.java @@ -1,28 +1,5 @@ -/* ***************************************************************************** - * - * Delta Chat Java Adapter - * (C) 2017 Björn Petersen - * Contact: r10s@b44t.com, http://b44t.com - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see http://www.gnu.org/licenses/ . - * - ******************************************************************************/ - - package com.b44t.messenger; - import android.os.AsyncTask; import org.thoughtcrime.securesms.util.Util; diff --git a/src/com/b44t/messenger/DcLot.java b/src/com/b44t/messenger/DcLot.java index 8d5a7e356..97ab2f013 100644 --- a/src/com/b44t/messenger/DcLot.java +++ b/src/com/b44t/messenger/DcLot.java @@ -1,28 +1,5 @@ -/******************************************************************************* - * - * Delta Chat Java Adapter - * (C) 2017 Björn Petersen - * Contact: r10s@b44t.com, http://b44t.com - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see http://www.gnu.org/licenses/ . - * - ******************************************************************************/ - - package com.b44t.messenger; - public class DcLot { public final static int DC_TEXT1_DRAFT = 1; diff --git a/src/com/b44t/messenger/DcMsg.java b/src/com/b44t/messenger/DcMsg.java index 86e7c936f..72da29cb5 100644 --- a/src/com/b44t/messenger/DcMsg.java +++ b/src/com/b44t/messenger/DcMsg.java @@ -1,28 +1,5 @@ -/******************************************************************************* - * - * Delta Chat Java Adapter - * (C) 2017 Björn Petersen - * Contact: r10s@b44t.com, http://b44t.com - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see http://www.gnu.org/licenses/ . - * - ******************************************************************************/ - - package com.b44t.messenger; - import android.support.annotation.NonNull; import android.support.annotation.Nullable; diff --git a/src/org/thoughtcrime/securesms/connect/ApplicationDcContext.java b/src/org/thoughtcrime/securesms/connect/ApplicationDcContext.java index 1d4d7a529..4e763e529 100644 --- a/src/org/thoughtcrime/securesms/connect/ApplicationDcContext.java +++ b/src/org/thoughtcrime/securesms/connect/ApplicationDcContext.java @@ -45,7 +45,6 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; - public class ApplicationDcContext extends DcContext { @IntDef({RECIPIENT_TYPE_CHAT, RECIPIENT_TYPE_CONTACT}) diff --git a/src/org/thoughtcrime/securesms/connect/AttachmentsContentProvider.java b/src/org/thoughtcrime/securesms/connect/AttachmentsContentProvider.java index 84ce9c194..0042a077a 100644 --- a/src/org/thoughtcrime/securesms/connect/AttachmentsContentProvider.java +++ b/src/org/thoughtcrime/securesms/connect/AttachmentsContentProvider.java @@ -9,7 +9,6 @@ import android.os.ParcelFileDescriptor; import java.io.File; import java.io.FileNotFoundException; - public class AttachmentsContentProvider extends ContentProvider { /* We save all attachments in our private files-directory diff --git a/src/org/thoughtcrime/securesms/connect/DcChatlistLoader.java b/src/org/thoughtcrime/securesms/connect/DcChatlistLoader.java index a55398e8a..7f37c167f 100644 --- a/src/org/thoughtcrime/securesms/connect/DcChatlistLoader.java +++ b/src/org/thoughtcrime/securesms/connect/DcChatlistLoader.java @@ -1,6 +1,5 @@ package org.thoughtcrime.securesms.connect; - import android.content.Context; import android.support.annotation.NonNull; import android.util.Log; diff --git a/src/org/thoughtcrime/securesms/connect/DcContactsLoader.java b/src/org/thoughtcrime/securesms/connect/DcContactsLoader.java index 46f772854..8acbd4820 100644 --- a/src/org/thoughtcrime/securesms/connect/DcContactsLoader.java +++ b/src/org/thoughtcrime/securesms/connect/DcContactsLoader.java @@ -1,6 +1,5 @@ package org.thoughtcrime.securesms.connect; - import android.content.Context; import android.support.annotation.NonNull; import android.util.Log; diff --git a/src/org/thoughtcrime/securesms/connect/DcMsgListLoader.java b/src/org/thoughtcrime/securesms/connect/DcMsgListLoader.java index 9c24f4400..47ebd5f04 100644 --- a/src/org/thoughtcrime/securesms/connect/DcMsgListLoader.java +++ b/src/org/thoughtcrime/securesms/connect/DcMsgListLoader.java @@ -1,6 +1,5 @@ package org.thoughtcrime.securesms.connect; - import android.content.Context; import android.support.annotation.NonNull; import android.util.Log; diff --git a/src/org/thoughtcrime/securesms/connect/ForegroundDetector.java b/src/org/thoughtcrime/securesms/connect/ForegroundDetector.java index 59481baef..8938404f8 100644 --- a/src/org/thoughtcrime/securesms/connect/ForegroundDetector.java +++ b/src/org/thoughtcrime/securesms/connect/ForegroundDetector.java @@ -8,7 +8,6 @@ import android.os.Bundle; import org.thoughtcrime.securesms.ApplicationContext; - @SuppressLint("NewApi") public class ForegroundDetector implements Application.ActivityLifecycleCallbacks { diff --git a/src/org/thoughtcrime/securesms/connect/KeepAliveService.java b/src/org/thoughtcrime/securesms/connect/KeepAliveService.java index 13fb0b911..ad0753787 100644 --- a/src/org/thoughtcrime/securesms/connect/KeepAliveService.java +++ b/src/org/thoughtcrime/securesms/connect/KeepAliveService.java @@ -16,7 +16,6 @@ import org.thoughtcrime.securesms.R; import java.util.Locale; - public class KeepAliveService extends Service { static KeepAliveService s_this = null; diff --git a/src/org/thoughtcrime/securesms/connect/NetworkStateReceiver.java b/src/org/thoughtcrime/securesms/connect/NetworkStateReceiver.java index 93a0301d9..d97a6dc85 100644 --- a/src/org/thoughtcrime/securesms/connect/NetworkStateReceiver.java +++ b/src/org/thoughtcrime/securesms/connect/NetworkStateReceiver.java @@ -1,6 +1,5 @@ package org.thoughtcrime.securesms.connect; - import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; @@ -11,7 +10,6 @@ import android.util.Log; import org.thoughtcrime.securesms.connect.ApplicationDcContext; import org.thoughtcrime.securesms.connect.DcHelper; - public class NetworkStateReceiver extends BroadcastReceiver { @Override