mehb-groww / test2

Spring component introduces unmanaged state JAVA-S1060
Security
Critical
a year agoa year old
random should be annotated with @Autowired, @Value, @Inject, or @Resource
 28	private SessionService sessService;
 29	//for pbkdf later
 30	
 31    public RandomNumberGenerator random; 32
 33    public char[] symbols;
 34
symbols should be annotated with @Autowired, @Value, @Inject, or @Resource
 30	
 31    public RandomNumberGenerator random;
 32
 33    public char[] symbols; 34
 35    public char[] buf;
 36    
buf should be annotated with @Autowired, @Value, @Inject, or @Resource
 32
 33    public char[] symbols;
 34
 35    public char[] buf; 36    
 37	 public String nextString() {
 38	        for (int idx = 0; idx < buf.length; ++idx)
manager should be annotated with @Autowired, @Value, @Inject, or @Resource
 20
 21    @Autowired
 22    private JdbcTemplate jdbcTemplate;
 23    private EntityManager manager; 24
 25    @Autowired
 26    SecuritySettings secSetting;
manager should be annotated with @Autowired, @Value, @Inject, or @Resource
14public class SessionRepository {
15	@Autowired
16    private JdbcTemplate jdbcTemplate;
17    private EntityManager manager;18    public List<Session> findByID(int userID){
19    	try {
20    		List <Session> result= jdbcTemplate.query("SELECT * FROM session WHERE userID=?",