DT-6420:should check previous commit if current head commit haven't any changed java files