[3.4.0-map-sdk] code style
This commit is contained in:
@@ -25,8 +25,6 @@
|
||||
<!-- </properties>-->
|
||||
<!-- </rule>-->
|
||||
|
||||
<!-- 应避免重新分配catch语句中捕获的异常变量 -->
|
||||
<rule ref="category/java/bestpractices.xml/AvoidReassigningCatchVariables" />
|
||||
<!-- StringBuffers/StringBuilders可能会大幅增长,因此如果保存在寿命较长的对象中,可能会成为内存泄漏的来源 -->
|
||||
<rule ref="category/java/bestpractices.xml/AvoidStringBufferField" />
|
||||
<!-- 在同一行中声明多个变量,会比较混乱 -->
|
||||
@@ -44,9 +42,7 @@
|
||||
</rule>
|
||||
<!-- 检查未使用的局部变量 -->
|
||||
<rule ref="category/java/bestpractices.xml/UnusedLocalVariable" />
|
||||
<!-- 检查未使用的private变量 -->
|
||||
<!-- <rule ref="category/java/bestpractices.xml/UnusedPrivateField" />-->
|
||||
<rule ref="category/java/bestpractices.xml/UseStandardCharsets" />
|
||||
<!-- <rule ref="category/java/bestpractices.xml/UseStandardCharsets" />-->
|
||||
|
||||
<!-- 容易出现运行时错误 -->
|
||||
<rule ref="category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop" />
|
||||
|
||||
Reference in New Issue
Block a user