refactor(naming): Modify the inheritance of NoneSelector class

This commit is contained in:
chuntaojun 2019-04-30 19:08:16 +08:00
parent f2c046a395
commit 1b76780cd1

View File

@ -15,8 +15,6 @@
*/ */
package com.alibaba.nacos.naming.selector; package com.alibaba.nacos.naming.selector;
import com.alibaba.nacos.api.selector.AbstractSelector;
import com.alibaba.nacos.api.selector.SelectorType;
import com.alibaba.nacos.naming.core.Instance; import com.alibaba.nacos.naming.core.Instance;
import java.util.List; import java.util.List;
@ -27,11 +25,7 @@ import java.util.List;
* @author nkorange * @author nkorange
* @since 0.7.0 * @since 0.7.0
*/ */
public class NoneSelector extends AbstractSelector implements Selector { public class NoneSelector extends com.alibaba.nacos.api.selector.NoneSelector implements Selector {
public NoneSelector() {
this.setType(SelectorType.none.name());
}
@Override @Override
public List<Instance> select(String consumer, List<Instance> providers) { public List<Instance> select(String consumer, List<Instance> providers) {