private void cacheNameInternal ( INode inode ) { // Name is cached only for files if ( inode . isDirectory ( ) ) { return ; } ByteArray name = new ByteArray ( inode . getLocalNameBytes ( ) ) ; name = nameCache . put ( name ) ; if ( name != null ) { inode . setLocalName ( name . getBytes ( ) ) ; } }
Adds cached entry to the map and updates INode