slawekjaranowski commented on code in PR #226: URL: https://github.com/apache/maven-resolver/pull/226#discussion_r1042217366
########## maven-resolver-api/src/main/java/org/eclipse/aether/transform/Identity.java: ########## @@ -0,0 +1,87 @@ +package org.eclipse.aether.transform; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import java.util.Collection; +import java.util.Collections; + +import org.eclipse.aether.RepositorySystemSession; +import org.eclipse.aether.artifact.Artifact; + +import static java.util.Objects.requireNonNull; + +/** + * Identity {@link TransformedArtifact}, {@link ArtifactTransformer} and {@link ArtifactTransformerManager}. + * + * @since 1.9.3 + */ +public final class Identity +{ + /** + * Identity {@link TransformedArtifact}. + */ + public static final class IdentityTransformedArtifact extends TransformedArtifact + { + private final Artifact artifact; + + public IdentityTransformedArtifact( Artifact artifact ) + { + this.artifact = requireNonNull( artifact ); + } Review Comment: IHMO only filed with instances should be public, like: `Identity.TRANSFORMER` Inner class can be private. I don't see that client need to create new instance of this classes. But can miss something. -- 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]
