You have multiple choices:
- Remove the field.
It is unused, so it shouldn't be there.
- Comment out the field, e.g. using
// TODO
Good for temporary hiding of warning until you write code using field.
- Suppress the warning using
@SuppressWarnings("unused")
.
- Disable the warning in IDE settings. For Eclipse, that would be in
Window
> Preferences
Java
> Compiler
> Error/Warnings
Unnecessary code
> Unused private member
- Select option
Ignore
For #3 and #4, though, although you can, why would you want to?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…