mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Make fields final.
Remove setter of key. Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
4f34be0a33
commit
21c6c52ec8
3 changed files with 9 additions and 17 deletions
|
@ -31,10 +31,9 @@ public enum DoubleValueItem implements ReportingItem {
|
|||
|
||||
@Getter
|
||||
@Setter
|
||||
private String key;
|
||||
private final String key;
|
||||
@Getter
|
||||
@Setter
|
||||
private String group;
|
||||
private final String group;
|
||||
@Getter
|
||||
@Setter
|
||||
private double value;
|
||||
|
@ -54,8 +53,7 @@ public enum DoubleValueItem implements ReportingItem {
|
|||
try {
|
||||
item = DoubleValueItem.valueOf(key);
|
||||
} catch (Throwable t) {
|
||||
item = DoubleValueItem.Unspecified;
|
||||
item.setKey(key);
|
||||
item = Unspecified;
|
||||
}
|
||||
|
||||
item.setValue(value);
|
||||
|
|
|
@ -52,11 +52,9 @@ public enum LongValueItem implements ReportingItem {
|
|||
jvmStartTimeInSec("node", "jvmStartTimeInSec");
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
private String key;
|
||||
private final String key;
|
||||
@Getter
|
||||
@Setter
|
||||
private String group;
|
||||
private final String group;
|
||||
@Getter
|
||||
@Setter
|
||||
private long value;
|
||||
|
@ -76,8 +74,7 @@ public enum LongValueItem implements ReportingItem {
|
|||
try {
|
||||
item = LongValueItem.valueOf(key);
|
||||
} catch (Throwable t) {
|
||||
item = LongValueItem.Unspecified;
|
||||
item.setKey(key);
|
||||
item = Unspecified;
|
||||
}
|
||||
|
||||
item.setValue(value);
|
||||
|
|
|
@ -32,11 +32,9 @@ public enum StringValueItem implements ReportingItem {
|
|||
commitHash("node", "commitHash");
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
private String key;
|
||||
private final String key;
|
||||
@Getter
|
||||
@Setter
|
||||
private String group;
|
||||
private final String group;
|
||||
@Getter
|
||||
@Setter
|
||||
private String value;
|
||||
|
@ -56,8 +54,7 @@ public enum StringValueItem implements ReportingItem {
|
|||
try {
|
||||
item = StringValueItem.valueOf(key);
|
||||
} catch (Throwable t) {
|
||||
item = StringValueItem.Unspecified;
|
||||
item.setKey(key);
|
||||
item = Unspecified;
|
||||
}
|
||||
|
||||
item.setValue(value);
|
||||
|
|
Loading…
Add table
Reference in a new issue