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

Issue 1032042: HttpResponseBuilder-extends-MutableContent (Closed)

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

Description

@see thread on dev@shindig.apache.org for discussion regarding the motivation for this CL (posting now)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -39 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/HttpResponseBuilder.java View 13 chunks +78 lines, -38 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java View 2 chunks +5 lines, -1 line 1 comment Download

Messages

Total messages: 8
johnfargo
15 years, 8 months ago (2010-04-30 23:49:06 UTC) #1
jtarrio
lgtm
15 years, 8 months ago (2010-05-03 21:55:50 UTC) #2
johnfargo
Thanks Jacobo. Any objections from others? If not I'll be submitting in a reasonably short ...
15 years, 8 months ago (2010-05-03 23:12:01 UTC) #3
Paul Lindner
lgtm
15 years, 8 months ago (2010-05-03 23:36:37 UTC) #4
henry.saputra
http://codereview.appspot.com/1032042/diff/1/2 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java (right): http://codereview.appspot.com/1032042/diff/1/2#newcode144 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java:144: contentBytes = content.getBytes("UTF8"); Just curious is the charset name ...
15 years, 8 months ago (2010-05-03 23:39:32 UTC) #5
johnfargo
I suppose it couldn't hurt to just use CharsetUtil.getUtf8Bytes() - obviates the need for a ...
15 years, 8 months ago (2010-05-03 23:43:25 UTC) #6
johnfargo
Went ahead and used CharsetUtil.getUtf8Bytes(...), and committed. On Mon, May 3, 2010 at 4:43 PM, ...
15 years, 8 months ago (2010-05-04 00:23:37 UTC) #7
henry.saputra
15 years, 8 months ago (2010-05-04 00:49:26 UTC) #8
+1 using CharsetUtils.getUtf8Bytes instead

- Henry

On Mon, May 3, 2010 at 4:43 PM, John Hjelmstad <johnfargo@gmail.com> wrote:

> I suppose it couldn't hurt to just use CharsetUtil.getUtf8Bytes() -
> obviates the need for a try/catch block as well. Seem reasonable?
>
> On Mon, May 3, 2010 at 4:39 PM, <henry.saputra@gmail.com> wrote:
>
>>
>> http://codereview.appspot.com/1032042/diff/1/2
>> File
>>
>>
>>
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java
>> (right):
>>
>> http://codereview.appspot.com/1032042/diff/1/2#newcode144
>>
>>
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/MutableContent.java:144:
>> contentBytes = content.getBytes("UTF8");
>> Just curious is the charset name should be "UTF-8" or use
>> CharsetUtil.UTF8?
>>
>>
>> http://codereview.appspot.com/1032042/show
>>
>
>
Sign in to reply to this message.

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