Skip to content

Commit

Permalink
fix: field of enum must be final (#1577)
Browse files Browse the repository at this point in the history
  • Loading branch information
jizhuozhi authored Feb 26, 2022
1 parent dbd67c2 commit 8bbc260
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/feign/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public enum HttpMethod {
public enum ProtocolVersion {
HTTP_1_0("HTTP/1.0"), HTTP_1_1("HTTP/1.1"), HTTP_2("HTTP/2.0"), MOCK;

String protocolVersion;
final String protocolVersion;

ProtocolVersion() {
protocolVersion = name();
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/feign/template/Template.java
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public String next() {
public enum EncodingOptions {
REQUIRED(true), NOT_REQUIRED(false);

private boolean shouldEncode;
private final boolean shouldEncode;

EncodingOptions(boolean shouldEncode) {
this.shouldEncode = shouldEncode;
Expand Down

0 comments on commit 8bbc260

Please sign in to comment.