How do I suppress Eclipse 3.5's warnings of dead code

前端 未结 3 999
难免孤独
难免孤独 2021-02-07 09:44

I use a class for detecting email addresses which uses static final booleans to configure the matching behavior. Since I upgraded to Eclipse 3.5 I get warnings about dead code,

3条回答
  •  花落未央
    2021-02-07 10:12

    You can disable the 'dead code' warnings using

    @SuppressWarnings( "unused" )
    

    See the eclipse documentation for more Information:

    http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-suppress_warnings.htm

    "unused" to suppress warnings relative to unused code and dead code

    Greetings

    Christopher

提交回复
热议问题