private static BuildInfo populateBuildInfoCache() { return getBuildInfoInternalVersion(Overrides.DISABLED); }
/** * Parses {@code hazelcast-runtime.properties} for {@code BuildInfo}; also checks for overrides in System.properties. * Never cache result of this method in a static context - as it can change due versions overriding - this method * already does caching whenever it's possible - i.e. when overrides is disabled. * * @return the parsed BuildInfo */ public static BuildInfo getBuildInfo() { if (Overrides.isEnabled()) { // never use cache when override is enabled -> we need to re-parse everything Overrides overrides = Overrides.fromProperties(); return getBuildInfoInternalVersion(overrides); } return BUILD_INFO_CACHE; }
private static BuildInfo populateBuildInfoCache() { return getBuildInfoInternalVersion(Overrides.DISABLED); }
/** * Parses {@code hazelcast-runtime.properties} for {@code BuildInfo}; also checks for overrides in System.properties. * Never cache result of this method in a static context - as it can change due versions overriding - this method * already does caching whenever it's possible - i.e. when overrides is disabled. * * @return the parsed BuildInfo */ public static BuildInfo getBuildInfo() { if (Overrides.isEnabled()) { // never use cache when override is enabled -> we need to re-parse everything Overrides overrides = Overrides.fromProperties(); return getBuildInfoInternalVersion(overrides); } return BUILD_INFO_CACHE; }