I cannot find explicit guidelines in Sun/Oracle code-style, but such approach does not seem to be a good practice.