Commit 25571ff7 by Nepxion

Fix Codacy

parent 552928fa
...@@ -23,6 +23,8 @@ public class GatewayStrategyContext { ...@@ -23,6 +23,8 @@ public class GatewayStrategyContext {
} }
}; };
private ServerWebExchange exchange;
public static GatewayStrategyContext getCurrentContext() { public static GatewayStrategyContext getCurrentContext() {
return THREAD_LOCAL.get(); return THREAD_LOCAL.get();
} }
...@@ -31,8 +33,6 @@ public class GatewayStrategyContext { ...@@ -31,8 +33,6 @@ public class GatewayStrategyContext {
THREAD_LOCAL.remove(); THREAD_LOCAL.remove();
} }
private ServerWebExchange exchange;
public ServerWebExchange getExchange() { public ServerWebExchange getExchange() {
return exchange; return exchange;
} }
......
...@@ -23,6 +23,8 @@ public class RestStrategyContext { ...@@ -23,6 +23,8 @@ public class RestStrategyContext {
} }
}; };
private RequestAttributes requestAttributes;
public static RestStrategyContext getCurrentContext() { public static RestStrategyContext getCurrentContext() {
return THREAD_LOCAL.get(); return THREAD_LOCAL.get();
} }
...@@ -31,8 +33,6 @@ public class RestStrategyContext { ...@@ -31,8 +33,6 @@ public class RestStrategyContext {
THREAD_LOCAL.remove(); THREAD_LOCAL.remove();
} }
private RequestAttributes requestAttributes;
public RequestAttributes getRequestAttributes() { public RequestAttributes getRequestAttributes() {
return requestAttributes; return requestAttributes;
} }
......
...@@ -26,6 +26,8 @@ public class RpcStrategyContext { ...@@ -26,6 +26,8 @@ public class RpcStrategyContext {
} }
}; };
private final Map<String, Object> attributes = new LinkedHashMap<String, Object>();
public static RpcStrategyContext getCurrentContext() { public static RpcStrategyContext getCurrentContext() {
return THREAD_LOCAL.get(); return THREAD_LOCAL.get();
} }
...@@ -34,8 +36,6 @@ public class RpcStrategyContext { ...@@ -34,8 +36,6 @@ public class RpcStrategyContext {
THREAD_LOCAL.remove(); THREAD_LOCAL.remove();
} }
private final Map<String, Object> attributes = new LinkedHashMap<String, Object>();
public RpcStrategyContext add(String key, Object value) { public RpcStrategyContext add(String key, Object value) {
attributes.put(key, value); attributes.put(key, value);
......
...@@ -25,6 +25,8 @@ public class ZuulStrategyContext { ...@@ -25,6 +25,8 @@ public class ZuulStrategyContext {
} }
}; };
private HttpServletRequest request;
public static ZuulStrategyContext getCurrentContext() { public static ZuulStrategyContext getCurrentContext() {
return THREAD_LOCAL.get(); return THREAD_LOCAL.get();
} }
...@@ -33,8 +35,6 @@ public class ZuulStrategyContext { ...@@ -33,8 +35,6 @@ public class ZuulStrategyContext {
THREAD_LOCAL.remove(); THREAD_LOCAL.remove();
} }
private HttpServletRequest request;
public HttpServletRequest getRequest() { public HttpServletRequest getRequest() {
return request; 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