Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsynchronized get method, synchronized set method #316

Open
GoogleCodeExporter opened this issue May 5, 2015 · 1 comment
Open

Unsynchronized get method, synchronized set method #316

GoogleCodeExporter opened this issue May 5, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I have V2.1 sources.

The class ReferenceEncryptedProperties.java has a synchronized setter and one 
of the two getters is also synchronized.  The second setter should also be 
synchronized for well behaved synchronization.

The corrected method signature follows:

public synchronized String getProperty(String key, String defaultValue) throws 
EncryptionRuntimeException {

Original issue reported on code.google.com by [email protected] on 26 Nov 2013 at 7:57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant