aboutsummaryrefslogtreecommitdiff
path: root/src/com/android/tv/util/MainThreadExecutor.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/tv/util/MainThreadExecutor.java')
-rw-r--r--src/com/android/tv/util/MainThreadExecutor.java19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/com/android/tv/util/MainThreadExecutor.java b/src/com/android/tv/util/MainThreadExecutor.java
index ce8f8ff3..5102ddbd 100644
--- a/src/com/android/tv/util/MainThreadExecutor.java
+++ b/src/com/android/tv/util/MainThreadExecutor.java
@@ -18,7 +18,6 @@ package com.android.tv.util;
import android.os.Handler;
import android.os.Looper;
-
import java.util.List;
import java.util.concurrent.AbstractExecutorService;
import java.util.concurrent.TimeUnit;
@@ -26,11 +25,11 @@ import java.util.concurrent.TimeUnit;
/**
* An executor service that executes its tasks on the main thread.
*
- * Shutting down this executor is not supported.
+ * <p>Shutting down this executor is not supported.
*/
public class MainThreadExecutor extends AbstractExecutorService {
- private final static MainThreadExecutor INSTANCE = new MainThreadExecutor();
+ private static final MainThreadExecutor INSTANCE = new MainThreadExecutor();
public static MainThreadExecutor getInstance() {
return INSTANCE;
@@ -47,18 +46,14 @@ public class MainThreadExecutor extends AbstractExecutorService {
}
}
- /**
- * Not supported and throws an exception when used.
- */
+ /** Not supported and throws an exception when used. */
@Override
@Deprecated
public void shutdown() {
throw new UnsupportedOperationException();
}
- /**
- * Not supported and throws an exception when used.
- */
+ /** Not supported and throws an exception when used. */
@Override
@Deprecated
public List<Runnable> shutdownNow() {
@@ -75,12 +70,10 @@ public class MainThreadExecutor extends AbstractExecutorService {
return false;
}
- /**
- * Not supported and throws an exception when used.
- */
+ /** Not supported and throws an exception when used. */
@Override
@Deprecated
public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException {
throw new UnsupportedOperationException();
}
-} \ No newline at end of file
+}