I have written several Java utilities that I am now consolidating in a single, more organized code base. I have never distributed this code, so the only copies are currently in my possession.
While I will probably release the whole thing or most parts of it under an open source license, I'd like at the moment to keep my options open and protect my work in case of inadvertent disclosure e.g. in the case of my having to use it on a computer that I do not own. I might also want to allow people, such as potential employers, to look at the code.
It seems that the simplest way to establish authorship is a license header in the source code files. On the other hand I absolutely detest mile-long headers, especially when I am forced to scroll-down to get to the code - or when the header is larger than the actual code.
Therefore I am trying to write a license header that is as short as possible, while covering most bases. I am currently considering something along these lines:
/* * Copyright (c) 2012 John Doe <firstname.lastname@example.org> * * All rights reserved. No warranty, explicit or implicit, provided. */
Basically I want to establish that:
I am the author of the code.
It cannot be distributed or used in any manner, shape or form. Note that I am mostly trying to defend against well-meant ignorance, rather than people that would outright ignore the rights of the author.
I am not liable if anyone does use the code and their grandmother sets the house on fire or their pet squirrel ends up in Antarctica.
Is this simple copyright notice sufficient to communicate my intent to the vast majority of well-intentioned people that might read it? More specifically:
Is the liability aspect completely covered?
Does All rights reserved cover both use and distribution? If so, do most people realize that, or should I make it more clear?