freenet/fred-staging — pull request #102 by Thynix (2012-07-03 08:40:45+00:00)
Title: Cleanup

* Sanity checks in Serializer: don't allow a malicious message to lead to allocating gigabytes of memory.
* Synchronization improvements in Serializer and MessageFilter.
* Convert member fields to local where possible.
* Change constants to static final.
* Should HTMLFilter booleans be constant? Why not remove branching?
* Remove member fields which are never read.
* Remove redundant variables.
* Remove unnecessary "final" from static and private methods:
* Private methods cannot be meaningfully overridden.
* Overridden static methods can still be accessed via superclass.