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 dd26aeb commit 178040f
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 @@ -46,7 +46,7 @@ public enum ProtocolVersion {
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 @@ -331,7 +331,7 @@ 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 178040f

Please sign in to comment.