From e915feb1602a7d88c39623da055fe68af422d27c Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Sun, 5 Oct 2014 01:13:30 +0200 Subject: Introduce at least a semblance of thread-safety. --- org/madore/damlengine/WeblogSummary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org/madore/damlengine/WeblogSummary.java') diff --git a/org/madore/damlengine/WeblogSummary.java b/org/madore/damlengine/WeblogSummary.java index 50ab143..b067987 100644 --- a/org/madore/damlengine/WeblogSummary.java +++ b/org/madore/damlengine/WeblogSummary.java @@ -37,7 +37,7 @@ public final class WeblogSummary { this.entries = new HashMap(); } - public static WeblogSummary getSummary() { + public static synchronized WeblogSummary getSummary() { if ( singleton != null ) return singleton; singleton = new WeblogSummary(); -- cgit v1.2.3