Skip to content

Commit 178040f

Browse files
author
jizhuozhi
authored
fix: field of enum must be final (#1577)
1 parent dd26aeb commit 178040f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/java/feign/Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public enum ProtocolVersion {
4646
HTTP_2("HTTP/2.0"),
4747
MOCK;
4848

49-
String protocolVersion;
49+
final String protocolVersion;
5050

5151
ProtocolVersion() {
5252
protocolVersion = name();

core/src/main/java/feign/template/Template.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public enum EncodingOptions {
331331
REQUIRED(true),
332332
NOT_REQUIRED(false);
333333

334-
private boolean shouldEncode;
334+
private final boolean shouldEncode;
335335

336336
EncodingOptions(boolean shouldEncode) {
337337
this.shouldEncode = shouldEncode;

0 commit comments

Comments
 (0)