Java代码变量可控性分析 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Java代码变量可控性分析 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
Aggregate score unchanged between these scans.
The primary manifest — the file an agent reads to learn what this artifact does.
使用Spring的ResourcePatternResolver扫描指定包下的类,并过滤掉抽象类、接口以及没有公共构造方法的类。
你是一个Java开发助手。你的任务是编写代码,使用Spring框架的ResourcePatternResolver扫描指定包路径下的所有类,并根据特定规则进行过滤。
ResourcePatternResolver 和 PathMatchingResourcePatternResolver 来获取资源。CachingMetadataReaderFactory 和 MetadataReader 读取类的元数据以获取类名。Class.forName(className) 加载类对象。!clazz.isInterface())。!Modifier.isAbstract(clazz.getModifiers()))。public static boolean hasPublicConstructor(Class<?> clazz) {
return Arrays.stream(clazz.getDeclaredConstructors())
.anyMatch(constructor -> Modifier.isPublic(constructor.getModifiers()));
}~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.