private void createLinkNames(final Collection<DuplicateCode> result) {
        if (workspacePath != null) {
            for (FileAnnotation duplication : result) {
                duplication.setPathName(workspacePath);
            }
        }
    }
private void createLinkNames(final Collection<DuplicateCode> result) {
        if (workspacePath != null) {
            for (FileAnnotation duplication : result) {
                duplication.setPathName(workspacePath);
            }
        }
    }
private void createLinkNames ( final Collection < DuplicateCode > result ) { if ( workspacePath != null ) { for ( FileAnnotation duplication : result ) { duplication . setPathName ( workspacePath ) ; } } }
For each duplicate code annotation that does not have a package name
(i.e., for non Java sources), a link name is generated.

@param result the annotations
For each duplicate code annotation that does not have a package name ( i . e . for non Java sources ) a link name is generated .