annotations-impl/src/main/java/org/ocpsoft/rewrite/annotation/scan/AbstractClassFinder.java
protected boolean mustProcessClass(String className)
   {

      // skip versioned classes in Java 9 Multi-release JAR files
      if (className.startsWith("META-INF.versions")) {
         return false;
      }

      // the default package
      String packageName = "";

      // find last dot in class name to determine the package name
      int packageEndIndex = className.lastIndexOf(".");
      if (packageEndIndex != -1)
      {
         packageName = className.substring(0, packageEndIndex);
      }

      // check filter
      return packageFilter.isAllowedPackage(packageName);

   }
protected boolean mustProcessClass(String className)
   {

      // skip versioned classes in Java 9 Multi-release JAR files
      if (className.startsWith("META-INF.versions")) {
         return false;
      }

      // the default package
      String packageName = "";

      // find last dot in class name to determine the package name
      int packageEndIndex = className.lastIndexOf(".");
      if (packageEndIndex != -1)
      {
         packageName = className.substring(0, packageEndIndex);
      }

      // check filter
      return packageFilter.isAllowedPackage(packageName);

   }
Checks if a supplied class has to be processed by checking the package name against the {@link PackageFilter}.

@param className FQCN of the class
@return <code>true</code> for classes to process, <code>false</code> for classes to ignore