Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 06eacf5

Browse files
committed
HHH-19733 ClassRewriter internal abstraction is no longer useful
1 parent 0e0cf2c commit 06eacf5

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

‎hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/ByteBuddyState.java‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ public final class ByteBuddyState {
6666

6767
private final ProxyDefinitionHelpers proxyDefinitionHelpers = new ProxyDefinitionHelpers();
6868

69-
private final ClassRewriter classRewriter;
70-
7169
private final EnhancerImplConstants enhancerConstants = new EnhancerImplConstants();
7270

7371
/**
@@ -87,7 +85,6 @@ public ByteBuddyState() {
8785
this.byteBuddy = new ByteBuddy( classFileVersion ).with( TypeValidation.DISABLED );
8886
this.proxyCache = new TypeCache( TypeCache.Sort.WEAK );
8987
this.basicProxyCache = new TypeCache( TypeCache.Sort.WEAK );
90-
this.classRewriter = new StandardClassRewriter();
9188
}
9289

9390
/**
@@ -355,25 +352,6 @@ public DynamicType.Builder<?> appendIgnoreAlsoAtEnd(DynamicType.Builder<?> build
355352
}
356353
}
357354

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-
377355
private static ClassLoadingStrategy<ClassLoader> resolveClassLoadingStrategy(Class<?> originalClass) {
378356
try {
379357
return ClassLoadingStrategy.UsingLookup.of( MethodHandles.privateLookupIn( originalClass, LOOKUP ) );

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /