File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
task/src/main/java/com/acutecoder/task Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,12 @@ public class Task<T> {
2020 private Callback onStart , onEnd ;
2121 private boolean isBackground = true , isRunning = false ;
2222
23- protected Task (Runnable <T > runnable ) {
23+ /**
24+ * Creates a new Task instance
25+ *
26+ * @param runnable The task
27+ */
28+ public Task (Runnable <T > runnable ) {
2429 this .runnable = runnable ;
2530 }
2631
@@ -193,14 +198,4 @@ public TaskException(String msg, boolean isBackground) {
193198 super ("Error while executing " + (isBackground ? "Background" : "Foreground" ) + " task: " + msg );
194199 }
195200 }
196-
197- /**
198- * For Java 1.7
199- */
200- public static class Java_1_7 <T > extends Task <T > {
201-
202- public Java_1_7 (Runnable <T > runnable ) {
203- super (runnable );
204- }
205- }
206201}
You can’t perform that action at this time.
0 commit comments