Skip to content

Commit

Permalink
replace abstract method with empty implement
Browse files Browse the repository at this point in the history
  • Loading branch information
twolight committed Oct 14, 2015
1 parent ea068ce commit 0f7810b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions demo/src/main/java/cn/zhaiyifan/demo/DemoApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ protected void start() {
e.printStackTrace();
}
}
@Override
protected void onResult() {
}
};

Task task3 = new Task("task3", true) {
Expand All @@ -62,9 +59,6 @@ protected void start() {
e.printStackTrace();
}
}
@Override
protected void onResult() {
}
};

Task task4 = new Task("task4", false) {
Expand All @@ -77,9 +71,6 @@ protected void start() {
e.printStackTrace();
}
}
@Override
protected void onResult() {
}
};

Task task5 = new Task("task5", false) {
Expand All @@ -91,9 +82,6 @@ protected void start() {
e.printStackTrace();
}
}
@Override
protected void onResult() {
}
};
task5.setParentTask(task4);

Expand Down
2 changes: 1 addition & 1 deletion init/src/main/java/cn/zhaiyifan/init/Task.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void run() {
/**
* This method is invoked by ui thread when the task finish.
*/
protected abstract void onResult();
protected void onResult(){};
/**
* Run task.
*/
Expand Down

0 comments on commit 0f7810b

Please sign in to comment.