Remove this keyword on member method invocations

See gh-21007
This commit is contained in:
Johnny Lim
2020-04-18 11:54:51 +09:00
committed by Stephane Nicoll
parent f0d4192df9
commit 29717423a3
45 changed files with 76 additions and 79 deletions

View File

@@ -107,12 +107,12 @@ public class BomExtension {
this.properties.put(library.getVersionProperty(), library.getVersion());
for (Group group : library.getGroups()) {
for (Module module : group.getModules()) {
this.putArtifactVersionProperty(group.getId(), module.getName(), library.getVersionProperty());
putArtifactVersionProperty(group.getId(), module.getName(), library.getVersionProperty());
this.dependencyHandler.getConstraints().add(JavaPlatformPlugin.API_CONFIGURATION_NAME,
createDependencyNotation(group.getId(), module.getName(), library.getVersion()));
}
for (String bomImport : group.getBoms()) {
this.putArtifactVersionProperty(group.getId(), bomImport, library.getVersionProperty());
putArtifactVersionProperty(group.getId(), bomImport, library.getVersionProperty());
String bomDependency = createDependencyNotation(group.getId(), bomImport, library.getVersion());
this.dependencyHandler.add(JavaPlatformPlugin.API_CONFIGURATION_NAME,
this.dependencyHandler.platform(bomDependency));

View File

@@ -35,17 +35,17 @@ final class UnstructuredDependencyVersion extends AbstractDependencyVersion impl
@Override
public boolean isNewerThan(DependencyVersion other) {
return this.compareTo(other) > 0;
return compareTo(other) > 0;
}
@Override
public boolean isSameMajorAndNewerThan(DependencyVersion other) {
return this.compareTo(other) > 0;
return compareTo(other) > 0;
}
@Override
public boolean isSameMinorAndNewerThan(DependencyVersion other) {
return this.compareTo(other) > 0;
return compareTo(other) > 0;
}
@Override

View File

@@ -46,7 +46,7 @@ public class IntegrationTestPlugin implements Plugin<Project> {
@Override
public void apply(Project project) {
project.getPlugins().withType(JavaPlugin.class, (javaPlugin) -> this.configureIntegrationTesting(project));
project.getPlugins().withType(JavaPlugin.class, (javaPlugin) -> configureIntegrationTesting(project));
}
private void configureIntegrationTesting(Project project) {