Skip to content

Commit

Permalink
trim
Browse files Browse the repository at this point in the history
  • Loading branch information
kadirayk committed Jun 7, 2023
1 parent 05e0793 commit c3bbdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/resource/FileConnector.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class FileConnector {
public static List<String> getMethodSignatures(String path){
List<String> result = null;
try (Stream<String> lines = Files.lines(Paths.get(path))) {
result = lines.collect(Collectors.toList());
result = lines.map(l->l.trim()).collect(Collectors.toList());
}catch (IOException e){
e.printStackTrace();
}
Expand Down

0 comments on commit c3bbdc2

Please sign in to comment.