java - Examples of open-source code which contain extensive examples of Immutable classes? -


I am looking for realistic examples of temporary classes developed in Java. If the code is used to make @immableable annotations, or otherwise documented sections irreversible, to allow those sections to be found irreversible, then it would be helpful to me Classrooms should also be able to study the source code, so a project is appropriate with any "read only" license.

@imableable is used in relation to annotation, it does not matter if which is @impractable Annotations are JSR-305 or FindBugs, or at home, etc. It does not matter, simply the simple name of that comment is "irrevocable". Likewise, if I use an coherent method to mark the inevitable in the project (class name conference, Javadok, marker interface, etc.), then I can search codebase and temporarily I can tell, this is what I see.

Are there examples of open source code with wide examples of unsafe sections? Most classes in these libraries are immutable:

P> No compulsory code annotation, hard, AFAIK.

edit This documentation mostly uses documents, although an important aspect: if you want your classes If you do not want to be unstable, do not give (public) senders. If the client code can not modify the status of your object, V is an irreversible class, it is a principle, add time, as well as add money. Also above the top of my head, I can not even name the name of one unstable class in libraries (I have only so far Unchanged people have used, and unstable versions have never been erased.)


Comments