Formatting for java cpp components