private static Field getSerialVersionUID ( Class < ? > clz ) { Class < ? > c = clz ; while ( c != null ) { try { Field svuf = SecurityActions . getDeclaredField ( clz , "serialVersionUID" ) ; SecurityActions . setAccessible ( svuf ) ; return svuf ; } catch ( Throwable t ) { // No serialVersionUID definition } c = c . getSuperclass ( ) ; } return null ; }
Find the serialVersionUID field