jodd-core/src/main/java/jodd/util/cl/ClassLoaderLocal.java
public synchronized void set(final T value) {

		ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();

		if (contextClassLoader != null) {
			weakMap.put(contextClassLoader, value);
			return;
		}

		this.value = value;
		this.initialized = true;
	}
public synchronized void set(final T value) {

		ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();

		if (contextClassLoader != null) {
			weakMap.put(contextClassLoader, value);
			return;
		}

		this.value = value;
		this.initialized = true;
	}
public synchronized void set ( final T value ) { ClassLoader contextClassLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; if ( contextClassLoader != null ) { weakMap . put ( contextClassLoader , value ) ; return ; } this . value = value ; this . initialized = true ; }
Sets the current classloaders's copy of this variable to the specified value.
Most subclasses will have no need to override this method, relying solely on the initialValue()
method to set the values of classloader-locals.
Sets the current classloaders s copy of this variable to the specified value . Most subclasses will have no need to override this method relying solely on the initialValue () method to set the values of classloader - locals .