You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add validation to flag final on @Autowired fields #1782
In addition to the validation that flags @Autowired fields in general (and suggest to convert it to constructor injection), the validation should also create an additional warning if the annotated field is final. Although this is possible at the moment, we strongly recommend not to do this.
In addition to that, future JDK versions will prevent this from working (making final really final), so flagging an extra warning here makes sense.
Activity
GH-1782: new validation to check for final autowired fields