Merge changes from topic 'upgrade-junit4.12'

* changes:
  Extra generic type information to aid certain javacs.
  Revert matchers back to 4.10 to compile against Hamcrest 1.1
  Remove support for stuck threads
  Remove DisableOnDebug (new in 4.12) as it is not supported on Android
  Upgrade to JUnit 4.12