diff --git a/common/src/main/java/io/netty/util/HashedWheelTimer.java b/common/src/main/java/io/netty/util/HashedWheelTimer.java index 90e0cb5b0e..943e45f448 100644 --- a/common/src/main/java/io/netty/util/HashedWheelTimer.java +++ b/common/src/main/java/io/netty/util/HashedWheelTimer.java @@ -589,12 +589,12 @@ public class HashedWheelTimer implements Timer { } @Override - public Timer getTimer() { + public Timer timer() { return HashedWheelTimer.this; } @Override - public TimerTask getTask() { + public TimerTask task() { return task; } diff --git a/common/src/main/java/io/netty/util/Timeout.java b/common/src/main/java/io/netty/util/Timeout.java index 30a7da3ae1..69a976f4f9 100644 --- a/common/src/main/java/io/netty/util/Timeout.java +++ b/common/src/main/java/io/netty/util/Timeout.java @@ -24,12 +24,12 @@ public interface Timeout { /** * Returns the {@link Timer} that created this handle. */ - Timer getTimer(); + Timer timer(); /** * Returns the {@link TimerTask} which is associated with this handle. */ - TimerTask getTask(); + TimerTask task(); /** * Returns {@code true} if and only if the {@link TimerTask} associated