Code example for AtomicReference

Methods: get

0
    } 
 
    public MavenSession getSession() 
    { 
        AtomicReference<MavenSession> currentSession = DefaultLegacySupport.SESSION.get();
        return currentSession != null ? currentSession.get() : null;
    } 
 
    public RepositorySystemSession getRepositorySession() 
    { 
        MavenSession session = getSession();
        return ( session != null ) ? session.getRepositorySession() : null;
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java