Skip to content

Commit

Permalink
7357: Double-Checked Locking in Agent Plugin code
Browse files Browse the repository at this point in the history
Reviewed-by: jpbempel, hirt
  • Loading branch information
Guru Hb committed Jul 30, 2021
1 parent 8a02826 commit 70901a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class PresetRepositoryFactory {
private static final File PRESET_STORAGE_DIR = AgentPlugin.getDefault().getStateLocation().append(".presets") // $NON-NLS-1$
.toFile();

private static PresetRepository singleton;
private volatile static PresetRepository singleton;

public static PresetRepository createSingleton() {
if (singleton == null) {
Expand Down

0 comments on commit 70901a3

Please sign in to comment.