private void introspectSerializer ( MapSerializer mapSerializer , MapTypeJrapidoc type ) { try { Field keyTypeField = mapSerializer . getClass ( ) . getDeclaredField ( "_keyType" ) ; keyTypeField . setAccessible ( true ) ; JavaType keyType = ( JavaType ) keyTypeField . get ( mapSerializer ) ; JavaType valueType = mapSerializer . getContentType ( ) ; getType ( keyType ) ; getType ( valueType ) ; } catch ( NoSuchFieldException e ) { e . printStackTrace ( ) ; } catch ( IllegalAccessException e ) { e . printStackTrace ( ) ; } }
Introspect serializer for map