Skip to content

Commit 6e3fe91

Browse files
Fixed static variables
1 parent 8523c34 commit 6e3fe91

3 files changed

Lines changed: 68 additions & 68 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ or if you use Gradle:
3232
```groovy
3333
dependencies
3434
{
35-
compile 'com.mauriciotogneri:javautils:3.1.0'
35+
compile 'com.mauriciotogneri:javautils:3.2.0'
3636
}
3737
```

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<modelVersion>4.0.0</modelVersion>
88
<groupId>com.mauriciotogneri</groupId>
99
<artifactId>javautils</artifactId>
10-
<version>3.1.0</version>
10+
<version>3.2.0</version>
1111
<name>Java Utils</name>
1212
<packaging>jar</packaging>
1313
<url>https://github.com/mauriciotogneri/java-utils</url>

src/main/java/com/mauriciotogneri/javautils/HttpStatus.java

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3,78 +3,78 @@
33
public class HttpStatus
44
{
55
// 1xx Informational
6-
public static Integer CONTINUE = 100;
7-
public static Integer SWITCHING_PROTOCOLS = 101;
8-
public static Integer PROCESSING = 102;
6+
public static final Integer CONTINUE = 100;
7+
public static final Integer SWITCHING_PROTOCOLS = 101;
8+
public static final Integer PROCESSING = 102;
99

1010
// 2xx Success
11-
public static Integer OK = 200;
12-
public static Integer CREATED = 201;
13-
public static Integer ACCEPTED = 202;
14-
public static Integer NON_AUTHORITATIVE_INFORMATION = 203;
15-
public static Integer NO_CONTENT = 204;
16-
public static Integer RESET_CONTENT = 205;
17-
public static Integer PARTIAL_CONTENT = 206;
18-
public static Integer MULTI_STATUS = 207;
19-
public static Integer ALREADY_REPORTED = 208;
20-
public static Integer IM_USED = 226;
11+
public static final Integer OK = 200;
12+
public static final Integer CREATED = 201;
13+
public static final Integer ACCEPTED = 202;
14+
public static final Integer NON_AUTHORITATIVE_INFORMATION = 203;
15+
public static final Integer NO_CONTENT = 204;
16+
public static final Integer RESET_CONTENT = 205;
17+
public static final Integer PARTIAL_CONTENT = 206;
18+
public static final Integer MULTI_STATUS = 207;
19+
public static final Integer ALREADY_REPORTED = 208;
20+
public static final Integer IM_USED = 226;
2121

2222
// 3xx Redirection
23-
public static Integer MULTIPLE_CHOICES = 300;
24-
public static Integer MOVED_PERMANENTLY = 301;
25-
public static Integer FOUND = 302;
26-
public static Integer SEE_OTHER = 303;
27-
public static Integer NOT_MODIFIED = 304;
28-
public static Integer USE_PROXY = 305;
29-
public static Integer TEMPORARY_REDIRECT = 307;
30-
public static Integer PERMANENT_REDIRECT = 308;
23+
public static final Integer MULTIPLE_CHOICES = 300;
24+
public static final Integer MOVED_PERMANENTLY = 301;
25+
public static final Integer FOUND = 302;
26+
public static final Integer SEE_OTHER = 303;
27+
public static final Integer NOT_MODIFIED = 304;
28+
public static final Integer USE_PROXY = 305;
29+
public static final Integer TEMPORARY_REDIRECT = 307;
30+
public static final Integer PERMANENT_REDIRECT = 308;
3131

3232
// 4xx Client Error
33-
public static Integer BAD_REQUEST = 400;
34-
public static Integer UNAUTHORIZED = 401;
35-
public static Integer PAYMENT_REQUIRED = 402;
36-
public static Integer FORBIDDEN = 403;
37-
public static Integer NOT_FOUND = 404;
38-
public static Integer METHOD_NOT_ALLOWED = 405;
39-
public static Integer NOT_ACCEPTABLE = 406;
40-
public static Integer PROXY_AUTHENTICATION_REQUIRED = 407;
41-
public static Integer REQUEST_TIMEOUT = 408;
42-
public static Integer CONFLICT = 409;
43-
public static Integer GONE = 410;
44-
public static Integer LENGTH_REQUIRED = 411;
45-
public static Integer PRECONDITION_FAILED = 412;
46-
public static Integer REQUEST_ENTITY_TOO_LARGE = 413;
47-
public static Integer REQUEST_URI_TOO_LONG = 414;
48-
public static Integer UNSUPPORTED_MEDIA_TYPE = 415;
49-
public static Integer REQUESTED_RANGE_NOT_SATISFIABLE = 416;
50-
public static Integer EXPECTATION_FAILED = 417;
51-
public static Integer IAM_A_TEAPOT = 418;
52-
public static Integer ENHANCE_YOUR_CALM = 420;
53-
public static Integer UNPROCESSABLE_ENTITY = 422;
54-
public static Integer LOCKED = 423;
55-
public static Integer FAILED_DEPENDENCY = 424;
56-
public static Integer UPGRADE_REQUIRED = 426;
57-
public static Integer PRECONDITION_REQUIRED = 428;
58-
public static Integer TOO_MANY_REQUESTS = 429;
59-
public static Integer REQUEST_HEADER_FIELDS_TOO_LARGE = 431;
60-
public static Integer NO_RESPONSE = 444;
61-
public static Integer RETRY_WITH = 449;
62-
public static Integer UNAVAILABLE_FOR_LEGAL_REASONS = 451;
63-
public static Integer CLIENT_CLOSED_REQUEST = 499;
33+
public static final Integer BAD_REQUEST = 400;
34+
public static final Integer UNAUTHORIZED = 401;
35+
public static final Integer PAYMENT_REQUIRED = 402;
36+
public static final Integer FORBIDDEN = 403;
37+
public static final Integer NOT_FOUND = 404;
38+
public static final Integer METHOD_NOT_ALLOWED = 405;
39+
public static final Integer NOT_ACCEPTABLE = 406;
40+
public static final Integer PROXY_AUTHENTICATION_REQUIRED = 407;
41+
public static final Integer REQUEST_TIMEOUT = 408;
42+
public static final Integer CONFLICT = 409;
43+
public static final Integer GONE = 410;
44+
public static final Integer LENGTH_REQUIRED = 411;
45+
public static final Integer PRECONDITION_FAILED = 412;
46+
public static final Integer REQUEST_ENTITY_TOO_LARGE = 413;
47+
public static final Integer REQUEST_URI_TOO_LONG = 414;
48+
public static final Integer UNSUPPORTED_MEDIA_TYPE = 415;
49+
public static final Integer REQUESTED_RANGE_NOT_SATISFIABLE = 416;
50+
public static final Integer EXPECTATION_FAILED = 417;
51+
public static final Integer IAM_A_TEAPOT = 418;
52+
public static final Integer ENHANCE_YOUR_CALM = 420;
53+
public static final Integer UNPROCESSABLE_ENTITY = 422;
54+
public static final Integer LOCKED = 423;
55+
public static final Integer FAILED_DEPENDENCY = 424;
56+
public static final Integer UPGRADE_REQUIRED = 426;
57+
public static final Integer PRECONDITION_REQUIRED = 428;
58+
public static final Integer TOO_MANY_REQUESTS = 429;
59+
public static final Integer REQUEST_HEADER_FIELDS_TOO_LARGE = 431;
60+
public static final Integer NO_RESPONSE = 444;
61+
public static final Integer RETRY_WITH = 449;
62+
public static final Integer UNAVAILABLE_FOR_LEGAL_REASONS = 451;
63+
public static final Integer CLIENT_CLOSED_REQUEST = 499;
6464

6565
// 5xx Server Error
66-
public static Integer INTERNAL_SERVER_ERROR = 500;
67-
public static Integer NOT_IMPLEMENTED_ = 501;
68-
public static Integer BAD_GETAWAT = 502;
69-
public static Integer SERVICE_UNAVAILABLE = 503;
70-
public static Integer GATEWAY_TIMEOUT = 504;
71-
public static Integer HTTP_VERSION_NOT_SUPPORTED = 505;
72-
public static Integer VARIANT_ALSO_NEGOTIATES = 506;
73-
public static Integer INSUFFICIENT_STORAGE = 507;
74-
public static Integer LOOP_DETECTED = 508;
75-
public static Integer BANDWIDTH_LIMIT_EXCEEDED = 509;
76-
public static Integer NOT_EXTENDED = 510;
77-
public static Integer NETWORK_AUTHENTICATION_REQUIRED = 511;
78-
public static Integer NETWORK_READ_TIMEOUT_ERROR = 598;
79-
public static Integer NETWORK_CONNECT_TIMEOUT_ERROR = 599;
66+
public static final Integer INTERNAL_SERVER_ERROR = 500;
67+
public static final Integer NOT_IMPLEMENTED_ = 501;
68+
public static final Integer BAD_GETAWAT = 502;
69+
public static final Integer SERVICE_UNAVAILABLE = 503;
70+
public static final Integer GATEWAY_TIMEOUT = 504;
71+
public static final Integer HTTP_VERSION_NOT_SUPPORTED = 505;
72+
public static final Integer VARIANT_ALSO_NEGOTIATES = 506;
73+
public static final Integer INSUFFICIENT_STORAGE = 507;
74+
public static final Integer LOOP_DETECTED = 508;
75+
public static final Integer BANDWIDTH_LIMIT_EXCEEDED = 509;
76+
public static final Integer NOT_EXTENDED = 510;
77+
public static final Integer NETWORK_AUTHENTICATION_REQUIRED = 511;
78+
public static final Integer NETWORK_READ_TIMEOUT_ERROR = 598;
79+
public static final Integer NETWORK_CONNECT_TIMEOUT_ERROR = 599;
8080
}

0 commit comments

Comments
 (0)