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

@@ -80,7 +80,7 @@ class LifecycleVersion implements Comparable<LifecycleVersion> {
* version
*/
boolean isEqualOrGreaterThan(LifecycleVersion other) {
return this.compareTo(other) >= 0;
return compareTo(other) >= 0;
}
@Override

View File

@@ -34,7 +34,7 @@ class ErrorsTests extends AbstractJsonTests {
@Test
void readValueDeserializesJson() throws Exception {
Errors errors = this.getObjectMapper().readValue(getContent("errors.json"), Errors.class);
Errors errors = getObjectMapper().readValue(getContent("errors.json"), Errors.class);
Iterator<Error> iterator = errors.iterator();
Error error1 = iterator.next();
Error error2 = iterator.next();
@@ -47,7 +47,7 @@ class ErrorsTests extends AbstractJsonTests {
@Test
void toStringHasErrorDetails() throws Exception {
Errors errors = this.getObjectMapper().readValue(getContent("errors.json"), Errors.class);
Errors errors = getObjectMapper().readValue(getContent("errors.json"), Errors.class);
assertThat(errors.toString()).isEqualTo("[TEST1: Test One, TEST2: Test Two]");
}

View File

@@ -78,7 +78,7 @@ public class SpringBootExtension {
* artifact will be the base name of the {@code bootWar} or {@code bootJar} task.
*/
public void buildInfo() {
this.buildInfo(null);
buildInfo(null);
}
/**

View File

@@ -78,7 +78,7 @@ public class BootRun extends JavaExec {
}
if (System.console() != null) {
// Record that the console is available here for AnsiOutput to detect later
this.getEnvironment().put("spring.output.ansi.console-available", true);
getEnvironment().put("spring.output.ansi.console-available", true);
}
super.exec();
}

View File

@@ -76,7 +76,7 @@ public abstract class AbstractJarWriter implements LoaderClassesWriter {
* @throws IOException if the entries cannot be written
*/
public void writeEntries(JarFile jarFile) throws IOException {
this.writeEntries(jarFile, EntryTransformer.NONE, UnpackHandler.NEVER);
writeEntries(jarFile, EntryTransformer.NONE, UnpackHandler.NEVER);
}
final void writeEntries(JarFile jarFile, EntryTransformer entryTransformer, UnpackHandler unpackHandler)

View File

@@ -84,7 +84,7 @@ public class Repackager extends Packager {
* @since 1.3.0
*/
public void repackage(File destination, Libraries libraries, LaunchScript launchScript) throws IOException {
this.repackage(destination, libraries, launchScript, null);
repackage(destination, libraries, launchScript, null);
}
/**

View File

@@ -89,7 +89,7 @@ public abstract class ExecutableArchiveLauncher extends Launcher {
if (this.classPathIndex != null) {
urls.addAll(this.classPathIndex.getUrls());
}
return this.createClassLoader(urls.toArray(new URL[0]));
return createClassLoader(urls.toArray(new URL[0]));
}
private int guessClassPathSize() {