Serializable inner class
LinkedList.java:37 org.apache.pivot.collections.LinkedList$Node is
serializable and an inner class
Solution: make the inner class static.


Yes, you can make Node a static inner class.

Please hold off on this change. It would just add unnecessary complexity to the LinkedList class. Node is a private inner class and will never be serialized independently of a LinkedList, so the fact that it implicitly serializes the outer class as well is not an issue.

Reply via email to