Skip to content

Rewrite LinkedBufferInput.java for Android - #18

Merged
muga merged 1 commit into
msgpack:masterfrom
nagoya0:compati2
Jan 19, 2013
Merged

Rewrite LinkedBufferInput.java for Android#18
muga merged 1 commit into
msgpack:masterfrom
nagoya0:compati2

Conversation

@nagoya0

@nagoya0 nagoya0 commented Aug 9, 2012

Copy link
Copy Markdown

If you are interested in the Android version of Msgpack in the future,
please consider to rewrite LinkedBufferInput.java for Android.

There are some LinkedList#peekFirst() and LinkedList#peekLast() in LinkedBufferInput.java,
but they have been available since recent Android version(above Android 2.3).
So, please replace them to approximate equivalent methods LinkedList#getFirst() and LinkedList#getLast().

--Japanese--
もし将来的にAndroidへのMsgpackの移植をお考えなら、LinkedBufferInput.javaの書き換えをご一考ください。
LinkedList#peekFirst()とLinkedList#peekLast()はAndroid2.3以上でのみフレームワークに存在しており、
それ以下のバージョンのAndroidではクラッシュします。
これらはLinkedList#getFirst()とLinkedList#getLast()でほぼ等価な書き換えができます。(こちらはAndroid1.0以上でサポートされています)

muga added a commit that referenced this pull request Jan 19, 2013
replaced method calls of LinkedList#peek{First,Last}() into LinkedList#get{First,Last}() within LinkedBufferInput class. the change is for Android
@muga
muga merged commit 383fe05 into msgpack:master Jan 19, 2013
@muga

muga commented Jan 19, 2013

Copy link
Copy Markdown
Member

Sorry for the delay...

Thank you for your request!! I merged your patch. please check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants