Is it possible to tell the compiler that a method always throws an Exception

后端 未结 0 1077
小蘑菇
小蘑菇 2021-02-12 01:39

Generally speaking, the Java compiler does not propagate the information that a method \"always\" throw an Exception, and therefore, does not detect that all code paths are comp

相关标签:
回答
  • 消灭零回复
提交回复
热议问题