Revert "Fix one and hide the other warnings from core/jni"

This reverts commit 6c42bcbe2d29f341cb94e844337633bcea239f23.