public synchronized void rename ( String oldName , String newName ) throws IOException { boolean touched = false ; if ( original != null ) { if ( original . getName ( ) . equals ( oldName ) ) { original . setName ( newName ) ; touched = true ; } } if ( usages != null ) { RangeSet r = usages . get ( oldName ) ; if ( r != null ) { usages . put ( newName , r ) ; usages . remove ( oldName ) ; touched = true ; } } if ( touched ) { save ( ) ; } }
Update references to a renamed job in the fingerprint