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

Issue 1541042: Fix for CSS concat issue related to differing media types (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 10 months ago by anupama.dutta
Modified:
15 years, 9 months ago
Reviewers:
johnfargo, Paul Lindner, shindig.remailer
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/java/gadgets
Visibility:
Public.

Description

Fixing the CSS ConcatVisitor code for handling different media types. This patch should fix the issue reported in: https://issues.apache.org/jira/browse/SHINDIG-1085

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressing Fargo's comments related to restructuring etc. #

Patch Set 3 : Some whitespace fixes. #

Total comments: 5

Patch Set 4 : Addressing Lindner's comment related to LinkedHashMultiMap. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -6 lines) Patch
src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java View 1 2 3 4 chunks +38 lines, -2 lines 0 comments Download
src/test/java/org/apache/shindig/gadgets/rewrite/ConcatVisitorTest.java View 1 5 chunks +48 lines, -4 lines 0 comments Download

Messages

Total messages: 8
anupama.dutta
15 years, 10 months ago (2010-06-07 16:23:52 UTC) #1
johnfargo
Looking good - I believe this logic works but have one suggestion for structuring the ...
15 years, 10 months ago (2010-06-08 10:00:10 UTC) #2
anupama.dutta
Addressing Fargo's comments related to restructuring etc.
15 years, 10 months ago (2010-06-08 11:07:41 UTC) #3
anupama.dutta
http://codereview.appspot.com/1541042/diff/1/3 File src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1541042/diff/1/3#newcode93 src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:93: String nextElemMediaType = next.getAttribute("media"); On 2010/06/08 10:00:10, johnfargo wrote: ...
15 years, 10 months ago (2010-06-08 11:13:33 UTC) #4
Paul Lindner
seems fine. Might be a candidate for LinkedHashMultimap though...
15 years, 10 months ago (2010-06-09 05:23:18 UTC) #5
henry.saputra
My 2 cents. Thanks, - Henry http://codereview.appspot.com/1541042/diff/12001/9003 File src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1541042/diff/12001/9003#newcode175 src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:175: HashMap<String, List<Element>> mediaBatchMap ...
15 years, 10 months ago (2010-06-10 05:23:50 UTC) #6
anupama.dutta
Addressing Lindner's comment related to LinkedHashMultiMap.
15 years, 10 months ago (2010-06-10 12:00:09 UTC) #7
anupama.dutta
15 years, 10 months ago (2010-06-10 12:04:48 UTC) #8
Paul, Henry,

Thanks for your comments. I have changed the splitBatchOnMedia code to use
LinkedHashMultiMap and this has simplified the code considerably.
(Henry, I think many of your comments have been addressed or have become
redundant in my current patch).

Please let me know of any other refinements that I can do.

Thanks,
Anupama.
Sign in to reply to this message.

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