Address technical debt in policy/common integrity-audit submodule.
Implementation for empty constructors, remove useless assignment,
use <> on constructor, use @Override. Not all technical debt
addressed, only the ones specified by Pam in POLICY-336, except
the use Set instead of HashSet where a method signature would
change.
Issue-ID: POLICY-456
Change-Id: If8f9f4151503bdd22c8c405485538f8be779cabd
Signed-off-by: Temoc Rodriguez <cr056n@att.com>
}
+ @Override
public void run() {
logger.info("AuditThread.run: Entering");
+ integrityAuditEntityList.size());
}
- IntegrityAuditEntity designationCandidate = null;
+ IntegrityAuditEntity designationCandidate;
IntegrityAuditEntity thisEntity = null;
int designatedEntityIndex = -1;
* Sorted list of entities for a particular nodeType and
* persistenceUnit.
*/
- List<IntegrityAuditEntity> integrityAuditEntityList = new ArrayList<IntegrityAuditEntity>();
- integrityAuditEntityList = dbDAO.getIntegrityAuditEntities(
+ List<IntegrityAuditEntity> integrityAuditEntityList = dbDAO.getIntegrityAuditEntities(
this.persistenceUnit, this.nodeType);
int listSize = integrityAuditEntityList.size();
if (logger.isDebugEnabled()) {
}
// If misMatchedMap is not empty, retrieve the entries in each misMatched list and compare again
- classNameSet = new HashSet<String>(misMatchedMap.keySet());
+ classNameSet = new HashSet<>(misMatchedMap.keySet());
// We need to keep track of how long the audit is taking
startTime = System.currentTimeMillis();
public class DbAuditException extends Exception{
private static final long serialVersionUID = 1L;
public DbAuditException() {
+ super();
}
public DbAuditException(String message) {
super(message);
public class DbDaoTransactionException extends Exception{
private static final long serialVersionUID = 1L;
public DbDaoTransactionException() {
+ super();
}
public DbDaoTransactionException(String message) {
super(message);
public class IntegrityAuditException extends Exception{
private static final long serialVersionUID = 1L;
public IntegrityAuditException() {
+ super();
}
public IntegrityAuditException(String message) {
super(message);
public class IntegrityAuditPropertiesException extends Exception{
private static final long serialVersionUID = 1L;
public IntegrityAuditPropertiesException() {
+ super();
}
public IntegrityAuditPropertiesException(String message) {
super(message);
public IntegrityAuditEntity() {
+ // Empty constructor
}
@PrePersist