A senior Spring developer is reviewing code that uses @Autowired on a field marked as non-final. What concern should they raise?
-
A
Field injection prevents circular dependency detection
-
B
Field injection hides dependencies and complicates unit testing
-
C
Field injection is forbidden by the Spring specification
-
D
Field injection causes runtime NullPointerExceptions always