[qos-ch/logback] 438d0d: added static and final modifier to PreSerializatio...

Branch: refs/heads/master Home: https://github.com/qos-ch/logback Commit: 438d0d284cf407e1373e9c9c4217061edd15615c https://github.com/qos-ch/logback/commit/438d0d284cf407e1373e9c9c4217061edd1... Author: Carl Harris <ceharris@vt.edu> Date: 2013-04-27 (Sat, 27 Apr 2013) Changed paths: M logback-classic/src/main/java/ch/qos/logback/classic/net/SocketAppender.java Log Message: ----------- added static and final modifier to PreSerializationTransformer field The LoggingEventPreSerializationTransformer is completely stateless and therefore inherently thread-safe. Therefore, there is no reason to create a distinct instance for each appender. Moreover, once created it never needs to be modified, therefore it should be properly marked as immutable via the final keyword.
participants (1)
-
Carl Harris