Skip to content

Commit 31538eb

Browse files
author
Rob Harrop
committed
Merge bug23995 into default
2 parents 4a18f09 + 05cad79 commit 31538eb

File tree

4 files changed

+489
-226
lines changed

4 files changed

+489
-226
lines changed

src/com/rabbitmq/client/impl/Frame.java

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,22 @@
3737

3838
/**
3939
* Represents an AMQP wire-protocol frame, with frame type, channel number, and payload bytes.
40+
* TODO: make state private
4041
*/
4142
public class Frame {
42-
/**
43-
* Frame type code
44-
*/
45-
public int type;
43+
/** Frame type code */
44+
public final int type;
4645

4746
/** Frame channel number, 0-65535 */
48-
public int channel;
47+
public final int channel;
4948

5049
/** Frame payload bytes (for inbound frames) */
51-
public byte[] payload;
52-
53-
/** Frame payload (for outbound frames) */
54-
public ByteArrayOutputStream accumulator;
50+
public final byte[] payload;
5551

56-
/**
57-
* Constructs an uninitialized frame.
52+
/** Frame payload (for outbound frames)
53+
* TODO: make final; currently modified explicitly in tests.
5854
*/
59-
public Frame() {
60-
// No work to do
61-
}
55+
public ByteArrayOutputStream accumulator;
6256

6357
/**
6458
* Constructs a frame for output with a type and a channel number and a

0 commit comments

Comments
 (0)