Removes dead code and cleans up annotations Nullable/NonNull annotations.

This commit is contained in:
2021-07-05 22:41:49 -07:00
parent bf6220b339
commit 35659810f9
62 changed files with 290 additions and 255 deletions

View File

@@ -2,6 +2,7 @@ package com.majinnaibu.monstercards.utils;
import android.util.Log;
@SuppressWarnings("unused")
public class Logger {
public static final String LOG_TAG = "MonsterCards";
@@ -37,7 +38,7 @@ public class Logger {
StackTraceElement stackTraceElement = throwable.getStackTrace()[0];
String location = stackTraceElement.getClassName() + "." + stackTraceElement.getMethodName() + ":" + stackTraceElement.getLineNumber();
String message = String.format("Unexpected error occured at %s.", location);
String message = String.format("Unexpected error occurred at %s.", location);
Log.wtf(LOG_TAG, message, throwable);
}
@@ -55,7 +56,7 @@ public class Logger {
StackTraceElement stackTraceElement = throwable.getStackTrace()[0];
String location = stackTraceElement.getClassName() + "." + stackTraceElement.getMethodName() + ":" + stackTraceElement.getLineNumber();
String message = String.format("Unexpected error occured at %s.", location);
String message = String.format("Unexpected error occurred at %s.", location);
Log.e(LOG_TAG, message, throwable);
}
@@ -73,7 +74,7 @@ public class Logger {
StackTraceElement stackTraceElement = throwable.getStackTrace()[0];
String location = stackTraceElement.getClassName() + "." + stackTraceElement.getMethodName() + ":" + stackTraceElement.getLineNumber();
String message = String.format("Unexpected error occured at %s.", location);
String message = String.format("Unexpected error occurred at %s.", location);
Log.w(LOG_TAG, message, throwable);
}
@@ -91,7 +92,7 @@ public class Logger {
StackTraceElement stackTraceElement = throwable.getStackTrace()[0];
String location = stackTraceElement.getClassName() + "." + stackTraceElement.getMethodName() + ":" + stackTraceElement.getLineNumber();
String message = String.format("Unexpected error occured at %s.", location);
String message = String.format("Unexpected error occurred at %s.", location);
Log.i(LOG_TAG, message, throwable);
}
@@ -109,7 +110,7 @@ public class Logger {
StackTraceElement stackTraceElement = throwable.getStackTrace()[0];
String location = stackTraceElement.getClassName() + "." + stackTraceElement.getMethodName() + ":" + stackTraceElement.getLineNumber();
String message = String.format("Unexpected error occured at %s.", location);
String message = String.format("Unexpected error occurred at %s.", location);
Log.d(LOG_TAG, message, throwable);
}
@@ -127,7 +128,7 @@ public class Logger {
StackTraceElement stackTraceElement = throwable.getStackTrace()[0];
String location = stackTraceElement.getClassName() + "." + stackTraceElement.getMethodName() + ":" + stackTraceElement.getLineNumber();
String message = String.format("Unexpected error occured at %s.", location);
String message = String.format("Unexpected error occurred at %s.", location);
Log.v(LOG_TAG, message, throwable);
}