jQuery in Action, 3rd edition
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 Data.java, DataInfo.java and FieldInfo.java 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: 17271

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 - Two Laptop Bag - Tube Organizer
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Unused constant
It's not a secret anymore!