@@ -66,8 +66,6 @@ public final class ByteBuddyState {
66
66
67
67
private final ProxyDefinitionHelpers proxyDefinitionHelpers = new ProxyDefinitionHelpers ();
68
68
69
- private final ClassRewriter classRewriter ;
70
-
71
69
private final EnhancerImplConstants enhancerConstants = new EnhancerImplConstants ();
72
70
73
71
/**
@@ -87,7 +85,6 @@ public ByteBuddyState() {
87
85
this .byteBuddy = new ByteBuddy ( classFileVersion ).with ( TypeValidation .DISABLED );
88
86
this .proxyCache = new TypeCache ( TypeCache .Sort .WEAK );
89
87
this .basicProxyCache = new TypeCache ( TypeCache .Sort .WEAK );
90
- this .classRewriter = new StandardClassRewriter ();
91
88
}
92
89
93
90
/**
@@ -355,25 +352,6 @@ public DynamicType.Builder<?> appendIgnoreAlsoAtEnd(DynamicType.Builder<?> build
355
352
}
356
353
}
357
354
358
- private interface ClassRewriter {
359
- DynamicType .Builder <?> installReflectionMethodVisitors (DynamicType .Builder <?> builder );
360
-
361
- void registerAuthorizedClass (Unloaded <?> unloadedClass );
362
- }
363
-
364
- private static class StandardClassRewriter implements ClassRewriter {
365
- @ Override
366
- public DynamicType .Builder <?> installReflectionMethodVisitors (DynamicType .Builder <?> builder ) {
367
- // do nothing
368
- return builder ;
369
- }
370
-
371
- @ Override
372
- public void registerAuthorizedClass (Unloaded <?> unloadedClass ) {
373
- // do nothing
374
- }
375
- }
376
-
377
355
private static ClassLoadingStrategy <ClassLoader > resolveClassLoadingStrategy (Class <?> originalClass ) {
378
356
try {
379
357
return ClassLoadingStrategy .UsingLookup .of ( MethodHandles .privateLookupIn ( originalClass , LOOKUP ) );
0 commit comments