/**
* The MessageDigest algorithm for this hash.
*/
- private String algorithm;
+ private final String algorithm;
/**
* The file extension for this ChecksumAlgorithm.
*/
- private String ext;
+ private final String ext;
/**
* The checksum type, the key that you see in checksum files.
*/
- private String type;
+ private final String type;
/**
* Construct a ChecksumAlgorithm
import org.slf4j.LoggerFactory;
import java.io.File;
-import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
*/
public class ChecksummedFile
{
- private Logger log = LoggerFactory.getLogger( ChecksummedFile.class );
+ private final Logger log = LoggerFactory.getLogger( ChecksummedFile.class );
private final File referenceFile;