@@ -53,7 +53,7 @@ public class DefaultPluginFinder implements PluginFinder {
53
53
/** Class loader to use when querying the annotation indexes. */
54
54
private final ClassLoader customClassLoader ;
55
55
56
- private final PluginBlacklist blacklist ;
56
+ private final PluginBlocklist blocklist ;
57
57
58
58
// -- Constructors --
59
59
@@ -63,7 +63,7 @@ public DefaultPluginFinder() {
63
63
64
64
public DefaultPluginFinder (final ClassLoader classLoader ) {
65
65
customClassLoader = classLoader ;
66
- blacklist = new SysPropBlacklist ();
66
+ blocklist = new SysPropBlocklist ();
67
67
}
68
68
69
69
// -- PluginFinder methods --
@@ -82,7 +82,7 @@ public HashMap<String, Throwable> findPlugins(
82
82
83
83
// create a PluginInfo object for each item in the index
84
84
for (final IndexItem <Plugin > item : annotationIndex ) {
85
- if (blacklist .contains (item .className ())) continue ;
85
+ if (blocklist .contains (item .className ())) continue ;
86
86
try {
87
87
final PluginInfo <?> info = createInfo (item , classLoader );
88
88
plugins .add (info );
@@ -117,23 +117,23 @@ private ClassLoader getClassLoader() {
117
117
118
118
// -- Helper classes --
119
119
120
- private interface PluginBlacklist {
120
+ private interface PluginBlocklist {
121
121
boolean contains (String className );
122
122
}
123
123
124
124
/**
125
- * A blacklist defined by the {@code scijava.plugin.blacklist } system
125
+ * A blocklist defined by the {@code scijava.plugin.blocklist } system
126
126
* property, formatted as a colon-separated list of regexes.
127
127
* <p>
128
128
* If a plugin class matches any of the regexes, it is excluded from the
129
129
* plugin index.
130
130
* </p>
131
131
*/
132
- private class SysPropBlacklist implements PluginBlacklist {
132
+ private class SysPropBlocklist implements PluginBlocklist {
133
133
private final List <Pattern > patterns ;
134
134
135
- public SysPropBlacklist () {
136
- final String sysProp = System .getProperty ("scijava.plugin.blacklist " );
135
+ public SysPropBlocklist () {
136
+ final String sysProp = System .getProperty ("scijava.plugin.blocklist " );
137
137
final String [] regexes = //
138
138
sysProp == null ? new String [0 ] : sysProp .split (":" );
139
139
patterns = new ArrayList <>(regexes .length );
@@ -147,7 +147,7 @@ public SysPropBlacklist() {
147
147
}
148
148
}
149
149
150
- // -- PluginBlacklist methods --
150
+ // -- PluginBlocklist methods --
151
151
152
152
@ Override
153
153
public boolean contains (final String className ) {
0 commit comments