mirror of https://github.com/apache/jclouds.git
Avoid injecting on final fields
This can cause thread visibility issues. Found via error-prone.
This commit is contained in:
parent
f516fea2af
commit
8dae432b78
|
@ -71,7 +71,7 @@ public class GlacierBlobStore extends BaseBlobStore {
|
|||
|
||||
@Inject(optional = true)
|
||||
@Named("jclouds.glacier.inventory.update.time")
|
||||
private final long inventoryUpdateTime = DEFAULT_INVENTORY_UPDATE_TIME;
|
||||
private long inventoryUpdateTime = DEFAULT_INVENTORY_UPDATE_TIME;
|
||||
|
||||
private final GlacierClient sync;
|
||||
private final Provider<MultipartUploadStrategy> multipartUploadStrategy;
|
||||
|
|
|
@ -40,7 +40,7 @@ public class BaseSlicingStrategy implements SlicingStrategy {
|
|||
|
||||
@Inject(optional = true)
|
||||
@Named("jclouds.mpu.part.ratio")
|
||||
private final double ratio = DEFAULT_RATIO;
|
||||
private double ratio = DEFAULT_RATIO;
|
||||
|
||||
private final PayloadSlicer slicer;
|
||||
private Payload payload;
|
||||
|
|
Loading…
Reference in New Issue