Side effect free methods in Java standard library
I'm working on Java programs that need information about the side effects of method calls For standard library classes, I want to compile a list of methods with read - only parameters That is, methods that do not modify parameters, or any methods that can be accessed from parameters I can infer a lot from JavaDocs, but it takes time
Can someone suggest an easier reference or method to determine whether standard method calls modify their parameters? Is it really the best way to read each Javadoc entry?
thank you!
Edit: rewards will be a way to identify objects that have no side effects For example, stack Pop () will, while stack Size () does not
Solution
Well, all methods that take only primitive type / string / object / generic type as parameters should satisfy you without further consideration For Java Lang and Java Util, which should cover most methods
But you'd better limit the packages you want to handle, because the standard JDK provides a huge class library for all tasks and purposes
Edit the generic type declared as e extensions modifiable object, which is a little vague, so please take a look for yourself