Skip to content

Commit b860021

Browse files
author
Vincent Potucek
committed
[prone] Add DirectReturn
1 parent 866a23f commit b860021

File tree

54 files changed

+29
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+29
-114
lines changed

compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/WarningResolutionListener.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,8 @@
2828
*/
2929
@Deprecated
3030
public class WarningResolutionListener implements ResolutionListener {
31-
3231

33-
public WarningResolutionListener(Logger logger) {
34-
35-
}
32+
public WarningResolutionListener(Logger logger) {}
3633

3734
@Override
3835
public void testArtifact(Artifact node) {}

compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/filter/InversionArtifactFilter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public boolean include(Artifact artifact) {
4040
public int hashCode() {
4141
int hash = 17;
4242
return hash * 31 + toInvert.hashCode();
43-
4443
}
4544

4645
@Override

compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/filter/OrArtifactFilter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public void add(ArtifactFilter artifactFilter) {
6060
public int hashCode() {
6161
int hash = 17;
6262
return hash * 31 + filters.hashCode();
63-
6463
}
6564

6665
@Override

compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/filter/TypeArtifactFilter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public boolean include(Artifact artifact) {
3838
public int hashCode() {
3939
int hash = 17;
4040
return hash * 31 + type.hashCode();
41-
4241
}
4342

4443
@Override

compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,6 @@ public int hashCode() {
349349
result = 37 * result + getVersion().hashCode();
350350
}
351351
return 37 * result + (getClassifier() != null ? getClassifier().hashCode() : 0);
352-
353-
354352
}
355353

356354
/** {@inheritDoc} */

compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ private static int artifactHashCode(Artifact a) {
116116
result = 31 * result
117117
+ (a.getDependencyFilter() != null ? a.getDependencyFilter().hashCode() : 0);
118118
return 31 * result + (a.isOptional() ? 1 : 0);
119-
120119
}
121120

122121
private static boolean artifactEquals(Artifact a1, Artifact a2) {
@@ -137,7 +136,6 @@ private static boolean artifactEquals(Artifact a1, Artifact a2) {
137136
private static int repositoryHashCode(ArtifactRepository repository) {
138137
int result = 17;
139138
return 31 * result + (repository.getId() != null ? repository.getId().hashCode() : 0);
140-
141139
}
142140

143141
private static int repositoriesHashCode(List<ArtifactRepository> repositories) {

compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ public int hashCode() {
271271
result = prime * result + ((exception == null) ? 0 : exception.hashCode());
272272
result = prime * result + ((localFile == null) ? 0 : localFile.hashCode());
273273
return prime * result + requestType;
274-
275274
}
276275

277276
@Override

compat/maven-compat/src/main/java/org/apache/maven/repository/DelegatingLocalArtifactRepository.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ public int hashCode() {
152152
hash = hash * 31 + (buildReactor == null ? 0 : buildReactor.hashCode());
153153
hash = hash * 31 + (ideWorkspace == null ? 0 : ideWorkspace.hashCode());
154154
return hash * 31 + (userLocalArtifactRepository == null ? 0 : userLocalArtifactRepository.hashCode());
155-
156-
157155
}
158156

159157
@Override

compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ private void visit(MetadataGraphVertex from, List<MetadataGraphVertex> visited,
175175
}
176176

177177
// -------------------------------------------------------------------------------------
178-
private MetadataGraphEdge cleanEdges(
179-
List<MetadataGraphEdge> edges, ArtifactScopeEnum scope) {
178+
private MetadataGraphEdge cleanEdges(List<MetadataGraphEdge> edges, ArtifactScopeEnum scope) {
180179
if (edges == null || edges.isEmpty()) {
181180
return null;
182181
}

compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,6 @@ protected Artifact createArtifact(String artifactId, String version, String type
283283

284284
protected Artifact createArtifact(String groupId, String artifactId, String version, String type) throws Exception {
285285
return artifactFactory.createBuildArtifact(groupId, artifactId, version, type);
286-
287-
288286
}
289287

290288
protected void deleteLocalArtifact(Artifact artifact) throws Exception {

0 commit comments

Comments
 (0)