Findbugs violation: AuditEvent.message is transient but isn't set by deserialization. #909

This commit is contained in:
Roman Ivanov 2015-05-15 17:04:32 -07:00
parent cd6f271a6b
commit e6034ec381
2 changed files with 1 additions and 6 deletions

View File

@ -37,11 +37,6 @@
<Class name="com.puppycrawl.tools.checkstyle.checks.UniquePropertiesCheck$UniqueProperties" />
<Bug pattern="EQ_DOESNT_OVERRIDE_EQUALS" />
</Match>
<Match>
<!-- till #909 -->
<Class name="com.puppycrawl.tools.checkstyle.api.AuditEvent" />
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
</Match>
<Match>
<!-- false-postive, as Map will return null if key is not found -->
<Class name="com.puppycrawl.tools.checkstyle.checks.indentation.LineWrappingHandler" />

View File

@ -47,7 +47,7 @@ public final class AuditEvent
/** filename event associated with **/
private final String fileName;
/** message associated with the event **/
private final transient LocalizedMessage message;
private final LocalizedMessage message;
/**
* Creates a new instance.