gnodet commented on code in PR #474:
URL: https://github.com/apache/maven-resolver/pull/474#discussion_r1570963455


##########
maven-resolver-api/src/main/java/org/eclipse/aether/transfer/TransferResource.java:
##########
@@ -23,17 +23,43 @@
 
 import org.eclipse.aether.RequestTrace;
 
+import static java.util.Objects.requireNonNull;
+
 /**
  * Describes a resource being uploaded or downloaded by the repository system.
  */
 public final class TransferResource {
 
+    /**
+     * The type of this resource.
+     *
+     * @since 2.0.0
+     */
+    public enum ResourceType {

Review Comment:
   I wonder if that one is really needed, as one could use `instanceof` on the 
resource (and a cast will be needed anyway)...



-- 
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]

Reply via email to