mirror of
https://github.com/apache/jclouds.git
synced 2026-09-11 05:29:44 +00:00
Address error-prone errors
Mostly of the form, Collection.size() >= 0.
This commit is contained in:
+1
-1
@@ -113,7 +113,7 @@ public class NovaTemplateOptions extends TemplateOptions implements Cloneable {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(super.hashCode(), autoAssignFloatingIp, floatingIpPoolNames, generateKeyPair, keyPairName,
|
||||
userData, diskConfig, configDrive, novaNetworks, availabilityZone);
|
||||
Arrays.hashCode(userData), diskConfig, configDrive, novaNetworks, availabilityZone);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ public class FloatingIPApiLiveTest extends BaseNovaApiLiveTest {
|
||||
FloatingIPApi api = apiOption.get();
|
||||
Set<? extends FloatingIP> response = api.list().toSet();
|
||||
assert null != response;
|
||||
assertTrue(response.size() >= 0);
|
||||
assertTrue(response.size() > 0);
|
||||
for (FloatingIP ip : response) {
|
||||
FloatingIP newDetails = api.get(ip.getId());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user