Commit 25571ff7 by Nepxion

Fix Codacy

parent 552928fa
......@@ -23,6 +23,8 @@ public class GatewayStrategyContext {
}
};
private ServerWebExchange exchange;
public static GatewayStrategyContext getCurrentContext() {
return THREAD_LOCAL.get();
}
......@@ -31,8 +33,6 @@ public class GatewayStrategyContext {
THREAD_LOCAL.remove();
}
private ServerWebExchange exchange;
public ServerWebExchange getExchange() {
return exchange;
}
......
......@@ -23,6 +23,8 @@ public class RestStrategyContext {
}
};
private RequestAttributes requestAttributes;
public static RestStrategyContext getCurrentContext() {
return THREAD_LOCAL.get();
}
......@@ -31,8 +33,6 @@ public class RestStrategyContext {
THREAD_LOCAL.remove();
}
private RequestAttributes requestAttributes;
public RequestAttributes getRequestAttributes() {
return requestAttributes;
}
......
......@@ -26,6 +26,8 @@ public class RpcStrategyContext {
}
};
private final Map<String, Object> attributes = new LinkedHashMap<String, Object>();
public static RpcStrategyContext getCurrentContext() {
return THREAD_LOCAL.get();
}
......@@ -34,8 +36,6 @@ public class RpcStrategyContext {
THREAD_LOCAL.remove();
}
private final Map<String, Object> attributes = new LinkedHashMap<String, Object>();
public RpcStrategyContext add(String key, Object value) {
attributes.put(key, value);
......
......@@ -25,6 +25,8 @@ public class ZuulStrategyContext {
}
};
private HttpServletRequest request;
public static ZuulStrategyContext getCurrentContext() {
return THREAD_LOCAL.get();
}
......@@ -33,8 +35,6 @@ public class ZuulStrategyContext {
THREAD_LOCAL.remove();
}
private HttpServletRequest request;
public HttpServletRequest getRequest() {
return request;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment