experimental
Class CheckFreerailsSerializableClasses

java.lang.Object
  extended by experimental.CheckFreerailsSerializableClasses

public class CheckFreerailsSerializableClasses
extends java.lang.Object

Checks that all class that implement FreerailsSerializable are immutable and override equals and hashcode.


Field Summary
(package private) static java.util.HashSet<java.lang.Class> immutableTypes
           
(package private) static java.util.logging.Logger logger
           
(package private) static java.util.HashSet<java.lang.Class> mutableTypes
           
 
Constructor Summary
CheckFreerailsSerializableClasses()
           
 
Method Summary
(package private) static boolean checkFields(java.lang.Class<?> clazz)
           
static void main(java.lang.String[] args)
           
(package private) static boolean overridesHashCodeAndEquals(java.lang.Class clazz)
           
(package private) static void testAllClasses()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

immutableTypes

static final java.util.HashSet<java.lang.Class> immutableTypes

mutableTypes

static final java.util.HashSet<java.lang.Class> mutableTypes

logger

static java.util.logging.Logger logger
Constructor Detail

CheckFreerailsSerializableClasses

public CheckFreerailsSerializableClasses()
Method Detail

main

public static void main(java.lang.String[] args)

checkFields

static boolean checkFields(java.lang.Class<?> clazz)

testAllClasses

static void testAllClasses()

overridesHashCodeAndEquals

static boolean overridesHashCodeAndEquals(java.lang.Class clazz)