[infinispan-issues] [JBoss JIRA] (ISPN-8515) Allow @Inject on fields

Radim Vansa (JIRA) issues at jboss.org
Wed Nov 8 17:46:00 EST 2017


Radim Vansa created ISPN-8515:
---------------------------------

             Summary: Allow @Inject on fields
                 Key: ISPN-8515
                 URL: https://issues.jboss.org/browse/ISPN-8515
             Project: Infinispan
          Issue Type: Enhancement
          Components: Core
    Affects Versions: 9.2.0.Alpha2
            Reporter: Radim Vansa
            Assignee: Radim Vansa


Right now we require the @Inject annotation to be used only on methods, which should only assign the parameter to a field. Annotating the fields directly would result in less code lines and lower likelihood of typos.

The possible risk is higher startup time; running testsuite w/ and w/o this change should be sufficient to detect that.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list