pull/198/head
M66B 4 years ago
parent db8c32db89
commit 779de80459

@ -34,11 +34,10 @@ import android.os.strictmode.Violation;
import android.util.Printer; import android.util.Printer;
import android.webkit.CookieManager; import android.webkit.CookieManager;
import androidx.annotation.NonNull;
import androidx.preference.PreferenceManager; import androidx.preference.PreferenceManager;
import androidx.work.WorkManager; import androidx.work.WorkManager;
import org.jetbrains.annotations.NotNull;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.Locale; import java.util.Locale;
@ -132,7 +131,7 @@ public class ApplicationEx extends Application
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override @Override
public void uncaughtException(@NotNull Thread thread, @NotNull Throwable ex) { public void uncaughtException(@NonNull Thread thread, @NonNull Throwable ex) {
if (!crash_reports && Log.isOwnFault(ex)) { if (!crash_reports && Log.isOwnFault(ex)) {
Log.e(ex); Log.e(ex);

@ -61,8 +61,6 @@ import androidx.viewpager.widget.ViewPager;
import com.google.android.material.tabs.TabLayout; import com.google.android.material.tabs.TabLayout;
import org.jetbrains.annotations.NotNull;
public class FragmentOptions extends FragmentBase { public class FragmentOptions extends FragmentBase {
private ViewPager pager; private ViewPager pager;
private PagerAdapter adapter; private PagerAdapter adapter;
@ -408,7 +406,7 @@ public class FragmentOptions extends FragmentBase {
return 10; return 10;
} }
@NotNull @NonNull
@Override @Override
public Fragment getItem(int position) { public Fragment getItem(int position) {
switch (position) { switch (position) {
@ -448,7 +446,7 @@ public class FragmentOptions extends FragmentBase {
return ssb; return ssb;
} }
@NotNull @NonNull
private CharSequence getTitle(int position) { private CharSequence getTitle(int position) {
switch (position) { switch (position) {
case 0: case 0:

@ -30,8 +30,6 @@ import android.util.MalformedJsonException;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.preference.PreferenceManager; import androidx.preference.PreferenceManager;
import org.jetbrains.annotations.NotNull;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.BufferedWriter; import java.io.BufferedWriter;
import java.io.File; import java.io.File;
@ -735,7 +733,7 @@ public class MessageClassifier {
this.chance = chance; this.chance = chance;
} }
@NotNull @NonNull
@Override @Override
public String toString() { public String toString() {
return clazz + "=" + Math.round(chance * 100.0 * 100.0) / 100.0 + "%"; return clazz + "=" + Math.round(chance * 100.0 * 100.0) / 100.0 + "%";

Loading…
Cancel
Save