Commit 9422fab7 by Kazuyuki Hida

中途半端だけれど、できるところまでWarningつぶしを行った。

parent 9922d073
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<inspection_tool class="ComparatorMethodParameterNotUsed" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="ComparatorMethodParameterNotUsed" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="CompareToUsesNonFinalVariable" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="CompareToUsesNonFinalVariable" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="ConstantAssertCondition" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="ConstantAssertCondition" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="ConstantConditions" enabled="true" level="ERROR" enabled_by_default="true"> <inspection_tool class="ConstantConditions" enabled="true" level="WARNING" enabled_by_default="true">
<option name="SUGGEST_NULLABLE_ANNOTATIONS" value="false" /> <option name="SUGGEST_NULLABLE_ANNOTATIONS" value="false" />
<option name="DONT_REPORT_TRUE_ASSERT_STATEMENTS" value="false" /> <option name="DONT_REPORT_TRUE_ASSERT_STATEMENTS" value="false" />
</inspection_tool> </inspection_tool>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<inspection_tool class="CovariantCompareTo" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="CovariantCompareTo" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="CovariantEquals" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="CovariantEquals" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="CyclomaticComplexity" enabled="true" level="TODO" enabled_by_default="true"> <inspection_tool class="CyclomaticComplexity" enabled="true" level="TODO" enabled_by_default="true">
<option name="m_limit" value="10" /> <option name="m_limit" value="40" />
</inspection_tool> </inspection_tool>
<inspection_tool class="EmptyInitializer" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="EmptyInitializer" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="EmptyStatementBody" enabled="false" level="ERROR" enabled_by_default="false"> <inspection_tool class="EmptyStatementBody" enabled="false" level="ERROR" enabled_by_default="false">
...@@ -155,6 +155,7 @@ ...@@ -155,6 +155,7 @@
<option name="ignoreEqualsMethod" value="false" /> <option name="ignoreEqualsMethod" value="false" />
<option name="m_limit" value="1" /> <option name="m_limit" value="1" />
</inspection_tool> </inspection_tool>
<inspection_tool class="MultipleVariablesInDeclaration" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="NegatedIfElse" enabled="true" level="ERROR" enabled_by_default="true"> <inspection_tool class="NegatedIfElse" enabled="true" level="ERROR" enabled_by_default="true">
<option name="m_ignoreNegatedNullComparison" value="true" /> <option name="m_ignoreNegatedNullComparison" value="true" />
<option name="m_ignoreNegatedZeroComparison" value="false" /> <option name="m_ignoreNegatedZeroComparison" value="false" />
...@@ -169,7 +170,7 @@ ...@@ -169,7 +170,7 @@
<option name="onlyWarnOnBaseMethods" value="true" /> <option name="onlyWarnOnBaseMethods" value="true" />
</inspection_tool> </inspection_tool>
<inspection_tool class="NonCommentSourceStatements" enabled="true" level="TODO" enabled_by_default="true"> <inspection_tool class="NonCommentSourceStatements" enabled="true" level="TODO" enabled_by_default="true">
<option name="m_limit" value="30" /> <option name="m_limit" value="100" />
</inspection_tool> </inspection_tool>
<inspection_tool class="NonShortCircuitBoolean" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="NonShortCircuitBoolean" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="NullArgumentToVariableArgMethod" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="NullArgumentToVariableArgMethod" enabled="true" level="ERROR" enabled_by_default="true" />
...@@ -239,6 +240,9 @@ ...@@ -239,6 +240,9 @@
<inspection_tool class="SuspiciousNameCombination" enabled="false" level="ERROR" enabled_by_default="false"> <inspection_tool class="SuspiciousNameCombination" enabled="false" level="ERROR" enabled_by_default="false">
<group names="x,width,left,right" /> <group names="x,width,left,right" />
<group names="y,height,top,bottom" /> <group names="y,height,top,bottom" />
<ignored>
<option name="METHOD_MATCHER_CONFIG" value="java.io.PrintStream,println,java.io.PrintWriter,println,java.lang.System,identityHashCode,java.sql.PreparedStatement,set.*,java.sql.ResultSet,update.*,java.sql.SQLOutput,write.*,java.lang.Integer,compare.*,java.lang.Long,compare.*,java.lang.Short,compare,java.lang.Byte,compare,java.lang.Character,compare,java.lang.Boolean,compare,java.lang.Math,.*,java.lang.StrictMath,.*" />
</ignored>
</inspection_tool> </inspection_tool>
<inspection_tool class="SuspiciousSystemArraycopy" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="SuspiciousSystemArraycopy" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="SuspiciousToArrayCall" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="SuspiciousToArrayCall" enabled="true" level="ERROR" enabled_by_default="true" />
......
...@@ -248,6 +248,7 @@ public class DashboardActivity extends OperationActivity { ...@@ -248,6 +248,7 @@ public class DashboardActivity extends OperationActivity {
private class JsInf { private class JsInf {
@SuppressWarnings("unused")
@JavascriptInterface @JavascriptInterface
public void existSetLocation(String ret) { public void existSetLocation(String ret) {
Logger.d(TAG, "existSetLocation=%s", ret); Logger.d(TAG, "existSetLocation=%s", ret);
...@@ -263,6 +264,7 @@ public class DashboardActivity extends OperationActivity { ...@@ -263,6 +264,7 @@ public class DashboardActivity extends OperationActivity {
} }
} }
@SuppressWarnings("unused")
@JavascriptInterface @JavascriptInterface
public void existSendLog(String ret) { public void existSendLog(String ret) {
Logger.d(TAG, "existSendLog=%s", ret); Logger.d(TAG, "existSendLog=%s", ret);
...@@ -282,11 +284,13 @@ public class DashboardActivity extends OperationActivity { ...@@ -282,11 +284,13 @@ public class DashboardActivity extends OperationActivity {
} }
} }
@SuppressWarnings("unused")
@JavascriptInterface @JavascriptInterface
public String getCachePath() { public String getCachePath() {
return getCacheDir().getAbsolutePath(); return getCacheDir().getAbsolutePath();
} }
@SuppressWarnings("unused")
@JavascriptInterface @JavascriptInterface
public void sendParam(String param) { public void sendParam(String param) {
Logger.i(TAG, "sendParam: %s", param); Logger.i(TAG, "sendParam: %s", param);
...@@ -300,6 +304,7 @@ public class DashboardActivity extends OperationActivity { ...@@ -300,6 +304,7 @@ public class DashboardActivity extends OperationActivity {
}); });
} }
@SuppressWarnings("unused")
@JavascriptInterface @JavascriptInterface
public void getAttachedDataUrl(String taskKey, String data) {} public void getAttachedDataUrl(String taskKey, String data) {}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment