multithreading - Java Reflection and thread-safety -


i've got methods reflect class, e.g.:

type.getmethods() method.getannotation(annotationclass) method.getparametertypes() method.getparameterannotations()[paramindex]; method.getparametertypes()[paramindex]; 

the application multi-threaded. safe call these methods without locking in place?

it safe because don't change anything.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -