-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable @ConstrainedTo on Features #4055
Conversation
Signed-off-by: Jan Supol <jan.supol@oracle.com>
a9c6925
to
c7b3881
Compare
enabledFeatureClasses.add(registration.getFeatureClass()); | ||
enabledFeatures.add(feature); | ||
final RuntimeType runtimeTypeConstraint = registration.getFeatureRuntimeType(); | ||
if (runtimeTypeConstraint == null || type.equals(runtimeTypeConstraint)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check should be performed before line 674, so we do not create an injected instance of a Feature that should not exist in this type of runtime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check for runtime type should be performed sooner - see comment in file.
Signed-off-by: Jan Supol <jan.supol@oracle.com>
Signed-off-by: Jan Supol <jan.supol@oracle.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Jan Supol jan.supol@oracle.com