Revert "Adds source compatibility for java"

This reverts commit ab24a752b2b017865e175b9b1124b56b93050229.