Skip to content

Commit 78a7a41

Browse files
committed
Add Constructor for ScanFile
1 parent 662dae7 commit 78a7a41

File tree

1 file changed

+9
-0
lines changed
  • src/main/java/io/securecodebox/persistence/defectdojo/models

1 file changed

+9
-0
lines changed

src/main/java/io/securecodebox/persistence/defectdojo/models/ScanFile.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,13 @@ public class ScanFile {
1111
// unless the parser pays attention to file endings like json or xml
1212
String name = "default-name.txt";
1313

14+
public ScanFile(String content){
15+
this.content = content;
16+
}
17+
18+
public ScanFile(String content, String name){
19+
this.content = content;
20+
this.name = name;
21+
}
22+
1423
}

0 commit comments

Comments
 (0)