未验证 提交 a79cb7ec 编写于 作者: S SeanCai 提交者: GitHub

Merge pull request #252 from LQZYC/master

修改提示信息
......@@ -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.
先完成此消息的编辑!
想要评论请 注册