Dave's Brain

Browse - Programming Tips - Eclipse: how can I disable "Dead Code" warnings?

Date: 2018mar10
Product: Eclipse
Language: Java

Q.  Eclipse: how can I disable "Dead Code" warnings?

A.  To disable an instance, add this to your Java code:

@SuppressWarnings("unused")
To disable all:
Windows > Preferences > Java > Compiler > Errors/Warnings > Potential programming problems > Dead Code > Ignore

Add a comment

Sign in to add a comment
Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.