Merge changes from topic "oth/jni/dead-statics"

* changes:
  Remove unused static variables
  Remove unnecessary field lookups in getPointer