mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
findbugs correction
Former-commit-id: 55b3830b5d31908e452ea6c688b0213aa04a7f41
This commit is contained in:
@@ -429,10 +429,8 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
|
||||
*/
|
||||
protected File getCorrectOutputDirectory(MavenProject current) {
|
||||
final Object obj = current.getContextValue(getOutputDirectoryContextKey());
|
||||
if (obj != null) {
|
||||
if (obj instanceof File) {
|
||||
return (File) obj;
|
||||
}
|
||||
if (obj != null && obj instanceof File) {
|
||||
return (File) obj;
|
||||
}
|
||||
File target = new File(current.getBuild().getDirectory());
|
||||
if (target.getParentFile() != null && "target".equals(target.getParentFile().getName())) {
|
||||
|
||||
Reference in New Issue
Block a user