• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Acceptable assignment program header?

 
Greg Funston
Ranch Hand
Posts: 81
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Is this an acceptable header for the classes being submitted?

Also please explain the "@(#)". Are they necessary or for a specific automated task?

Thanks,
Greg Funston SCJP
 
Sean Keane
Ranch Hand
Posts: 582
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Out of interest, where did you get the "@(#)" characters from?
 
Greg Funston
Ranch Hand
Posts: 81
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roberto's Programs which he has posted for our use. DBFileReader. I noticed on the Oracle/Sun Comments a copyright notice should be used as well. Since this goes on top of every file I'd like a good header for submission. I am in the final wrap up. Should be finished by Monday.
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey champ, this header looks very familiar to me I guess you took it from one of the test classes I created, right?

Champ, this is the header I put in all classes that I submitted. Also, I took the "@(#)" characters from the code conventions example provided by Sun (you can take a look at it here). Also, if you look at Java's source code, you'll find them there as well.
 
Greg Funston
Ranch Hand
Posts: 81
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Roberto. I've appreciated all the replies. Yes it is from one of your posted files.

Cheers,
Greg Funston SCJP

 
Greg Funston
Ranch Hand
Posts: 81
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One question regarding copyright. Is this program technically Sun's property even though I authored it? If so, do I need to add their copyright to the file?

Cheers,
Greg Funston
SCJP
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Greg.

One question regarding copyright. Is this program technically Sun's property even though I authored it? If so, do I need to add their copyright to the file?


Well, this is a tough one. I think that the program is technically theirs, even though you are the developer (I think). But the header you posted is pretty much fine, you don't have to add anything else.
 
Roel De Nijs
Sheriff
Posts: 9934
113
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roberto Perillo wrote:But the header you posted is pretty much fine, you don't have to add anything else.

Although "Sun Microsystems, Inc." should be replaced, because that's a non-existing company at this moment...

My header was a bit more concise:
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roel De Nijs wrote:Although "Sun Microsystems, Inc." should be replaced, because that's a non-existing company at this moment...


Well, I'm not sure if we can really say that Sun doesn't exist anymore as a company, but I think it would probably be better to replace the part that says "Sun Microsystems, Inc." by "Oracle Corporation".
 
Roel De Nijs
Sheriff
Posts: 9934
113
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are acquired by another company, you don't exist anymore. According to Sun's wiki page it was renamed after the acquisition to Oracle America, Inc.
 
Sean Keane
Ranch Hand
Posts: 582
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roberto Perillo wrote:Also, I took the "@(#)" characters from the code conventions example provided by Sun (you can take a look at it here). Also, if you look at Java's source code, you'll find them there as well.


Thanks Roberto. That's interesting. I wonder what the significance of those characters are? A quick Google threw up nothing.
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Sean!

Thanks Roberto. That's interesting. I wonder what the significance of those characters are? A quick Google threw up nothing.


Champ, that's a good question. I honestly have no idea what they mean. Maybe it meant something in the past for some automating tool, or was planned to be used in the future...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic