Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(51)

Issue 135048: [SHINDIG-1199] OpenSocialI18NGadgetRewriter's creation of JsLibrary should be consistent with JsFeat

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 10 months ago by Jon Weygandt
Modified:
10 years, 8 months ago
Reviewers:
johnfargo, shindig.remailer
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 2

Patch Set 2 : This patch implements Option A (hopefully the right one this time) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -8 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/JsFeatureLoader.java View 3 chunks +3 lines, -1 line 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/render/OpenSocialI18NGadgetRewriter.java View 1 6 chunks +15 lines, -6 lines 1 comment Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/render/OpenSocialI18NGadgetRewriterTest.java View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 7
Jon Weygandt
15 years, 10 months ago (2009-10-19 16:40:29 UTC) #1
johnfargo
http://codereview.appspot.com/135048/diff/1/2 File java/gadgets/src/main/java/org/apache/shindig/gadgets/render/OpenSocialI18NGadgetRewriter.java (right): http://codereview.appspot.com/135048/diff/1/2#newcode79 Line 79: JsLibrary numberConstants = createJsLibrary(JsLibrary.Type.RESOURCE, To me this isn't ...
15 years, 10 months ago (2009-10-19 19:06:04 UTC) #2
Jon Weygandt
http://codereview.appspot.com/135048/diff/1/2 File java/gadgets/src/main/java/org/apache/shindig/gadgets/render/OpenSocialI18NGadgetRewriter.java (right): http://codereview.appspot.com/135048/diff/1/2#newcode79 Line 79: JsLibrary numberConstants = createJsLibrary(JsLibrary.Type.RESOURCE, The pattern you are ...
15 years, 10 months ago (2009-10-19 20:53:32 UTC) #3
Jon Weygandt
For option B there are actually 2 "public/protected static create" methods, plus some other private/protected ...
15 years, 10 months ago (2009-10-19 21:48:06 UTC) #4
Jon Weygandt
This patch implements Option A
15 years, 10 months ago (2009-10-27 16:22:41 UTC) #5
Jon Weygandt
This patch implements Option A (hopefully the right one this time)
15 years, 10 months ago (2009-10-27 16:23:38 UTC) #6
Jon Weygandt
15 years, 10 months ago (2009-10-27 16:58:04 UTC) #7
http://codereview.appspot.com/135048/diff/2011/3004
File
java/gadgets/src/main/java/org/apache/shindig/gadgets/render/OpenSocialI18NGadgetRewriter.java
(right):

http://codereview.appspot.com/135048/diff/2011/3004#newcode47
Line 47: private Map<Locale, String> i18nConstantsCache = new
ConcurrentHashMap<Locale, String>();
This is a concurrency bug, unrelated to the feature, but included with this
patch. This class is for all practical purposes a Singleton, thus mutable
members need proper synchronization. Since the data being stored is generated in
an idempotent manner and is immutable the simple "put" (rather than
"pubIfAbsent" is all that is requried)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b