Avoid injecting on final fields

This can cause thread visibility issues.  Found via error-prone.
This commit is contained in:
Andrew Gaul 2017-08-28 21:13:54 -07:00
parent f516fea2af
commit 8dae432b78
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;