Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Spotbugs过滤器类名称后缀_Java_Regex_Xml_Spotbugs - Fatal编程技术网

Java Spotbugs过滤器类名称后缀

Java Spotbugs过滤器类名称后缀,java,regex,xml,spotbugs,Java,Regex,Xml,Spotbugs,如果你喜欢这样的斑点虫 <?xml version="1.0" encoding="UTF-8"?> <FindBugsFilter xmlns="https://github.com/spotbugs/filter/3.0. ..."> <Match><Class name="de.test.Test.ClassASuffix" /></Match> </FindBugsFilter> 如何筛选出所有

如果你喜欢这样的斑点虫

  <?xml version="1.0" encoding="UTF-8"?>
  <FindBugsFilter xmlns="https://github.com/spotbugs/filter/3.0. ..."> 
   <Match><Class name="de.test.Test.ClassASuffix" /></Match>
  </FindBugsFilter>
如何筛选出所有带有*后缀的类

我已经试过了。(如
*Test“
)但它就是不起作用。

这是有效的:

<Match><Class name="~.*?Suffix.*" /></Match>

尝试
*\.Test\..*
*后缀
第二个不起作用。我没有测试第一个,因为Test.Test中有我要检查的类。
<Match><Class name="~.*?Suffix.*" /></Match>