Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # dev >> Should SiteConfiguration getInstance be sychronized?


Copy link to this message
-
Should SiteConfiguration getInstance be sychronized?
Findbugs is warning (Incorrect lazy initialization and update of
static field) about the following code:

  public static SiteConfiguration getInstance(AccumuloConfiguration parent) {
    if (instance == null) {
      instance = new SiteConfiguration(parent);
      ConfigSanityCheck.validate(instance);
    }
    return instance;
  }