protected String issuerHostname;
protected String mailbox;
protected int peerId;
- protected char bitfield[];
+ protected char[] bitfield;
protected int index;
protected int blockIndex;
protected int blockLength;
}
// builds a new bitfield message
- public MessageTask(Type type, String issuerHostname, String mailbox, int peerId, char bitfield[]) {
+ public MessageTask(Type type, String issuerHostname, String mailbox, int peerId, char[] bitfield) {
this(type,issuerHostname,mailbox,peerId,-1,false,-1,-1);
this.bitfield = bitfield;
}