File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
test/src/com/rabbitmq/client/test/functional Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments