-/* Copyright (c) 2012-2014, 2016. The SimGrid Team.
+/* Copyright (c) 2012-2018. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
/* Returns if the destination has been found */
public boolean destinationFound() {
- if (nodes.size() < 1) {
+ if (nodes.isEmpty()) {
return false;
}
Contact tail = nodes.get(0);