Filter by:
File Violation Severity
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'isPolicyExits' could be declared final
Warning
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'policyToUpdate' could be declared final
Warning
50
 
51
	@Override
52
	public String updatePolicies(final UpdatePolicyDetails policyDetails) throws Exception {
53
		boolean isPolicyExits = policyRepository.existsById(policyDetails.getPolicyId());
54
		if(isPolicyExits) {
55
			Policy policyToUpdate = policyRepository.findById(policyDetails.getPolicyId()).get();
56
			policyToUpdate.setPolicyDesc(policyDetails.getPolicyDesc());
57
			policyToUpdate.setPolicyUrl(policyDetails.getPolicyUrl());
58
			policyToUpdate.setPolicyVersion(policyDetails.getPolicyVersion());
59
			policyToUpdate.setResolution(policyDetails.getResolution());
60
			policyToUpdate.setModifiedDate(new Date());
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'isPolicyExits' could be declared final
Warning
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'date' could be declared final
Warning
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'newPolicy' could be declared final
Warning
api/pacman-api-compliance/sr...onfig/CrossOriginFilter.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'response' could be declared final
Warning
jobs/pacman-rule-engine-2.0/...ons/autofix/AutoFixPlan.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'pi' could be declared final
Warning
jobs/pacman-rule-engine-2.0/...ons/autofix/AutoFixPlan.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'pItems' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'severity' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'category' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'severityVulnValue' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'formattedUrl' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'issueList' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'issue' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'severityList' could be declared final
Warning
jobs/pacman-cloud-discovery/...entoryFetchOrchestrator.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'accountQuery' could be declared final
Warning
jobs/pacman-cloud-discovery/...entoryFetchOrchestrator.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'accountlist' could be declared final
Warning
jobs/pacman-cloud-discovery/...entoryFetchOrchestrator.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'accountArray' could be declared final
Warning
jobs/pacman-cloud-discovery/...entoryFetchOrchestrator.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'account' could be declared final
Warning
api/pacman-api-compliance/sr...e/ComplianceApplication.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'urlPathHelper' could be declared final
Warning