|
@@ -285,7 +285,7 @@ public abstract class Resource implements Comparable<Resource> {
|
|
|
return;
|
|
|
}
|
|
|
if (resource.equals(ResourceInformation.VCORES_URI)) {
|
|
|
- this.setVirtualCores((int) resourceInformation.getValue());
|
|
|
+ this.setVirtualCores(castToIntSafely(resourceInformation.getValue()));
|
|
|
return;
|
|
|
}
|
|
|
ResourceInformation storedResourceInfo = getResourceInformation(resource);
|
|
@@ -331,7 +331,7 @@ public abstract class Resource implements Comparable<Resource> {
|
|
|
return;
|
|
|
}
|
|
|
if (resource.equals(ResourceInformation.VCORES_URI)) {
|
|
|
- this.setVirtualCores((int)value);
|
|
|
+ this.setVirtualCores(castToIntSafely(value));
|
|
|
return;
|
|
|
}
|
|
|
|