File tree 6 files changed +13
-75
lines changed
main/java/com/scanoss/filters
6 files changed +13
-75
lines changed Original file line number Diff line number Diff line change 39
39
*
40
40
*/
41
41
public class AntFilter {
42
- List <String > patterns ;
42
+ private final List <String > patterns ;
43
43
44
44
/**
45
45
* Constructs an AntFilter with the specified list of patterns.
Original file line number Diff line number Diff line change 26
26
import java .nio .file .Path ;
27
27
import java .util .function .Predicate ;
28
28
29
- @ Slf4j
29
+
30
30
/**
31
31
* An abstract base class that provides core filtering functionality for the SCANOSS filtering system.
32
32
*/
33
+ @ Slf4j
33
34
public abstract class BaseFilter {
34
35
protected final FilterConfig config ;
35
- protected GitIgnoreFilter gitIgnoreFilter ;
36
- protected AntFilter antFilter ;
37
- protected Predicate <Path > baseSkipFilter ;
36
+ protected final GitIgnoreFilter gitIgnoreFilter ;
37
+ protected final AntFilter antFilter ;
38
+ protected final Predicate <Path > baseSkipFilter ;
38
39
39
40
/**
40
41
* Constructs a BaseFilter with the specified configuration.
Original file line number Diff line number Diff line change 35
35
public class FilterConfig {
36
36
37
37
@ Builder .Default
38
- private List <String > gitIgnorePatterns = new ArrayList <>();
38
+ private final List <String > gitIgnorePatterns = new ArrayList <>();
39
39
40
40
@ Builder .Default
41
- private List <String > antPatterns = new ArrayList <>();
41
+ private final List <String > antPatterns = new ArrayList <>();
42
42
43
43
@ Builder .Default
44
- private Boolean hiddenFilesFolders = false ;
44
+ private final Boolean hiddenFilesFolders = false ;
45
45
46
46
@ Builder .Default
47
- private Boolean allFilesFolders = false ;
47
+ private final Boolean allFilesFolders = false ;
48
48
49
49
@ Builder .Default
50
- private Boolean allFolders = false ;
50
+ private final Boolean allFolders = false ;
51
51
52
52
@ Builder .Default
53
- private Boolean allExtensions = false ;
53
+ private final Boolean allExtensions = false ;
54
54
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 31
31
32
32
import java .io .FileWriter ;
33
33
import java .io .IOException ;
34
- import java .sql .Array ;
35
34
import java .util .ArrayList ;
36
35
import java .util .Arrays ;
37
36
import java .util .List ;
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public void testSettingsFromExistingFile() {
87
87
}
88
88
89
89
@ Test
90
- public void testSettingsFromNonExistentFile () throws IOException {
90
+ public void testSettingsFromNonExistentFile () {
91
91
String methodName = new Object () {
92
92
}.getClass ().getEnclosingMethod ().getName ();
93
93
log .info ("<-- Starting {}" , methodName );
You can’t perform that action at this time.
0 commit comments