I have an interface
public interface LdapConnectionFactory {
LdapConnectionWrapper getConnectionWrapper() throws LDAPException;
}
and the implementation class LdapConnectionFactoryImpl
which implements the getConnectionWrapper()
method.
public class LdapConnectionFactoryImpl implements LdapConnectionFactory {
...
public LdapConnectionWrapper getConnectionWrapper() throws LDAPException {
...
}
}
When I ran checkstyle, it flags the getConnectionWrapper()
as error - Method 'getConnectionWrapper' is not designed for extension - needs to be abstract, final or empty.
Any advice? Thanks.