Code example for FileLock

Methods: release

0
            return; 
        } 
        assert lockOut_ != null;
         
        try { 
            lock_.release();
        } catch (IOException e) {
            e.printStackTrace();
            return; 
             
        } finally { 
            try { 
                lockOut_.close();
            } catch (Exception e) {
                e.printStackTrace();
            } 
            lock_ = null;
            lockOut_ = null;
        } 
    } 
Connect your IDE to all the code out there  Get Codota for Java