mirror of https://github.com/apache/jclouds.git
Address and suppress FindBugs warnings
This commit is contained in:
parent
e581552583
commit
4f566d3b6e
|
@ -133,7 +133,7 @@ public class ServerInfoToNodeMetadata implements Function<ServerInfo, NodeMetada
|
|||
} catch (UncheckedExecutionException e) {
|
||||
logger.warn(e, "error finding drive %s: %s", input.getDriveUuid(), e.getMessage());
|
||||
}
|
||||
return new VolumeBuilder().durable(true).type(Volume.Type.NAS).build();
|
||||
return builder.durable(true).type(Volume.Type.NAS).build();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -241,7 +241,6 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
|
|||
BlobBuilder builder = blobBuilders.get();
|
||||
builder.name(key);
|
||||
File file = getFileForBlobKey(container, key);
|
||||
Path path = file.toPath();
|
||||
ByteSource byteSource;
|
||||
|
||||
if (getDirectoryBlobSuffix(key) != null) {
|
||||
|
|
|
@ -31,7 +31,6 @@ public class ByteArrayPayload extends BasePayload<byte[]> {
|
|||
super(content);
|
||||
getContentMetadata().setContentLength(Long.valueOf(checkNotNull(content, "content").length));
|
||||
getContentMetadata().setContentMD5(md5);
|
||||
checkArgument(content.length >= 0, "length cannot me negative");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -967,6 +967,7 @@
|
|||
EqualsOperandShouldHaveClassCompatibleWithThis,
|
||||
FindBadCast2,
|
||||
FindHEmismatch,
|
||||
FindMaskedFields,
|
||||
FindNullDeref,
|
||||
FindReturnRef,
|
||||
FindUnsatisfiedObligation,
|
||||
|
|
Loading…
Reference in New Issue