[ 
https://issues.apache.org/jira/browse/MDEP-930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elliotte Rusty Harold updated MDEP-930:
---------------------------------------
    Description: 
Should probably use something like Files.readAllLines with a charset or 
equivalent instead here. 

```
        BufferedReader fp1 = new BufferedReader(new FileReader(outputFileName));
        List<String> contents = new ArrayList<>();

        String line;
        while ((line = fp1.readLine()) != null) {
            contents.add(line);
        }
        fp1.close();
```

  was:
Should probably use something like Files.readAllLines witha  charset or 
equivalent instead here. 

```
        BufferedReader fp1 = new BufferedReader(new FileReader(outputFileName));
        List<String> contents = new ArrayList<>();

        String line;
        while ((line = fp1.readLine()) != null) {
            contents.add(line);
        }
        fp1.close();
```


> runTreeMojo in TestTreeMojo ignores encoding
> --------------------------------------------
>
>                 Key: MDEP-930
>                 URL: https://issues.apache.org/jira/browse/MDEP-930
>             Project: Maven Dependency Plugin
>          Issue Type: Test
>            Reporter: Elliotte Rusty Harold
>            Priority: Minor
>
> Should probably use something like Files.readAllLines with a charset or 
> equivalent instead here. 
> ```
>         BufferedReader fp1 = new BufferedReader(new 
> FileReader(outputFileName));
>         List<String> contents = new ArrayList<>();
>         String line;
>         while ((line = fp1.readLine()) != null) {
>             contents.add(line);
>         }
>         fp1.close();
> ```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to