Browse Source

Made ThreadLocals generic.

conversation
Arjen Poutsma 16 years ago
parent
commit
aeced8b1a9
  1. 2
      org.springframework.core/src/main/java/org/springframework/core/NamedInheritableThreadLocal.java
  2. 2
      org.springframework.core/src/main/java/org/springframework/core/NamedThreadLocal.java

2
org.springframework.core/src/main/java/org/springframework/core/NamedInheritableThreadLocal.java

@ -26,7 +26,7 @@ import org.springframework.util.Assert; @@ -26,7 +26,7 @@ import org.springframework.util.Assert;
* @since 2.5.2
* @see NamedThreadLocal
*/
public class NamedInheritableThreadLocal extends InheritableThreadLocal {
public class NamedInheritableThreadLocal<T> extends InheritableThreadLocal<T> {
private final String name;

2
org.springframework.core/src/main/java/org/springframework/core/NamedThreadLocal.java

@ -26,7 +26,7 @@ import org.springframework.util.Assert; @@ -26,7 +26,7 @@ import org.springframework.util.Assert;
* @since 2.5.2
* @see NamedInheritableThreadLocal
*/
public class NamedThreadLocal extends ThreadLocal {
public class NamedThreadLocal<T> extends ThreadLocal<T> {
private final String name;

Loading…
Cancel
Save