Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static ClassNode getNode(byte[] bytes) {
- ClassReader cr = new ClassReader(bytes);
- ClassNode cn = new ClassNode();
- try {
- cr.accept(cn, ClassReader.EXPAND_FRAMES);
- } catch (Exception e) {
- try {
- cr.accept(cn, ClassReader.SKIP_FRAMES | ClassReader.SKIP_DEBUG);
- } catch (Exception e2) {
- return null;
- }
- }
- return cn;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement