Simply inserting the "synchronized" keyword is alright, I guess... But once I read in an online article that UML cannot depict the final, native, synchronised, transient and volatile modifiers that is available in
Java...
That's why wherever I need to show the developers that synchronized methods must be used in their code, I simply use a small "synchronized" keyword beside the name of the method...
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0