`UnusedPrivateMethod` not aware of using the `@PostConstruct` and `@PreDestroy` Annotations with `CDI` Managed `Bean` Classes - https://github.com/apache/maven/pull/2334 - https://github.com/apache/maven/pull/2331 - https://github.com/apache/maven/blob/51bac9714a6deebd61589a7f8163b2e759751208/impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java#L120 - need to check for CDI setup / teardown callbacks. - `@org.eclipse.sisu.PreDestroy` - `@org.eclipse.sisu.PostConstruct` - as well as java native: - https://docs.oracle.com/javaee/7/tutorial/cdi-basic014.htm <img width="1450" alt="Image" src="https://github.com/user-attachments/assets/e3dedbd8-d694-468b-8818-72e9e63455ea" />
UnusedPrivateMethodnot aware of using the@PostConstructand@PreDestroyAnnotations withCDIManagedBeanClassesDefaultXmlService#findNodeByIdapache/maven#2334maven-pmd-plugin: reactivatePMD- Best practices apache/maven#2331@org.eclipse.sisu.PreDestroy@org.eclipse.sisu.PostConstruct