accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Medinets <david.medin...@gmail.com>
Subject Should SiteConfiguration getInstance be sychronized?
Date Sat, 08 Sep 2012 12:51:30 GMT
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;
  }

Mime
View raw message