the writeRecord() method is a private method of the Data clas. It is only called by the public methods of the Data class, which are synchronized. Therefore, since it will always be called from a synchronized code block, there is no need to synchronize this method. Vlad
posted 19 years ago
Thanks Vladimir. But so is the readRecord method. It is private too, but it is synchronized. Isn't this inconsistent, if nothing else, from a style viewpoint?
All that thinking. Doesn't it hurt? What do you think about this tiny ad?