Skip to content

Commit b37924c

Browse files
committed
fix @partial for classes with generics
1 parent 57616e2 commit b37924c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/de/inetsoftware/classparser/MethodInfo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2011 - 2021 Volker Berlin (i-net software)
2+
Copyright 2011 - 2023 Volker Berlin (i-net software)
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -248,6 +248,7 @@ public ConstantPool getConstantPool() {
248248
*/
249249
void setDeclaringClassFile( @Nonnull String origClassName, @Nonnull ClassFile classFile ) {
250250
description = description.replace( 'L' + origClassName + ';', 'L' + classFile.getThisClass().getName() + ';' );
251+
description = description.replace( 'L' + origClassName + '<', 'L' + classFile.getThisClass().getName() + '<' ); // a class with additional generics information
251252
this.classFile = classFile;
252253
}
253254
}

0 commit comments

Comments
 (0)