I need to use System.exit(0)
in an application. Eclipse has the PMD plugin installed and complains about this line of code. Adding @SuppressWarnings ("PMD.DoNotCallSystemExit")
remove that warning but now I get a warning that this SuppressWarnings
is unsupported, despite the fact that it works.
Is there a way to resolve this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…