Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright headers.
[simgrid.git] / examples / java / app / bittorrent / MessageTask.java
index 4ff0204..c8b2227 100644 (file)
@@ -1,4 +1,4 @@
-/* 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
@@ -24,7 +24,7 @@ public class MessageTask extends Task {
   protected String issuerHostname;
   protected String mailbox;
   protected int peerId;
-  protected char bitfield[];
+  protected char[] bitfield;
   protected int index;
   protected int blockIndex;
   protected int blockLength;
@@ -39,7 +39,7 @@ public class MessageTask extends Task {
   }
 
   // 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;
   }