Skip to content

Commit f9de107

Browse files
committed
cosmetic
1 parent 0f41da3 commit f9de107

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/src/com/rabbitmq/client/test/functional/UnexpectedFrames.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,8 @@ public Frame confuse(Frame frame) {
9696
if (frame.type == AMQP.FRAME_METHOD) {
9797
// We can't just skip the method as that will lead us to
9898
// send 0 bytes and hang waiting for a response.
99-
Frame confusedFrame = new Frame(AMQP.FRAME_HEADER,
100-
frame.channel,
101-
frame.getPayload());
102-
return confusedFrame;
99+
return new Frame(AMQP.FRAME_HEADER,
100+
frame.channel, frame.getPayload());
103101
}
104102
return frame;
105103
}
@@ -119,12 +117,11 @@ public Frame confuse(Frame frame) {
119117

120118
public void testWrongClassInHeader() throws IOException {
121119
expectUnexpectedFrameError(new Confuser() {
122-
public Frame confuse(Frame frame) throws IOException {
120+
public Frame confuse(Frame frame) {
123121
if (frame.type == AMQP.FRAME_HEADER) {
124122
byte[] payload = frame.getPayload();
125123
Frame confusedFrame = new Frame(AMQP.FRAME_HEADER,
126-
frame.channel,
127-
payload);
124+
frame.channel, payload);
128125
// First two bytes = class ID, must match class ID from
129126
// method.
130127
payload[0] = 12;

0 commit comments

Comments
 (0)