From 86f79c484e4f12a32491d952c70691acfb045922 Mon Sep 17 00:00:00 2001 From: jeremyhi Date: Sun, 4 Feb 2024 15:59:14 +0800 Subject: [PATCH] refactor: protocol module's unused code --- .../java/io/greptime/errors/LimitedException.java | 11 ----------- .../java/io/greptime/errors/PojoException.java | 11 ----------- .../java/io/greptime/errors/ServerException.java | 15 --------------- .../java/io/greptime/errors/StreamException.java | 15 --------------- 4 files changed, 52 deletions(-) diff --git a/ingester-protocol/src/main/java/io/greptime/errors/LimitedException.java b/ingester-protocol/src/main/java/io/greptime/errors/LimitedException.java index 425c63a..bfe5725 100644 --- a/ingester-protocol/src/main/java/io/greptime/errors/LimitedException.java +++ b/ingester-protocol/src/main/java/io/greptime/errors/LimitedException.java @@ -20,26 +20,15 @@ * * @author jiachun.fjc */ -@SuppressWarnings("unused") public class LimitedException extends RuntimeException { private static final long serialVersionUID = -1L; - public LimitedException() {} - public LimitedException(String message) { super(message); } - public LimitedException(String message, Throwable cause) { - super(message, cause); - } - public LimitedException(Throwable cause) { super(cause); } - - public LimitedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { - super(message, cause, enableSuppression, writableStackTrace); - } } diff --git a/ingester-protocol/src/main/java/io/greptime/errors/PojoException.java b/ingester-protocol/src/main/java/io/greptime/errors/PojoException.java index f120f96..0577f31 100644 --- a/ingester-protocol/src/main/java/io/greptime/errors/PojoException.java +++ b/ingester-protocol/src/main/java/io/greptime/errors/PojoException.java @@ -18,24 +18,13 @@ /** * @author jiachun.fjc */ -@SuppressWarnings("unused") public class PojoException extends RuntimeException { - public PojoException() {} - public PojoException(String message) { super(message); } - public PojoException(String message, Throwable cause) { - super(message, cause); - } - public PojoException(Throwable cause) { super(cause); } - - public PojoException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { - super(message, cause, enableSuppression, writableStackTrace); - } } diff --git a/ingester-protocol/src/main/java/io/greptime/errors/ServerException.java b/ingester-protocol/src/main/java/io/greptime/errors/ServerException.java index ee04767..8ddb74d 100644 --- a/ingester-protocol/src/main/java/io/greptime/errors/ServerException.java +++ b/ingester-protocol/src/main/java/io/greptime/errors/ServerException.java @@ -18,26 +18,11 @@ /** * @author jiachun.fjc */ -@SuppressWarnings("unused") public class ServerException extends RuntimeException { private static final long serialVersionUID = -1L; - public ServerException() {} - public ServerException(String message) { super(message); } - - public ServerException(String message, Throwable cause) { - super(message, cause); - } - - public ServerException(Throwable cause) { - super(cause); - } - - public ServerException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { - super(message, cause, enableSuppression, writableStackTrace); - } } diff --git a/ingester-protocol/src/main/java/io/greptime/errors/StreamException.java b/ingester-protocol/src/main/java/io/greptime/errors/StreamException.java index d00efe0..a0b861a 100644 --- a/ingester-protocol/src/main/java/io/greptime/errors/StreamException.java +++ b/ingester-protocol/src/main/java/io/greptime/errors/StreamException.java @@ -20,26 +20,11 @@ * * @author jiachun.fjc */ -@SuppressWarnings("unused") public class StreamException extends RuntimeException { private static final long serialVersionUID = -1L; - public StreamException() {} - public StreamException(String message) { super(message); } - - public StreamException(String message, Throwable cause) { - super(message, cause); - } - - public StreamException(Throwable cause) { - super(cause); - } - - public StreamException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { - super(message, cause, enableSuppression, writableStackTrace); - } }