WALA/com.ibm.wala.core/src/com/ibm/wala
Ben Liblit ab791f8c41 Throw a loud exception if switch encounters unexpected enum value
Previously each of these `switch` statements would implicitly do
nothing if an unanticipated `enum` value came along.  My impression is
that each of these `switch` statements is supposed to be exhaustive,
such that an unexpected (unhandled) value should never appear.  If one
does, we should recognize it and complain loudly.

Of course, sometimes the right behavior for previously-unhandled
values is to do nothing.  It may not always be clear whether an
exception or doing nothing is the right choice.  For this commit,
WALA's regression tests still pass even with the possibility of
throwing an exception for unexpected values.  If we assume that the
test suite is thorough, that tells me that throwing an exception is
the right policy for each `switch` statement that I'm changing here.
2017-08-15 14:55:34 -07:00
..
analysis Throw a loud exception if switch encounters unexpected enum value 2017-08-15 14:55:34 -07:00
cfg Throw a loud exception if switch encounters unexpected enum value 2017-08-15 14:55:34 -07:00
classLoader Suppress some unchecked-cast warnings we cannot avoid 2017-08-15 09:16:59 -07:00
client merge 2017-05-07 19:51:30 -04:00
core/plugin more conversion to Unix line endings 2012-09-04 15:59:50 -07:00
dataflow Add static private serialVersionUID fields to Serializable classes 2017-08-05 13:30:35 -07:00
demandpa Add static private serialVersionUID fields to Serializable classes 2017-08-05 13:30:35 -07:00
escape Generalize a generic type parameter even more 2017-03-22 16:15:41 -05:00
ipa Fix Eclipse warnings about redundant null checks and assignments 2017-08-15 09:11:29 -07:00
model Convert all Java source files to use Unix line endings; no semantic change 2012-09-04 15:56:05 -07:00
properties Revert "Suppress 157 Eclipse warnings about unused exception parameters" 2017-03-23 16:32:00 -05:00
ssa Suppress some unchecked-cast warnings we cannot avoid 2017-08-15 09:16:59 -07:00
types Throw a loud exception if switch encounters unexpected enum value 2017-08-15 14:55:34 -07:00
util Merge branch 'master' of https://github.com/wala/WALA 2017-08-05 21:10:28 -04:00
viz Add static private serialVersionUID fields to Serializable classes 2017-08-05 13:30:35 -07:00