diff options
author | David A. Madore <david+git@madore.org> | 2014-10-05 01:13:30 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2014-10-05 01:13:30 +0200 |
commit | e915feb1602a7d88c39623da055fe68af422d27c (patch) | |
tree | 422ff495c24f6185c28071a950f6c8d688e72800 /org/madore/damlengine/WeblogSummary.java | |
parent | 81105d8785341817023d3ee2d19f6f814748ae77 (diff) | |
download | damlengine-e915feb1602a7d88c39623da055fe68af422d27c.tar.gz damlengine-e915feb1602a7d88c39623da055fe68af422d27c.tar.bz2 damlengine-e915feb1602a7d88c39623da055fe68af422d27c.zip |
Introduce at least a semblance of thread-safety.
Diffstat (limited to 'org/madore/damlengine/WeblogSummary.java')
-rw-r--r-- | org/madore/damlengine/WeblogSummary.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<Integer,EntrySummary>(); } - public static WeblogSummary getSummary() { + public static synchronized WeblogSummary getSummary() { if ( singleton != null ) return singleton; singleton = new WeblogSummary(); |