Enable PMD rule SingularField and fix violations

This commit is contained in:
Manuel Fuhr 2022-11-13 15:43:38 +01:00
parent 3b77f93c00
commit a07fc132d2
5 changed files with 3 additions and 9 deletions

View file

@ -19,7 +19,6 @@ final public class PhysicalFile {
long[] fileIndex = new long[25];
int[] fileHeaderCrcs;
private int fileIndexCrc;
public long creationTime;
String fileName;
@ -75,7 +74,7 @@ final public class PhysicalFile {
byte[] iobuffer = dataBuffers.iobuffer;
ra = new RandomAccessFile(f, "r");
ra.readFully(iobuffer, 0, 200);
fileIndexCrc = Crc32.crc(iobuffer, 0, 200);
int fileIndexCrc = Crc32.crc(iobuffer, 0, 200);
ByteDataReader dis = new ByteDataReader(iobuffer);
for (int i = 0; i < 25; i++) {
long lv = dis.readLong();