Remove @Override from Interfaces

This is necessary to ensure the code compiles in Eclipse.

Fixes gh-83
This commit is contained in:
Rob Winch
2014-12-22 16:34:27 -06:00
parent 873f4bacd6
commit b3130edd98
20 changed files with 0 additions and 75 deletions

View File

@@ -38,13 +38,11 @@ public class EmbeddedRedisConfig {
private RedisServer redisServer;
@Override
public void afterPropertiesSet() throws Exception {
redisServer = new RedisServer(Protocol.DEFAULT_PORT);
redisServer.start();
}
@Override
public void destroy() throws Exception {
if(redisServer != null) {
redisServer.stop();

View File

@@ -43,7 +43,6 @@ public class UserRepositoryUserDetailsService implements UserDetailsService {
/* (non-Javadoc)
* @see org.springframework.security.core.userdetails.UserDetailsService#loadUserByUsername(java.lang.String)
*/
@Override
public UserDetails loadUserByUsername(String username)
throws UsernameNotFoundException {
User user = userRepository.findByEmail(username);
@@ -59,32 +58,26 @@ public class UserRepositoryUserDetailsService implements UserDetailsService {
super(user);
}
@Override
public Collection<? extends GrantedAuthority> getAuthorities() {
return AuthorityUtils.createAuthorityList("ROLE_USER");
}
@Override
public String getUsername() {
return getEmail();
}
@Override
public boolean isAccountNonExpired() {
return true;
}
@Override
public boolean isAccountNonLocked() {
return true;
}
@Override
public boolean isCredentialsNonExpired() {
return true;
}
@Override
public boolean isEnabled() {
return true;
}

View File

@@ -38,7 +38,6 @@ public class WebSocketConnectHandler<S> implements ApplicationListener<SessionCo
this.repository = repository;
}
@Override
public void onApplicationEvent(SessionConnectEvent event) {
MessageHeaders headers = event.getMessage().getHeaders();
Principal user = SimpMessageHeaderAccessor.getUser(headers);

View File

@@ -34,7 +34,6 @@ public class WebSocketDisconnectHandler<S> implements ApplicationListener<Sessio
this.repository = repository;
}
@Override
public void onApplicationEvent(SessionDisconnectEvent event) {
String id = event.getSessionId();
if(id == null) {