improve code style

This commit is contained in:
hlq07 2018-05-28 03:37:46 +08:00
parent 37033bfa36
commit 7c48e942dc
3 changed files with 4 additions and 3 deletions

View File

@ -59,6 +59,7 @@ public class PaintCalendarStrategy {
private void emptyButton(Button btn) {
if (btn != null) {
btn.setOnAction(e -> {
// empty
});
btn.setText("");

View File

@ -217,8 +217,8 @@ public abstract class Presenter {
}
protected final void finishTodoItem(@NotNull TodoItem item) {
item = TodoItemUtil.finishSingleTodoItem(item);
addTodoItem(item);
TodoItem newItem = TodoItemUtil.finishSingleTodoItem(item);
addTodoItem(newItem);
}

View File

@ -77,7 +77,7 @@ public class ShowTodoItemDetailStrategy {
// personnel
List<String> ps = item.getPersonnel();
if (ps.size() > 0) {
if (!ps.isEmpty()) {
builder.append("\npeople:");
for (String p : ps) {
builder.append("\n\t").append(p);