Skip to content

Commit f81a3cf

Browse files
committed
improve
Change-Id: Ic2a246facffca683052bb56bf76ad21b5413d94a
1 parent 7a0c7bf commit f81a3cf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

hugegraph-core/src/main/java/com/baidu/hugegraph/task/TaskCallable.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,6 @@ protected void save() {
126126
}
127127
}
128128

129-
private static boolean needSaveWithEx(String message) {
130-
for (String error : ERROR_MESSAGES) {
131-
if (message.contains(error)) {
132-
return true;
133-
}
134-
}
135-
return false;
136-
}
137-
138129
protected void graph(HugeGraph graph) {
139130
this.graph = graph;
140131
}
@@ -165,6 +156,15 @@ public static <V> TaskCallable<V> fromClass(String className) {
165156
}
166157
}
167158

159+
private static boolean needSaveWithEx(String message) {
160+
for (String error : ERROR_MESSAGES) {
161+
if (message.contains(error)) {
162+
return true;
163+
}
164+
}
165+
return false;
166+
}
167+
168168
public static <V> TaskCallable<V> empty(Exception e) {
169169
return new TaskCallable<V>() {
170170
@Override

0 commit comments

Comments
 (0)