ARTEMIS-4747 remove unreachable code
This commit is contained in:
parent
8d3508eaf2
commit
4c454e8abd
|
@ -35,7 +35,7 @@ import org.apache.activemq.artemis.utils.UTF8Util;
|
||||||
|
|
||||||
final class CompressedLargeMessageControllerImpl implements LargeMessageController {
|
final class CompressedLargeMessageControllerImpl implements LargeMessageController {
|
||||||
|
|
||||||
private static final String OPERATION_NOT_SUPPORTED = "Operation not supported";
|
private static final String OPERATION_NOT_SUPPORTED = "Operation not supported over compressed large messages";
|
||||||
|
|
||||||
private final LargeMessageController bufferDelegate;
|
private final LargeMessageController bufferDelegate;
|
||||||
|
|
||||||
|
@ -114,10 +114,6 @@ final class CompressedLargeMessageControllerImpl implements LargeMessageControll
|
||||||
return dataInput;
|
return dataInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void positioningNotSupported() {
|
|
||||||
throw new IllegalStateException("Position not supported over compressed large messages");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public byte readByte() {
|
public byte readByte() {
|
||||||
try {
|
try {
|
||||||
|
@ -129,41 +125,37 @@ final class CompressedLargeMessageControllerImpl implements LargeMessageControll
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public byte getByte(final int index) {
|
public byte getByte(final int index) {
|
||||||
positioningNotSupported();
|
throw new IllegalStateException(OPERATION_NOT_SUPPORTED);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void getBytes(final int index, final ActiveMQBuffer dst, final int dstIndex, final int length) {
|
public void getBytes(final int index, final ActiveMQBuffer dst, final int dstIndex, final int length) {
|
||||||
positioningNotSupported();
|
throw new IllegalStateException(OPERATION_NOT_SUPPORTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void getBytes(final int index, final byte[] dst, final int dstIndex, final int length) {
|
public void getBytes(final int index, final byte[] dst, final int dstIndex, final int length) {
|
||||||
positioningNotSupported();
|
throw new IllegalStateException(OPERATION_NOT_SUPPORTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void getBytes(final int index, final ByteBuffer dst) {
|
public void getBytes(final int index, final ByteBuffer dst) {
|
||||||
positioningNotSupported();
|
throw new IllegalStateException(OPERATION_NOT_SUPPORTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getInt(final int index) {
|
public int getInt(final int index) {
|
||||||
positioningNotSupported();
|
throw new IllegalStateException(OPERATION_NOT_SUPPORTED);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long getLong(final int index) {
|
public long getLong(final int index) {
|
||||||
positioningNotSupported();
|
throw new IllegalStateException(OPERATION_NOT_SUPPORTED);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public short getShort(final int index) {
|
public short getShort(final int index) {
|
||||||
positioningNotSupported();
|
throw new IllegalStateException(OPERATION_NOT_SUPPORTED);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -239,7 +231,7 @@ final class CompressedLargeMessageControllerImpl implements LargeMessageControll
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setIndex(final int readerIndex, final int writerIndex) {
|
public void setIndex(final int readerIndex, final int writerIndex) {
|
||||||
positioningNotSupported();
|
throw new IllegalStateException(OPERATION_NOT_SUPPORTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue