You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
chanjetsdp
changed the title
Can I check duplicate classes that have the same name in one project?
Can I check classes with the same class name in one project?
Jan 26, 2022
thank you for filing an issue here. The plugin only detects real duplicates (classes with the same package and class name). Your example (com.mycompany.app.App and com.mycompany.app2.App) are not considered duplicates because they do not share the same package name. For the JVM, these are two distinct classes on the classpath and therefore not a duplicate.
I expect failure when there are two classes with same name App in project.
my-app-banDuplicateClasses.tar.gz
pom.xml
find target/classes
mvn -X clean compile -DskipTests verify
The text was updated successfully, but these errors were encountered: