[jbossts-issues] [JBoss JIRA] (JBTM-2718) Make CompensatableActionImpl.WorkInfo class static

Gytis Trikleris (JIRA) issues at jboss.org
Wed Aug 3 04:04:00 EDT 2016


Gytis Trikleris created JBTM-2718:
-------------------------------------

             Summary: Make CompensatableActionImpl.WorkInfo class static
                 Key: JBTM-2718
                 URL: https://issues.jboss.org/browse/JBTM-2718
             Project: JBoss Transaction Manager
          Issue Type: Task
          Components: Compensations
            Reporter: Gytis Trikleris
            Priority: Trivial
             Fix For: 5.next


If inner class does not require access to an enclosing instance there should be preffered to use inner static class.
(21902 SIC: Inner class could be made static
This class is an inner class, but does not use its embedded reference to the object which created it.)
As reference I would mention Joshua Bloch: Effective Java, item 22.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbossts-issues mailing list