Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 471a69e3 authored by Ken Wakasa's avatar Ken Wakasa Committed by Android Git Automerger
Browse files

am 31a53867: am a8d3d509: Small cleanup in CompatUtils

* commit '31a53867':
  Small cleanup in CompatUtils
parents 1922fc3c 31a53867
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ public final class CompatUtils {
        try {
            return constructor.newInstance(args);
        } catch (Exception e) {
            Log.e(TAG, "Exception in newInstance: " + e.getClass().getSimpleName());
            Log.e(TAG, "Exception in newInstance", e);
        }
        return null;
    }
@@ -92,7 +92,7 @@ public final class CompatUtils {
        try {
            return method.invoke(receiver, args);
        } catch (Exception e) {
            Log.e(TAG, "Exception in invoke: " + e.getClass().getSimpleName());
            Log.e(TAG, "Exception in invoke", e);
        }
        return defaultValue;
    }
@@ -103,7 +103,7 @@ public final class CompatUtils {
        try {
            return field.get(receiver);
        } catch (Exception e) {
            Log.e(TAG, "Exception in getFieldValue: " + e.getClass().getSimpleName());
            Log.e(TAG, "Exception in getFieldValue", e);
        }
        return defaultValue;
    }
@@ -113,7 +113,7 @@ public final class CompatUtils {
        try {
            field.set(receiver, value);
        } catch (Exception e) {
            Log.e(TAG, "Exception in setFieldValue: " + e.getClass().getSimpleName());
            Log.e(TAG, "Exception in setFieldValue", e);
        }
    }
}