private static boolean checkSerial(MethodDesc[] descs) throws InvalidObjectException{ try { return check(descs); } catch (RuntimeException e) { rethrow(e); } return true; }
/** * Verifies legal descriptor ordering. * * @throws InvalidObjectException if any descriptor is <code>null</code>, or the descriptors * array is empty, or if any descriptor is preceded by another * descriptor that matches at least the same methods */ private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); try { check(); } catch (RuntimeException e) { rethrow(e); } }