Skip to content

Commit

Permalink
Fix nullability flag on named type arguments and reified flag on type…
Browse files Browse the repository at this point in the history
… parameters
  • Loading branch information
rubenpieters authored and robinlefever committed Dec 7, 2023
1 parent 12c9c3f commit 7160a9e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ public void visitAnyType(Clazz clazz, KotlinTypeMetadata kotlinTypeMetadata)
kotlinTypeMetadata.typeArgumentsAccept(clazz, this);
kotlinTypeMetadata.upperBoundsAccept( clazz, this);
kotlinTypeMetadata.abbreviationAccept( clazz, this);

kotlinTypeMetadata.flags.common.hasAnnotations = !kotlinTypeMetadata.annotations.isEmpty();
}

@Override
Expand All @@ -213,7 +211,6 @@ public void visitFunctionReceiverType(Clazz clazz,
KotlinTypeMetadata kotlinTypeMetadata)
{
kotlinFunctionMetadata.referencedMethodAccept(this.annotationCounter.reset());
kotlinTypeMetadata.flags.common.hasAnnotations = annotationCounter.getParameterAnnotationCount(0) > 0;
}

// Implementations for KotlinTypeParameterVisitor.
Expand All @@ -225,8 +222,6 @@ public void visitAnyValueParameter(Clazz clazz,
public void visitAnyTypeParameter(Clazz clazz, KotlinTypeParameterMetadata kotlinTypeParameterMetadata)
{
kotlinTypeParameterMetadata.upperBoundsAccept(clazz, this);

kotlinTypeParameterMetadata.flags.common.hasAnnotations = !kotlinTypeParameterMetadata.annotations.isEmpty();
}

// Implementations for KotlinValueParameterVisitor.
Expand Down
1 change: 1 addition & 0 deletions docs/md/manual/releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Fix potential access issues when backporting.
- Fix potential NoClassDefFoundError when using type specialization optimization. (#373)
- Improve processing of Kotlin metadata flags to prevent unnecessary null checks for consumers of protected library artifacts.

## Version 7.4.1

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
proguardVersion = 7.4.1

# The version of ProGuardCORE that sub-projects are built with
proguardCoreVersion = 9.1.0
proguardCoreVersion = 9.1.1
gsonVersion = 2.9.0
kotlinVersion = 1.7.20
target = 1.8
Expand Down

0 comments on commit 7160a9e

Please sign in to comment.