File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Unused constant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Unused constant" Watch "Unused constant" New topic

Unused constant

Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi all.
There is a package-private constant that is defined in, and that as far as I can tell is not used at all. Here's the definition:

My first instinct is to remove the definition altogether since I can see no apparent use for it. What are your thoughts?

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

I'd just keep whatever they had doen in the code. The constant could have ben used in a previous version of the test, when you have to convert the data.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Thanks Mark. I have a tendecy to nit-pick others' code (and code that I wrote but can't remember when.) I will certainly leave it alone.
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
Another possibillity is that it is used to tell the person marking your submission which version of the "legacy code" and db.db file you were assigned.

SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
I agree. Here's the link:
subject: Unused constant
It's not a secret anymore!