Polishing

This commit is contained in:
Juergen Hoeller
2016-08-17 21:39:24 +02:00
parent b9a2d0af98
commit 1295f62319
3 changed files with 16 additions and 22 deletions

View File

@@ -35,12 +35,12 @@ public class NopInterceptor implements MethodInterceptor {
return invocation.proceed();
}
public int getCount() {
return this.count;
protected void increment() {
this.count++;
}
protected void increment() {
++count;
public int getCount() {
return this.count;
}

View File

@@ -33,16 +33,6 @@ public class SerializablePerson implements Person, Serializable {
private int age;
@Override
public int getAge() {
return age;
}
@Override
public void setAge(int age) {
this.age = age;
}
@Override
public String getName() {
return name;
@@ -53,6 +43,16 @@ public class SerializablePerson implements Person, Serializable {
this.name = name;
}
@Override
public int getAge() {
return age;
}
@Override
public void setAge(int age) {
this.age = age;
}
@Override
public Object echo(Object o) throws Throwable {
if (o instanceof Throwable) {
@@ -62,6 +62,7 @@ public class SerializablePerson implements Person, Serializable {
}
@Override
public boolean equals(Object other) {
if (!(other instanceof SerializablePerson)) {
return false;