Skip to content

Commit 17201e6

Browse files
committed
Clean ups and release
1 parent 2b3ee03 commit 17201e6

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/description/TypeVariableSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public interface TypeVariableSource extends ModifierReviewable.OfAbstraction {
8888
* <ul>
8989
* <li>A type declares type variables or is an inner class of a type with a generic declaration.</li>
9090
* <li>A method declares at least one type variable.</li>
91-
* <li>A type is an inner anonymous class of a method with a generic declaration</li>
91+
* <li>A type is a class that is declared within a method with a generic declaration.</li>
9292
* </ul>
9393
*
9494
* @return {@code true} if this type code element has a generic declaration.

byte-buddy-dep/src/test/java/net/bytebuddy/description/type/AbstractTypeDescriptionTest.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,8 @@ public void testIsGenerified() throws Exception {
666666
assertThat(describe(GenericSample.Nested.class).isGenerified(), is(false));
667667
assertThat(describe(GenericSample.NestedInterface.class).isGenerified(), is(false));
668668
assertThat(describe(Object.class).isGenerified(), is(false));
669-
assertThat(describe(getAnonymousGenericSample().getClass()).isGenerified(), is(true));
669+
assertThat(describe(anonymousGenericSample().getClass()).isGenerified(), is(true));
670+
assertThat(describe(innerGenericSample().getClass()).isGenerified(), is(true));
670671
}
671672

672673
@Test
@@ -1035,12 +1036,19 @@ interface NestedInterface {
10351036
}
10361037
}
10371038

1038-
private <T> GenericSample<T> getAnonymousGenericSample() {
1039+
private static <T> GenericSample<T> anonymousGenericSample() {
10391040
return new GenericSample<T>() {
10401041
/* empty */
10411042
};
10421043
}
10431044

1045+
private static <T> GenericSample<T> innerGenericSample() {
1046+
class ExtendedGenericSample<T> extends GenericSample<T> {
1047+
/* empty */
1048+
};
1049+
return new ExtendedGenericSample<T>();
1050+
}
1051+
10441052
private static class Type$With$Dollar {
10451053
/* */
10461054
}

release-notes.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Byte Buddy release notes
22
------------------------
33

4+
### 22. June 2022: version 1.12.11
5+
6+
- Remove use of thread-local to guarantee Loom compatibility.
7+
- Allow usage of *byte-buddy-parent* as BOM for imports.
8+
- Add convenience for Maven to disable type validation on entry point.
9+
- Allow Gradle plugin to consume *pluginName* property and *discoverySet* to only load plugins in the plugin class loader.
10+
411
### 1. May 2022: version 1.12.10
512

613
- Correctly resolve temporary folder, if custom folder is set, on Linux during emulated attach.

0 commit comments

Comments
 (0)