Skip to content

Commit 4e77739

Browse files
committed
Improve code's readability by applying modifiers standard order
1 parent 203d823 commit 4e77739

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ public class Spider implements Runnable, Task {
8686

8787
protected boolean exitWhenComplete = true;
8888

89-
protected final static int STAT_INIT = 0;
89+
protected static final int STAT_INIT = 0;
9090

91-
protected final static int STAT_RUNNING = 1;
91+
protected static final int STAT_RUNNING = 1;
9292

93-
protected final static int STAT_STOPPED = 2;
93+
protected static final int STAT_STOPPED = 2;
9494

9595
protected boolean spawnUrl = true;
9696

webmagic-core/src/main/java/us/codecraft/webmagic/model/HttpRequestBody.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class HttpRequestBody implements Serializable {
2020

2121
private static final String ENCODING_ERROR ="illegal encoding ";
2222

23-
public static abstract class ContentType {
23+
public abstract static class ContentType {
2424

2525
public static final String JSON = "application/json";
2626

webmagic-core/src/main/java/us/codecraft/webmagic/utils/HttpConstant.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88
public abstract class HttpConstant {
99

10-
public static abstract class Method {
10+
public abstract static class Method {
1111

1212
public static final String GET = "GET";
1313

@@ -25,13 +25,13 @@ public static abstract class Method {
2525

2626
}
2727

28-
public static abstract class StatusCode {
28+
public abstract static class StatusCode {
2929

3030
public static final int CODE_200 = 200;
3131

3232
}
3333

34-
public static abstract class Header {
34+
public abstract static class Header {
3535

3636
public static final String REFERER = "Referer";
3737

0 commit comments

Comments
 (0)