From 83ee966c1d2b9d030df584a78c4987365080ac21 Mon Sep 17 00:00:00 2001 From: David Allison <62114487+david-allison-1@users.noreply.github.com> Date: Fri, 23 Apr 2021 00:56:54 +0100 Subject: [PATCH] lint: add missing copyright All my files, all in 2020, I learned in 2021 Fixes partially 8659 --- .../ichi2/anki/cardviewer/CardAppearance.java | 16 ++++++++++++++++ .../exception/ManuallyReportedException.java | 16 ++++++++++++++++ .../ichi2/anki/reviewer/ActionButtonStatus.java | 16 ++++++++++++++++ .../com/ichi2/anki/reviewer/ActionButtons.java | 16 ++++++++++++++++ .../java/com/ichi2/anki/reviewer/CardMarker.java | 16 ++++++++++++++++ .../libanki/exception/NoSuchDeckException.java | 16 ++++++++++++++++ .../ichi2/preferences/PreferenceExtensions.java | 16 ++++++++++++++++ .../java/com/ichi2/ui/ActionBarOverflow.java | 16 ++++++++++++++++ .../src/main/java/com/ichi2/utils/FileUtil.java | 16 ++++++++++++++++ .../com/ichi2/utils/FunctionalInterfaces.java | 16 ++++++++++++++++ .../src/main/java/com/ichi2/utils/HtmlUtils.java | 16 ++++++++++++++++ .../main/java/com/ichi2/utils/Permissions.java | 16 ++++++++++++++++ .../java/com/ichi2/utils/WebViewDebugging.java | 16 ++++++++++++++++ 13 files changed, 208 insertions(+) diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/cardviewer/CardAppearance.java b/AnkiDroid/src/main/java/com/ichi2/anki/cardviewer/CardAppearance.java index 26fc3d238a..fbab63cc7a 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/cardviewer/CardAppearance.java +++ b/AnkiDroid/src/main/java/com/ichi2/anki/cardviewer/CardAppearance.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.anki.cardviewer; import android.content.SharedPreferences; diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/exception/ManuallyReportedException.java b/AnkiDroid/src/main/java/com/ichi2/anki/exception/ManuallyReportedException.java index 4900aec617..db228bc5c1 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/exception/ManuallyReportedException.java +++ b/AnkiDroid/src/main/java/com/ichi2/anki/exception/ManuallyReportedException.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.anki.exception; /** An exception for manual reporting to ACRA */ diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/ActionButtonStatus.java b/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/ActionButtonStatus.java index b8830372b7..dec419a880 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/ActionButtonStatus.java +++ b/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/ActionButtonStatus.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.anki.reviewer; import android.content.SharedPreferences; diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/ActionButtons.java b/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/ActionButtons.java index 82029be916..dc18120339 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/ActionButtons.java +++ b/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/ActionButtons.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.anki.reviewer; import android.content.SharedPreferences; diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/CardMarker.java b/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/CardMarker.java index 808002864f..4d9ed05349 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/CardMarker.java +++ b/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/CardMarker.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.anki.reviewer; import android.view.View; diff --git a/AnkiDroid/src/main/java/com/ichi2/libanki/exception/NoSuchDeckException.java b/AnkiDroid/src/main/java/com/ichi2/libanki/exception/NoSuchDeckException.java index 5d651a7f14..8091afcf93 100644 --- a/AnkiDroid/src/main/java/com/ichi2/libanki/exception/NoSuchDeckException.java +++ b/AnkiDroid/src/main/java/com/ichi2/libanki/exception/NoSuchDeckException.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.libanki.exception; /** diff --git a/AnkiDroid/src/main/java/com/ichi2/preferences/PreferenceExtensions.java b/AnkiDroid/src/main/java/com/ichi2/preferences/PreferenceExtensions.java index 2df47b08db..d61a5ffc23 100644 --- a/AnkiDroid/src/main/java/com/ichi2/preferences/PreferenceExtensions.java +++ b/AnkiDroid/src/main/java/com/ichi2/preferences/PreferenceExtensions.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.preferences; import android.content.SharedPreferences; diff --git a/AnkiDroid/src/main/java/com/ichi2/ui/ActionBarOverflow.java b/AnkiDroid/src/main/java/com/ichi2/ui/ActionBarOverflow.java index 854668eb57..167a65ec27 100644 --- a/AnkiDroid/src/main/java/com/ichi2/ui/ActionBarOverflow.java +++ b/AnkiDroid/src/main/java/com/ichi2/ui/ActionBarOverflow.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.ui; import android.util.Pair; diff --git a/AnkiDroid/src/main/java/com/ichi2/utils/FileUtil.java b/AnkiDroid/src/main/java/com/ichi2/utils/FileUtil.java index 6f9d012144..5d943b8426 100644 --- a/AnkiDroid/src/main/java/com/ichi2/utils/FileUtil.java +++ b/AnkiDroid/src/main/java/com/ichi2/utils/FileUtil.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.utils; import android.content.ContentResolver; diff --git a/AnkiDroid/src/main/java/com/ichi2/utils/FunctionalInterfaces.java b/AnkiDroid/src/main/java/com/ichi2/utils/FunctionalInterfaces.java index 59bf300eae..6ae3baf2bb 100644 --- a/AnkiDroid/src/main/java/com/ichi2/utils/FunctionalInterfaces.java +++ b/AnkiDroid/src/main/java/com/ichi2/utils/FunctionalInterfaces.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.utils; diff --git a/AnkiDroid/src/main/java/com/ichi2/utils/HtmlUtils.java b/AnkiDroid/src/main/java/com/ichi2/utils/HtmlUtils.java index 6af07e7d53..aec5365c7e 100644 --- a/AnkiDroid/src/main/java/com/ichi2/utils/HtmlUtils.java +++ b/AnkiDroid/src/main/java/com/ichi2/utils/HtmlUtils.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.utils; import android.text.TextUtils; diff --git a/AnkiDroid/src/main/java/com/ichi2/utils/Permissions.java b/AnkiDroid/src/main/java/com/ichi2/utils/Permissions.java index f4964091b7..e7c976732f 100644 --- a/AnkiDroid/src/main/java/com/ichi2/utils/Permissions.java +++ b/AnkiDroid/src/main/java/com/ichi2/utils/Permissions.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.utils; import android.Manifest; diff --git a/AnkiDroid/src/main/java/com/ichi2/utils/WebViewDebugging.java b/AnkiDroid/src/main/java/com/ichi2/utils/WebViewDebugging.java index 0329db2bf3..3df3ecd91d 100644 --- a/AnkiDroid/src/main/java/com/ichi2/utils/WebViewDebugging.java +++ b/AnkiDroid/src/main/java/com/ichi2/utils/WebViewDebugging.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2020 David Allison + * + * 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 . + */ + package com.ichi2.utils; import android.content.SharedPreferences;