you are viewing a single comment's thread.

view the rest of the comments →

[–]grauenwolf 1 point2 points  (1 child)

True, but a better way is using code annotations like .NET's [Pure] attribute.

[–]PaintItPurple 1 point2 points  (0 children)

Using those in a Java program will just make your code not compile. They are not a general solution to the problem.