mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-26 19:11:29 +01:00
Variables can be final.
This commit is contained in:
@@ -70,11 +70,11 @@ public class DatabaseProperties {
|
|||||||
/**
|
/**
|
||||||
* A collection of properties about the data.
|
* A collection of properties about the data.
|
||||||
*/
|
*/
|
||||||
private Properties properties;
|
private final Properties properties;
|
||||||
/**
|
/**
|
||||||
* A reference to the database.
|
* A reference to the database.
|
||||||
*/
|
*/
|
||||||
private CveDB cveDB;
|
private final CveDB cveDB;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new data properties object.
|
* Constructs a new data properties object.
|
||||||
@@ -83,13 +83,6 @@ public class DatabaseProperties {
|
|||||||
*/
|
*/
|
||||||
DatabaseProperties(CveDB cveDB) {
|
DatabaseProperties(CveDB cveDB) {
|
||||||
this.cveDB = cveDB;
|
this.cveDB = cveDB;
|
||||||
loadProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Loads the properties from the database.
|
|
||||||
*/
|
|
||||||
private void loadProperties() {
|
|
||||||
this.properties = cveDB.getProperties();
|
this.properties = cveDB.getProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user