10
luaq
3y

If you've ever had @SupressWarnings("unused") in your code, just why?

Comments
  • 0
  • 0
  • 3
    Legacy code i now responsable of, eclipse has i nice view “warnings“, start of takeover about 12000 warnings, can't refactor and clean up all of their shit, so yes i admit i used this annotation of shame
  • 8
    For an updated date field my database takes care of putting the timestamp and I dont want anyone else overriding that behaviour so I make the setter method private not being used anywhere and add the @SuppressWarnings("unused") annotation
Add Comment