[ 
https://issues.apache.org/jira/browse/CAMEL-6435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13740825#comment-13740825
 ] 

Babak Vahdat commented on CAMEL-6435:
-------------------------------------

I also removed the {{transient}} modifier even by the loggers declared as 
instance variables as since SLF4J version 1.5.3 the logger instances survive 
serialization so that when using a deserialized class object we prefer to avoid 
a NPE when the given logger instance variable is accessed inside the logic of 
the encapsulating object, owning the logger instance variable itself. For more 
details see the "Logger serialization" paragraph here:

http://slf4j.org/faq.html#declared_static

                
> Remove obsolete 'transient' modifier from static fields
> -------------------------------------------------------
>
>                 Key: CAMEL-6435
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6435
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.11.0
>            Reporter: Henryk Konsek
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.12.0
>
>
> In many places within the Camel code base we can find static fields with 
> transient modifier. Static fields are automatically transient, so the latter 
> declaration is obsolete.
> We should clean the code base from the obsolete transient keywords.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to