You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2020/12/24 15:25:00 UTC

[jira] [Created] (SCM-950) Passing file as key to a map of strings

Elliotte Rusty Harold created SCM-950:
-----------------------------------------

             Summary: Passing file as key to a map of strings
                 Key: SCM-950
                 URL: https://issues.apache.org/jira/browse/SCM-950
             Project: Maven SCM
          Issue Type: Bug
            Reporter: Elliotte Rusty Harold


Line 95 in BazaarUpdateCommand passes the wrong type as a key:

{{}}{{ Map<String, CharSequence> diffChanges = diffConsumer.getDifferences();}}
{{ for ( Iterator<ScmFile> it = diffFiles.iterator(); it.hasNext(); )}}
{{ {}}
{{ ScmFile file = it.next();}}
{{ changes.add( diffChanges.get( file ) );}}
{{ if ( file.getStatus() == ScmFileStatus.MODIFIED )}}
{{ {}}
{{ updatedFiles.add( new ScmFile( file.getPath(), ScmFileStatus.PATCHED ) );}}
{{ }}}
{{ else}}
{{ {}}
{{ updatedFiles.add( file );}}
{{ }}}
{{ }}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)