Changed java complete pattern