In the ByteBuddy enhancer, avoid creating a PersistentAttributeTransformer if the class is not enhanced

Description

This operation could fail for certain classes so we'd better avoid doing it when the class is not supposed to be enhanced.

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major