gnodet commented on code in PR #1679:
URL: https://github.com/apache/maven-resolver/pull/1679#discussion_r2577424322
##########
maven-resolver-api/src/main/java/org/eclipse/aether/repository/WorkspaceRepository.java:
##########
@@ -27,11 +28,14 @@
* the contained artifacts is handled by a {@link WorkspaceReader}.
*/
public final class WorkspaceRepository implements ArtifactRepository {
+ public static final String ID = "workspace";
private final String type;
private final Object key;
+ private final int hashCode;
Review Comment:
Caching hashCode could be seen as a premature optimisation. They are more
often kept in lists afaik, aren't they ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]