Skip to content

Commit

Permalink
correct typos,and remove some unnecessary 'public' method modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankBian committed Dec 29, 2018
1 parent acc4e33 commit b7e0f34
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static ConfigService createConfigService(Properties properties) throws Na
/**
* Create Config
*
* @param serverAddr serverlist
* @param serverAddr serverList
* @return Config
* @throws NacosException Exception
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public interface IConfigContext {
* @param key
* @return context
*/
public Object getParameter(String key);
Object getParameter(String key);

/**
* set context
*
* @param key key
* @param value value
*/
public void setParameter(String key, Object value);
void setParameter(String key, Object value);
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
public interface IConfigFilter {
/**
* Init Fuction
* Init Function
*
* @param filterConfig Filter Config
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
*/
public interface IConfigFilterChain {
/**
* Filter aciton
* Filter action
*
* @param request request
* @param response response
* @throws NacosException NacosException
*/
public void doFilter(IConfigRequest request, IConfigResponse response) throws NacosException;
void doFilter(IConfigRequest request, IConfigResponse response) throws NacosException;

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public interface IConfigRequest {
* @param key key
* @return value
*/
public Object getParameter(String key);
Object getParameter(String key);

/**
* get config context
*
* @return
*/
public IConfigContext getConfigContext();
IConfigContext getConfigContext();

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public interface IConfigResponse {
* @param key key
* @return value
*/
public Object getParameter(String key);
Object getParameter(String key);

/**
* get context
*
* @return configContext
*/
public IConfigContext getConfigContext();
IConfigContext getConfigContext();

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public interface IFilterConfig {
*
* @return
*/
public String getFilterName();
String getFilterName();

/**
* get param
*
* @param name
* @return param
*/
public Object getInitParameter(String name);
Object getInitParameter(String name);

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public abstract class AbstractListener implements Listener {
/**
* use default Executor
*/
@Override
public Executor getExecutor() {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
public interface Listener {

/**
* Executor to excute this receive
* Executor to execute this receive
*
* @return Executor
*/
public Executor getExecutor();
Executor getExecutor();

/**
* 接收配置信息
*
* @param configInfo 配置值
*/
public void receiveConfigInfo(final String configInfo);
void receiveConfigInfo(final String configInfo);
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void main(String[] args) throws NacosException, InterruptedExcepti
configService.addListener(dataId, group, new Listener() {
@Override
public void receiveConfigInfo(String configInfo) {
System.out.println("recieve:" + configInfo);
System.out.println("receive:" + configInfo);
}

@Override
Expand Down

0 comments on commit b7e0f34

Please sign in to comment.