
de.is24.deadcode4j.DeadCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadcode4j-maven-plugin Show documentation
Show all versions of deadcode4j-maven-plugin Show documentation
Finds unused classes of a project
package de.is24.deadcode4j;
import javax.annotation.Nonnull;
import java.util.Collection;
import java.util.EnumSet;
/**
* DeadCode
provides the results of the {@link DeadCodeFinder}.
*
* @since 1.0.0
*/
public class DeadCode {
@Nonnull
private final EnumSet stagesWithExceptions;
@Nonnull
private final Collection analyzedClasses;
@Nonnull
private final Collection deadClasses;
public DeadCode(@Nonnull EnumSet stagesWithExceptions,
@Nonnull Collection analyzedClasses,
@Nonnull Collection deadClasses) {
this.stagesWithExceptions = stagesWithExceptions;
this.analyzedClasses = analyzedClasses;
this.deadClasses = deadClasses;
}
@Nonnull
public Collection getAnalyzedClasses() {
return this.analyzedClasses;
}
@Nonnull
public Collection getDeadClasses() {
return this.deadClasses;
}
/**
* Returns the stages for which an exception occurred.
*
* @since 2.0.0
*/
@Nonnull
public EnumSet getStagesWithExceptions() {
return stagesWithExceptions;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy