File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/org/csanchez/jenkins/plugins/kubernetes Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 66import java .util .logging .Logger ;
77
88import edu .umd .cs .findbugs .annotations .NonNull ;
9+ import net .jcip .annotations .GuardedBy ;
910import org .kohsuke .accmod .Restricted ;
1011import org .kohsuke .accmod .restrictions .NoExternalUse ;
1112
2627public final class KubernetesProvisioningLimits {
2728 private static final Logger LOGGER = Logger .getLogger (KubernetesProvisioningLimits .class .getName ());
2829
30+ @ GuardedBy ("this" )
2931 private boolean init ;
3032
3133 /**
@@ -59,8 +61,8 @@ private synchronized boolean initInstance() {
5961 cloudCounts .put (node .getCloudName (), getGlobalCount (node .getCloudName ()) + node .getNumExecutors ());
6062 podTemplateCounts .put (node .getTemplateId (), getPodTemplateCount (node .getTemplateId ()) + node .getNumExecutors ());
6163 });
62- init = true ;
6364 });
65+ init = true ;
6466 return false ;
6567 }
6668
You can’t perform that action at this time.
0 commit comments