hibernate / hibernate-models

An abstraction over "reflection" and annotations
Apache License 2.0
2 stars 5 forks source link

Drop AnnotationUsage#getAttributeValue overloads accepting defaults #64

Closed sebersole closed 2 months ago

sebersole commented 2 months ago

Drop the following methods:

Those were useful in the initial iterations where an attribute's default value was stored internally as null to indicate that no value was specified.

However it was decided later during development that this should follow the JDK pattern of "not specified" equating to the default value being stored. Therefore, a null check to return the passed in defaultValue is pointless.

sebersole commented 2 months ago

This is fixed by a30b9695ce0dbe53010f5a39b7f71dcd9531bd8a. IntelliJ's new Git dialog is just confusing..