Skip to content

Commit c942d7c

Browse files
committed
Rename constant names to match regular expressions and comply a naming convention
1 parent 647139e commit c942d7c

File tree

1 file changed

+2
-2
lines changed
  • webmagic-core/src/main/java/us/codecraft/webmagic

1 file changed

+2
-2
lines changed

webmagic-core/src/main/java/us/codecraft/webmagic/Spider.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ public Status getStatus() {
678678

679679

680680
public enum Status {
681-
Init(0), Running(1), Stopped(2);
681+
INIT(0), RUNNING(1), STOPPED(2);
682682

683683
private Status(int value) {
684684
this.value = value;
@@ -697,7 +697,7 @@ public static Status fromValue(int value) {
697697
}
698698
}
699699
//default value
700-
return Init;
700+
return INIT;
701701
}
702702
}
703703

0 commit comments

Comments
 (0)