File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
dependencies/src/main/java/com/google/cloud/tools/opensource/classpath Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,10 @@ private LinkageChecker(
158158 }
159159
160160 /**
161- * Two artifacts are considered equal if the Maven Coordinates (GAV) are equal
161+ * Two artifacts are considered equal if only the Maven Coordinates (GAV) are equal. This is
162+ * included instead of using Artifact.equals() because the `equals()` implementation
163+ * of DefaultArtifact checks more fields than just the GAV Coordinates (also checks the classifier,
164+ * file path, properties, etc are all equal).
162165 */
163166 private boolean areArtifactsEquals (Artifact artifact1 , Artifact artifact2 ) {
164167 return artifact1 .getGroupId ().equals (artifact2 .getGroupId ())
You can’t perform that action at this time.
0 commit comments