Use final

This commit is contained in:
chimp1984 2020-09-29 13:02:44 -05:00
parent 4c7f6147e9
commit 87272ad3a5
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3
3 changed files with 5 additions and 5 deletions

View file

@ -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) {

View file

@ -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() {

View file

@ -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) {