java - How do I suppress warning "Synchronization on a non-final field" -
is possible suppress kind of warning?
note: not looking suppressing warnings(like @suppresswarnings("all")
), mentioned type.
for intellij, put annotation on class has warnings
@suppresswarnings("synchronizeonnonfinalfield")
this lead me tag use suppression , trial , error lead me put on class instead of on field or synchronized statement. :-p
Comments
Post a Comment