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

Issue 224097: Refactor ConcatLinkRewriter as a Visitor (Closed)

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

Description

Removes LinkRewriter references and dependencies from ConcatLinkRewriter, and re-implements ConcatLinkRewriter in the DomWalker.Visitor paradigm. The operation implemented by this Visitor is limited in scope: it only performs concat (and in the case of JS, split-concat aka. "JS spriting") rewriting, but does *not* rearrange <style> nodes to be adjacent to one another. That will be done by another Visitor, with the previous operation provided by running both passes in order.

Patch Set 1 #

Patch Set 2 : Implemented, but haven't yet verified, tests. #

Patch Set 3 : Spacing fix. #

Patch Set 4 : Test tweaks. #

Patch Set 5 : Completed tests, with corresponding bugfixes. #

Patch Set 6 : Import fix. #

Patch Set 7 : Synced to head. #

Total comments: 3

Patch Set 8 : Renamed ConcatVisitor; tweaked tests per zhoresh's comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+721 lines, -0 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java View 1 chunk +202 lines, -0 lines 1 comment Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ConcatVisitorTest.java View 1 chunk +519 lines, -0 lines 0 comments Download

Messages

Total messages: 11
johnfargo
15 years, 10 months ago (2010-03-02 19:52:59 UTC) #1
johnfargo
Implemented, but haven't yet verified, tests.
15 years, 10 months ago (2010-03-03 09:15:03 UTC) #2
johnfargo
Spacing fix.
15 years, 10 months ago (2010-03-03 09:16:23 UTC) #3
johnfargo
Test tweaks.
15 years, 10 months ago (2010-03-03 09:22:17 UTC) #4
johnfargo
Completed tests, with corresponding bugfixes.
15 years, 10 months ago (2010-03-03 18:23:24 UTC) #5
johnfargo
Import fix.
15 years, 10 months ago (2010-03-03 18:24:39 UTC) #6
johnfargo
Synced to head.
15 years, 10 months ago (2010-03-03 19:50:56 UTC) #7
zhoresh
http://codereview.appspot.com/224097/diff/2001/2003 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatLinkRewriter.java (right): http://codereview.appspot.com/224097/diff/2001/2003#newcode122 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatLinkRewriter.java:122: ConcatUriManager.ConcatUri.fromList(gadget, uriBatches, type), !split); It would be nice to ...
15 years, 10 months ago (2010-03-06 01:41:00 UTC) #8
johnfargo
On Fri, Mar 5, 2010 at 5:41 PM, <zhoresh@gmail.com> wrote: > > http://codereview.appspot.com/224097/diff/2001/2003 > File ...
15 years, 10 months ago (2010-03-08 23:32:38 UTC) #9
johnfargo
Renamed ConcatVisitor; tweaked tests per zhoresh's comments.
15 years, 10 months ago (2010-03-08 23:37:40 UTC) #10
zhoresh
15 years, 10 months ago (2010-03-08 23:51:46 UTC) #11
LGTM

http://codereview.appspot.com/224097/diff/11001/12002
File
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java
(right):

http://codereview.appspot.com/224097/diff/11001/12002#newcode194
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:194:
} catch (Exception e) {
Use specific Exception?
Sign in to reply to this message.

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