-/* Copyright (c) 2006-2014, 2016. The SimGrid Team.
+/* Copyright (c) 2006-2018. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
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;
}