public static void addPortUse(Map<StoragePort,Integer> portUseCounts,StoragePort port){
  if (!portUseCounts.containsKey(port)) {
    portUseCounts.put(port,1);
  }
 else {
    Integer newCount=portUseCounts.get(port) + 1;
    portUseCounts.put(port,newCount);
  }
}

public static void addPortUse ( Map < StoragePort , Integer > portUseCounts , StoragePort port ) { if ( ! portUseCounts . containsKey ( port ) ) { portUseCounts . put ( port , 1 ) ; } else { Integer newCount = portUseCounts . get ( port ) + 1 ; portUseCounts . put ( port , newCount ) ; } }
adds a use count to a port , which indicates one initiator is using the port this is public static because the storageportsassignertest uses it .
