File tree 1 file changed +12
-6
lines changed
src/main/java/io/securecodebox/persistence/defectdojo/model
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 8
8
9
9
@ Data
10
10
public class ScanFile {
11
+ /**
12
+ * A default name must be set
13
+ * <p>
14
+ * It does not matter however unless the parser pays attention to file endings like json or xml.
15
+ * </p>
16
+ */
17
+ static final String DEFAULT_NAME = "default-name.txt" ;
11
18
12
19
String content ;
13
20
14
- // a default name must be set, it does not matter however
15
- // unless the parser pays attention to file endings like json or xml
16
- String name = "default-name.txt" ;
21
+ String name ;
17
22
18
- public ScanFile (String content ){
19
- this . content = content ;
23
+ public ScanFile (String content ) {
24
+ this ( content , DEFAULT_NAME ) ;
20
25
}
21
26
22
- public ScanFile (String content , String name ){
27
+ public ScanFile (String content , String name ) {
28
+ super ();
23
29
this .content = content ;
24
30
this .name = name ;
25
31
}
You can’t perform that action at this time.
0 commit comments