Java


JAVA.STRUCT.UC.INSTR : Unreachable Instruction (Java)

要旨

An instruction will never be executed.

Methods or constructors never used in the code are often harmless, except for an increase in size of the application. In some cases, however, unused methods are the sign of a stale application interface that needs cleaning or of the necessity to introduce an abstract method.

プロパティ

クラス名 Unreachable Instruction (Java)
日本語クラス名 Unreachable Instruction (Java)
クラス分類 信頼性 (reliability)
ニーモニック JAVA.STRUCT.UC.INSTR
カテゴリー
CWE CWE:561 Dead Code
対応言語 Java で利用可能です。
有効/無効設定 このワーニングクラスのチェックはデフォルトで有効になっています。チェックを無効にするにはプロジェクト設定ファイル (configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += discard class="Unreachable Instruction (Java)"

解決法

Verify if the application interface can be simplified or an abstract method could replace a non-abstract method.

関連のある設定ファイルパラメータ

設定ファイルの以下のパラメータがこのワーニングクラスのチェックに影響します。