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) {
96
96
if (frame .type == AMQP .FRAME_METHOD ) {
97
97
// We can't just skip the method as that will lead us to
98
98
// 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 ());
103
101
}
104
102
return frame ;
105
103
}
@@ -119,12 +117,11 @@ public Frame confuse(Frame frame) {
119
117
120
118
public void testWrongClassInHeader () throws IOException {
121
119
expectUnexpectedFrameError (new Confuser () {
122
- public Frame confuse (Frame frame ) throws IOException {
120
+ public Frame confuse (Frame frame ) {
123
121
if (frame .type == AMQP .FRAME_HEADER ) {
124
122
byte [] payload = frame .getPayload ();
125
123
Frame confusedFrame = new Frame (AMQP .FRAME_HEADER ,
126
- frame .channel ,
127
- payload );
124
+ frame .channel , payload );
128
125
// First two bytes = class ID, must match class ID from
129
126
// method.
130
127
payload [0 ] = 12 ;
You can’t perform that action at this time.
0 commit comments