public Response transform ( ClassLoader loader , String className , Class < ? > classBeingRedefined , ProtectionDomain protectionDomain , byte [ ] origBytes ) throws IllegalClassFormatException { byte [ ] transformed = first . transform ( loader , className , classBeingRedefined , protectionDomain , origBytes ) ; boolean firstEnhanced = ( transformed != null ) ; byte [ ] nextBytes = ( transformed != null ) ? transformed : origBytes ; byte [ ] finalTransformed = second . transform ( loader , className , classBeingRedefined , protectionDomain , nextBytes ) ; if ( finalTransformed != null ) { return new Response ( finalTransformed , firstEnhanced , true ) ; } else if ( transformed != null ) { return new Response ( transformed , firstEnhanced , false ) ; } return Response . NOT_TRANSFORMED ; }
Perform the combined enhancement .