commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BCEL-265) Use AssertionError rather than RuntimeException for code that should not be reached
Date Sat, 12 Sep 2015 11:49:45 GMT
Sebb created BCEL-265:
-------------------------

             Summary: Use AssertionError rather than RuntimeException for code that should
not be reached
                 Key: BCEL-265
                 URL: https://issues.apache.org/jira/browse/BCEL-265
             Project: Commons BCEL
          Issue Type: Improvement
            Reporter: Sebb
            Priority: Minor


The code has plenty of checks for conditions that cannot be reached, e.g. default switch cases.

Many of these use RuntimeException, it would make more sense to use AssertionError instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message