Commit de8cec4b authored by Danilo Ansaloni's avatar Danilo Ansaloni

Added synchronization to getState(...) methods.

parent dc33570a
......@@ -39,12 +39,12 @@ public class ShadowObject implements Formattable {
}
public Object getState () {
public synchronized Object getState () {
return shadowState;
}
public <T> T getState (final Class <T> type) {
public synchronized <T> T getState (final Class <T> type) {
return type.cast (shadowState);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment