Look for qualified this usages in the same class.
Examples:
Negative example: Long randomLong =(long) (Math.random() * 10); Positive example: Long randomLong = new Random().nextLong();