From a9893f3bd20533a8828e69b38d4854b74c8dc4ea Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Mon, 4 Nov 2013 20:21:55 +0900 Subject: [PATCH] Abstract classes' names should start with 'Abstract' --- ...ultMemcacheObject.java => AbstractMemcacheObject.java} | 4 ++-- .../handler/codec/memcache/DefaultMemcacheContent.java | 2 +- ...cheMessage.java => AbstractBinaryMemcacheMessage.java} | 8 ++++---- .../memcache/binary/DefaultBinaryMemcacheRequest.java | 2 +- .../memcache/binary/DefaultBinaryMemcacheResponse.java | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) rename codec-memcache/src/main/java/io/netty/handler/codec/memcache/{DefaultMemcacheObject.java => AbstractMemcacheObject.java} (91%) rename codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/{DefaultBinaryMemcacheMessage.java => AbstractBinaryMemcacheMessage.java} (89%) diff --git a/codec-memcache/src/main/java/io/netty/handler/codec/memcache/DefaultMemcacheObject.java b/codec-memcache/src/main/java/io/netty/handler/codec/memcache/AbstractMemcacheObject.java similarity index 91% rename from codec-memcache/src/main/java/io/netty/handler/codec/memcache/DefaultMemcacheObject.java rename to codec-memcache/src/main/java/io/netty/handler/codec/memcache/AbstractMemcacheObject.java index 6e37c17f10..ce1b28430b 100644 --- a/codec-memcache/src/main/java/io/netty/handler/codec/memcache/DefaultMemcacheObject.java +++ b/codec-memcache/src/main/java/io/netty/handler/codec/memcache/AbstractMemcacheObject.java @@ -20,11 +20,11 @@ import io.netty.handler.codec.DecoderResult; /** * The default {@link MemcacheObject} implementation. */ -public abstract class DefaultMemcacheObject implements MemcacheObject { +public abstract class AbstractMemcacheObject implements MemcacheObject { private DecoderResult decoderResult = DecoderResult.SUCCESS; - protected DefaultMemcacheObject() { + protected AbstractMemcacheObject() { // Disallow direct instantiation } diff --git a/codec-memcache/src/main/java/io/netty/handler/codec/memcache/DefaultMemcacheContent.java b/codec-memcache/src/main/java/io/netty/handler/codec/memcache/DefaultMemcacheContent.java index 2929a30d3e..ddc0d1e4dd 100644 --- a/codec-memcache/src/main/java/io/netty/handler/codec/memcache/DefaultMemcacheContent.java +++ b/codec-memcache/src/main/java/io/netty/handler/codec/memcache/DefaultMemcacheContent.java @@ -21,7 +21,7 @@ import io.netty.util.internal.StringUtil; /** * The default {@link MemcacheContent} implementation. */ -public class DefaultMemcacheContent extends DefaultMemcacheObject implements MemcacheContent { +public class DefaultMemcacheContent extends AbstractMemcacheObject implements MemcacheContent { private final ByteBuf content; diff --git a/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultBinaryMemcacheMessage.java b/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/AbstractBinaryMemcacheMessage.java similarity index 89% rename from codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultBinaryMemcacheMessage.java rename to codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/AbstractBinaryMemcacheMessage.java index 81d4c581bd..854b4887d2 100644 --- a/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultBinaryMemcacheMessage.java +++ b/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/AbstractBinaryMemcacheMessage.java @@ -16,13 +16,13 @@ package io.netty.handler.codec.memcache.binary; import io.netty.buffer.ByteBuf; -import io.netty.handler.codec.memcache.DefaultMemcacheObject; +import io.netty.handler.codec.memcache.AbstractMemcacheObject; /** * Default implementation of a {@link BinaryMemcacheMessage}. */ -public abstract class DefaultBinaryMemcacheMessage - extends DefaultMemcacheObject +public abstract class AbstractBinaryMemcacheMessage + extends AbstractMemcacheObject implements BinaryMemcacheMessage { /** @@ -47,7 +47,7 @@ public abstract class DefaultBinaryMemcacheMessage +public class DefaultBinaryMemcacheRequest extends AbstractBinaryMemcacheMessage implements BinaryMemcacheRequest { /** diff --git a/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultBinaryMemcacheResponse.java b/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultBinaryMemcacheResponse.java index 5126cd1b49..d871e89a21 100644 --- a/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultBinaryMemcacheResponse.java +++ b/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultBinaryMemcacheResponse.java @@ -21,7 +21,7 @@ import io.netty.buffer.Unpooled; /** * The default implementation of the {@link BinaryMemcacheResponse}. */ -public class DefaultBinaryMemcacheResponse extends DefaultBinaryMemcacheMessage +public class DefaultBinaryMemcacheResponse extends AbstractBinaryMemcacheMessage implements BinaryMemcacheResponse { /**