small sonar fixes of java module