Fixed java detections
Merge pull request #711 from jikuja/fix_java_detection

Fixed java detections