Try-catch: is this acceptable practice?

前端 未结 8 2140
终归单人心
终归单人心 2020-12-17 17:35

We have received Java code from a software supplier. It contains a lot of try-catch blocks with nothing in the catch part. They\'re all over the pl

8条回答
  •  不知归路
    2020-12-17 18:33

    Horrible idea on the face of it, totally depends on what you're actually calling. Usually it's done out of laziness or habituated bad practices.

提交回复
热议问题