You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/12/21 17:29:00 UTC
[maven] branch MNG-6957 updated: Remove unused innerclass
This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch MNG-6957
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/MNG-6957 by this push:
new e686be7 Remove unused innerclass
e686be7 is described below
commit e686be77f7331475e3027469607a32119a97e4b3
Author: rfscholte <rf...@apache.org>
AuthorDate: Mon Dec 21 18:28:50 2020 +0100
Remove unused innerclass
---
.../apache/maven/project/ReactorModelCache.java | 42 ----------------------
1 file changed, 42 deletions(-)
diff --git a/maven-core/src/main/java/org/apache/maven/project/ReactorModelCache.java b/maven-core/src/main/java/org/apache/maven/project/ReactorModelCache.java
index c360003..20e57b9 100644
--- a/maven-core/src/main/java/org/apache/maven/project/ReactorModelCache.java
+++ b/maven-core/src/main/java/org/apache/maven/project/ReactorModelCache.java
@@ -109,48 +109,6 @@ class ReactorModelCache
}
}
- private static final class GACacheKey
- {
- private final String groupId;
-
- private final String artifactId;
-
- private final int hashCode;
-
- GACacheKey( String groupId, String artifactId )
- {
- super();
- this.groupId = groupId;
- this.artifactId = artifactId;
- this.hashCode = Objects.hash( groupId, artifactId );
- }
-
- @Override
- public int hashCode()
- {
- return Objects.hash( artifactId, groupId, hashCode );
- }
-
- @Override
- public boolean equals( Object obj )
- {
- if ( this == obj )
- {
- return true;
- }
- if ( obj == null )
- {
- return false;
- }
- if ( getClass() != obj.getClass() )
- {
- return false;
- }
- GACacheKey other = (GACacheKey) obj;
- return Objects.equals( artifactId, other.artifactId ) && Objects.equals( groupId, other.groupId );
- }
- }
-
private static final class SourceCacheKey
{
private final Source source;