private static Class < ? > [ ] readParameters ( ObjectInputStream in ) throws IOException , ClassNotFoundException { Class < ? > [ ] result = new Class [ in . readShort ( ) ] ; for ( int i = 0 ; i < result . length ; i ++ ) { if ( ! in . readBoolean ( ) ) { result [ i ] = ( Class < ? > ) in . readObject ( ) ; continue ; } result [ i ] = primitives [ in . readByte ( ) ] ; } return result ; }
Reads an array of parameter types from the stream .