提交 a759051d 编写于 作者: 昶乐

修改提示信息

上级 1ef434c1
......@@ -30,7 +30,7 @@
<![CDATA[变量名【%s】不符合lowerCamelCase命名风格]]>
</entry>
<entry key="java.naming.PackageNamingRule.violation.msg">
<![CDATA[包名【%s】应全部小写]]>
<![CDATA[包名【%s】应全部为小写字母和数字组成]]>
</entry>
<entry key="java.naming.ServiceOrDaoClassShouldEndWithImplRule.violation.msg">
<![CDATA[类名【%s】应以Impl结尾]]>
......
......@@ -33,4 +33,30 @@
<expected-problems>0</expected-problems>
<code-ref id="ArrayTypeStyleTest1" />
</test-code>
<code-fragment id="ArrayTypeStyleTest2">
<![CDATA[
public class ArrayTypeStyleTest{
public void ConfParse(String str){
TreeMap<String, String> mapConfKeyValue = new TreeMap<>();
String[] params = str.split("&");
for (String param : params) {
String fields[] = param.split("=");
if (fields.length != 2) {
continue;
}
String key = fields[0].trim();
String value = fields[1].trim();
mapConfKeyValue.put(key, value);
}
}
}
]]>
</code-fragment>
<test-code>
<description>array should be array[]</description>
<expected-problems>1</expected-problems>
<expected-linenumbers>6</expected-linenumbers>
<code-ref id="ArrayTypeStyleTest2" />
</test-code>
</test-data>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册