1+ /*
2+ * Copyright (c) 2024-2025 Elide Technologies, Inc.
3+ *
4+ * Licensed under the MIT license (the "License"); you may not use this file except in compliance
5+ * with the License. You may obtain a copy of the License at
6+ *
7+ * https://opensource.org/license/mit/
8+ *
9+ * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10+ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11+ * License for the specific language governing permissions and limitations under the License.
12+ */
113package org .apache .maven .project ;
214
315import java .io .File ;
@@ -8,11 +20,13 @@ public final class ReactorModelPool {
820 private final Map <ReactorModelPool .CacheKey , File > pomFiles = new HashMap <>();
921
1022 public File get (String groupId , String artifactId , String version ) {
11- return (File )this .pomFiles .get (new ReactorModelPool .CacheKey (groupId , artifactId , version ));
23+ return (File ) this .pomFiles .get (new ReactorModelPool .CacheKey (groupId , artifactId , version ));
1224 }
1325
1426 public void put (String groupId , String artifactId , String version , File pomFile ) {
15- this .pomFiles .put (new org .apache .maven .project .ReactorModelPool .CacheKey (groupId , artifactId , version ), pomFile );
27+ this .pomFiles .put (
28+ new org .apache .maven .project .ReactorModelPool .CacheKey (groupId , artifactId , version ),
29+ pomFile );
1630 }
1731
1832 private static final class CacheKey {
@@ -38,8 +52,11 @@ public boolean equals(Object obj) {
3852 } else if (!(obj instanceof org .apache .maven .project .ReactorModelPool .CacheKey )) {
3953 return false ;
4054 } else {
41- org .apache .maven .project .ReactorModelPool .CacheKey that = (org .apache .maven .project .ReactorModelPool .CacheKey )obj ;
42- return this .artifactId .equals (that .artifactId ) && this .groupId .equals (that .groupId ) && this .version .equals (that .version );
55+ org .apache .maven .project .ReactorModelPool .CacheKey that =
56+ (org .apache .maven .project .ReactorModelPool .CacheKey ) obj ;
57+ return this .artifactId .equals (that .artifactId )
58+ && this .groupId .equals (that .groupId )
59+ && this .version .equals (that .version );
4360 }
4461 }
4562
@@ -49,7 +66,12 @@ public int hashCode() {
4966
5067 public String toString () {
5168 StringBuilder buffer = new StringBuilder (128 );
52- buffer .append (this .groupId ).append (':' ).append (this .artifactId ).append (':' ).append (this .version );
69+ buffer
70+ .append (this .groupId )
71+ .append (':' )
72+ .append (this .artifactId )
73+ .append (':' )
74+ .append (this .version );
5375 return buffer .toString ();
5476 }
5577 }
0 commit comments