You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Manifold properties, annotating a field with @val makes the field final.
However, when using that field in a synchronized block, I get a warning message: Synchronization on a non-final field. This warning should be suppressed.
publicclassFoo{
@valObjectobject;
publicFoo(Objectobject){
this.object = object;
}
publicvoiddoSomething(){
synchronized(object){ // <-- Synchronization on a non-final field warning
...
}
}
}
The text was updated successfully, but these errors were encountered:
When using Manifold properties, annotating a field with
@val
makes the field final.However, when using that field in a synchronized block, I get a warning message:
Synchronization on a non-final field
. This warning should be suppressed.The text was updated successfully, but these errors were encountered: