<BUG>User user = userRepository.findOneByLogin(SecurityUtils.getCurrentUserLogin()).get();</BUG><CONTEXT>user.getAuthorities().size(); // eagerly load the associationreturn user;}@Transactional(readOnly = true)public User getUserWithAuthorities() {<extra_id_0>user.getAuthorities().size(); // eagerly load the associationreturn user;}</CONTEXT>
User user = userRepository.findOneById(SecurityUtils.getCurrentUserId()).get();