()
| 20 | } |
| 21 | |
| 22 | public T get() { |
| 23 | Map<ThreadLocal, Object> map = Thread.currentThread().locals(); |
| 24 | Object o = map.get(this); |
| 25 | if (o == null) { |
| 26 | o = initialValue(); |
| 27 | if (o == null) { |
| 28 | o = Null; |
| 29 | } |
| 30 | map.put(this, o); |
| 31 | } |
| 32 | if (o == Null) { |
| 33 | o = null; |
| 34 | } |
| 35 | return (T) o; |
| 36 | } |
| 37 | |
| 38 | public void set(T value) { |
| 39 | Map<ThreadLocal, Object> map = Thread.currentThread().locals(); |
nothing calls this directly
no test coverage detected