• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

javadoc -copyright info

 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, where do I include a copyright notice for a class?
I have this at the very top of my class:

But this message doesn't show up in the javadoc.
Two questions for you:
1. What do I have to do to have javadoc generate a comment for this?
2. Am I putting my copyright notice in the right place?
Thanks
[ January 12, 2003: Message edited by: Garrett Smith ]
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have more than one javadoc comment before the "public class ..." part? I believe the javadoc tool expects only one; if you have more than one you might find that one is ignored. Try joining the two into one.
Alternately, I think you want others to use your API - it may make more sense to just copyright the code itself, not the API. So just use a regular comment - "/*" rather than "/**". But I'm not a lawyer, so who knows?
 
Garrett Smith
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Do you have more than one javadoc comment before the "public class ..." part?


Yep. that was it.
 
The first person to drink cow's milk. That started off as a dare from this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic