Remove this keyword on member method invocations
See gh-21007
This commit is contained in:
committed by
Stephane Nicoll
parent
f0d4192df9
commit
29717423a3
@@ -80,7 +80,7 @@ class LifecycleVersion implements Comparable<LifecycleVersion> {
|
||||
* version
|
||||
*/
|
||||
boolean isEqualOrGreaterThan(LifecycleVersion other) {
|
||||
return this.compareTo(other) >= 0;
|
||||
return compareTo(other) >= 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -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]");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user