mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Use final
This commit is contained in:
parent
4c7f6147e9
commit
87272ad3a5
3 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ import com.google.inject.Provider;
|
||||||
|
|
||||||
public class PubKeyRingProvider implements Provider<PubKeyRing> {
|
public class PubKeyRingProvider implements Provider<PubKeyRing> {
|
||||||
|
|
||||||
private PubKeyRing pubKeyRing;
|
private final PubKeyRing pubKeyRing;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public PubKeyRingProvider(KeyRing keyRing) {
|
public PubKeyRingProvider(KeyRing keyRing) {
|
||||||
|
|
|
@ -29,7 +29,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Singleton
|
@Singleton
|
||||||
public class CorruptedDatabaseFilesHandler {
|
public class CorruptedDatabaseFilesHandler {
|
||||||
private List<String> corruptedDatabaseFiles = new ArrayList<>();
|
private final List<String> corruptedDatabaseFiles = new ArrayList<>();
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public CorruptedDatabaseFilesHandler() {
|
public CorruptedDatabaseFilesHandler() {
|
||||||
|
|
|
@ -115,10 +115,10 @@ public class MathUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class MovingAverage {
|
public static class MovingAverage {
|
||||||
Deque<Long> window;
|
final Deque<Long> window;
|
||||||
private int size;
|
private final int size;
|
||||||
private long sum;
|
private long sum;
|
||||||
private double outlier;
|
private final double outlier;
|
||||||
|
|
||||||
// Outlier as ratio
|
// Outlier as ratio
|
||||||
public MovingAverage(int size, double outlier) {
|
public MovingAverage(int size, double outlier) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue