I would like to propose an important new Remark Annotation to be added
to the collection: the CopiedFrom annotation.
For those times when you get things working by grabbing some snippet
of sample code from the net without quite understanding why it worked,
this annotation properly documents the source of the code:
@CopiedFrom(
source = "http://www.idevelopment.info/data/Programming/java/io/
HexConversions.java",
tested = false,
license = "Unknown")
public static String byteToHex(byte data) {
StringBuffer buf = new StringBuffer();
buf.append(toHexChar((data >>> 4) & 0x0F));
buf.append(toHexChar(data & 0x0F));
return buf.toString();
}
The source field is, of course, optional.
-----
I am open to suggestions: for instance, should the annotation be named
"CopiedFrom" or perhaps "StolenFrom" or simply "CutAndPaste". And I'll
be happy to provide implementation if the group likes the proposal.
-- Michael Chermside
--
To unsubscribe, reply using "remove me" as the subject.