@@ -53,7 +53,7 @@ public class DefaultPluginFinder implements PluginFinder {
5353 /** Class loader to use when querying the annotation indexes. */
5454 private final ClassLoader customClassLoader ;
5555
56- private final PluginBlacklist blacklist ;
56+ private final PluginBlocklist blocklist ;
5757
5858 // -- Constructors --
5959
@@ -63,7 +63,7 @@ public DefaultPluginFinder() {
6363
6464 public DefaultPluginFinder (final ClassLoader classLoader ) {
6565 customClassLoader = classLoader ;
66- blacklist = new SysPropBlacklist ();
66+ blocklist = new SysPropBlocklist ();
6767 }
6868
6969 // -- PluginFinder methods --
@@ -82,7 +82,7 @@ public HashMap<String, Throwable> findPlugins(
8282
8383 // create a PluginInfo object for each item in the index
8484 for (final IndexItem <Plugin > item : annotationIndex ) {
85- if (blacklist .contains (item .className ())) continue ;
85+ if (blocklist .contains (item .className ())) continue ;
8686 try {
8787 final PluginInfo <?> info = createInfo (item , classLoader );
8888 plugins .add (info );
@@ -117,23 +117,23 @@ private ClassLoader getClassLoader() {
117117
118118 // -- Helper classes --
119119
120- private interface PluginBlacklist {
120+ private interface PluginBlocklist {
121121 boolean contains (String className );
122122 }
123123
124124 /**
125- * A blacklist defined by the {@code scijava.plugin.blacklist } system
125+ * A blocklist defined by the {@code scijava.plugin.blocklist } system
126126 * property, formatted as a colon-separated list of regexes.
127127 * <p>
128128 * If a plugin class matches any of the regexes, it is excluded from the
129129 * plugin index.
130130 * </p>
131131 */
132- private class SysPropBlacklist implements PluginBlacklist {
132+ private class SysPropBlocklist implements PluginBlocklist {
133133 private final List <Pattern > patterns ;
134134
135- public SysPropBlacklist () {
136- final String sysProp = System .getProperty ("scijava.plugin.blacklist " );
135+ public SysPropBlocklist () {
136+ final String sysProp = System .getProperty ("scijava.plugin.blocklist " );
137137 final String [] regexes = //
138138 sysProp == null ? new String [0 ] : sysProp .split (":" );
139139 patterns = new ArrayList <>(regexes .length );
@@ -147,7 +147,7 @@ public SysPropBlacklist() {
147147 }
148148 }
149149
150- // -- PluginBlacklist methods --
150+ // -- PluginBlocklist methods --
151151
152152 @ Override
153153 public boolean contains (final String className ) {
0 commit comments