findbugs encoding

fake message part to remove stale PR folowing
    This closes #33
This commit is contained in:
Daan Hoogland 2015-06-25 14:43:49 +02:00
parent 12d52401f7
commit c0bf00c568

View File

@ -41,6 +41,7 @@ import com.cloud.network.Networks.RouterPrivateIpStrategy;
import com.cloud.resource.ServerResource; import com.cloud.resource.ServerResource;
import com.cloud.storage.Storage; import com.cloud.storage.Storage;
import com.cloud.storage.Storage.StoragePoolType; import com.cloud.storage.Storage.StoragePoolType;
import com.cloud.utils.StringUtils;
@Local(value = {ServerResource.class}) @Local(value = {ServerResource.class})
public class DummyResource implements ServerResource { public class DummyResource implements ServerResource {
@ -135,7 +136,7 @@ public class DummyResource implements ServerResource {
String hostIp = getConfiguredProperty("private.ip.address", "127.0.0.1"); String hostIp = getConfiguredProperty("private.ip.address", "127.0.0.1");
String localStoragePath = getConfiguredProperty("local.storage.path", "/mnt"); String localStoragePath = getConfiguredProperty("local.storage.path", "/mnt");
String lh = hostIp + localStoragePath; String lh = hostIp + localStoragePath;
String uuid = UUID.nameUUIDFromBytes(lh.getBytes()).toString(); String uuid = UUID.nameUUIDFromBytes(lh.getBytes(StringUtils.getPreferredCharset())).toString();
String capacity = getConfiguredProperty("local.storage.capacity", "1000000000"); String capacity = getConfiguredProperty("local.storage.capacity", "1000000000");
String available = getConfiguredProperty("local.storage.avail", "10000000"); String available = getConfiguredProperty("local.storage.avail", "10000000");