|
[jira] Updated: (HARMONY-123) Refactor: java.nio.charset.CharsetDecoder.dec: msg#01011java.harmony.devel
[ http://issues.apache.org/jira/browse/HARMONY-123?page=all ] Richard Liang updated HARMONY-123: ---------------------------------- Attachment: CharsetDecoder_patch.txt Here is my update. Would you please take a try? Thanks a lot. > Refactor: java.nio.charset.CharsetDecoder.decode > ------------------------------------------------ > > Key: HARMONY-123 > URL: http://issues.apache.org/jira/browse/HARMONY-123 > Project: Harmony > Type: Bug > Components: Classlib > Reporter: Richard Liang > Priority: Minor > Attachments: CharsetDecoder_patch.txt > > I've refactored two decode methods in CharsetDecode.java. Although the > original version runs well, the structure of these two methods is messed. The > refactored methods include: > 1. public final CharBuffer decode(ByteBuffer in) throws > CharacterCodingException; > 2. public final CoderResult decode(ByteBuffer in, CharBuffer out,boolean > endOfInput); > Main changes: > 1. remove embedded "while" in decode(ByteBuffer in, CharBuffer out,boolean > endOfInput); > 2. restruct condition control process in both two methods. > 3. truncate return value of decode(in), which means the returned CharBuffer > has the same value between capacity and limit. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [jira] Created: (HARMONY-123) Refactor: java.nio.charset.CharsetDecoder.decode, Richard Liang (JIRA) |
|---|---|
| Next by Date: | Re: local test server (Was: Re: [jira] Commented: (HARMONY-71) java.net.URLConnection.setUseCaches throws unspecified IllegalAccessError), Stepan Mishura |
| Previous by Thread: | [jira] Created: (HARMONY-123) Refactor: java.nio.charset.CharsetDecoder.decode, Richard Liang (JIRA) |
| Next by Thread: | [jira] Assigned: (HARMONY-123) Refactor: java.nio.charset.CharsetDecoder.decode, Tim Ellison (JIRA) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |