michel-kraemer/bson4jackson — pull request #21 by twuni (2012-08-29 19:23:45+00:00)
Title: Compatibility for Android 2.2 and below

Sticking with the spirit of my previous pull request, I've simplified the changes, rewritten the Stack implementation, and incorporated a more complete test suite. The gist is that Deque is a Java 1.6 feature, and Android 2.2 and below are using Java 1.5. Java's native Stack implementation fails the bson4jackson test suite, so I needed to switch to a custom implementation.

What you see here is `de.undercouch.bson4jackson.Stack` acting as a drop-in replacement for `java.util.Deque`.