Skip to content

Commit

Permalink
Rename constant names to match regular expressions and comply a namin…
Browse files Browse the repository at this point in the history
…g convention
  • Loading branch information
JeanDeboutGat committed Mar 30, 2021
1 parent 647139e commit c942d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webmagic-core/src/main/java/us/codecraft/webmagic/Spider.java
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ public Status getStatus() {


public enum Status {
Init(0), Running(1), Stopped(2);
INIT(0), RUNNING(1), STOPPED(2);

private Status(int value) {
this.value = value;
Expand All @@ -697,7 +697,7 @@ public static Status fromValue(int value) {
}
}
//default value
return Init;
return INIT;
}
}

Expand Down

0 comments on commit c942d7c

Please sign in to comment.