-
Notifications
You must be signed in to change notification settings - Fork 96
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
Annotate Functional Interface #606
Conversation
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.
Might wan to add these interface as well: JobRowBuilder
, ConfigPhysicalTable
, TaggedDimensionField
, ExtractionFunctionDimension
, isTableAligned,
QuerySigningService`
b667472
to
7124c39
Compare
@tarrantzhang Thank you! I've added to them all except for |
@QubitPi I think this just needs a little bit of manual intervention to resolve the conflicts and it should be ready to merge. |
@cdeszaq Thanks for the approval! I'm not able to see where conflicts are. Could you point me to the conflict location? |
61ba5ca
to
ee20bdd
Compare
@cdeszaq I think all conflicts are resolved 😃 |
Add
@FunctionalInterface
annotation to all functional interfaces.It is not mandatory to use it, but it is best practice to use it with functional interface to avoid addition of extra methods accidentally. If the interface is annotated with
@FunctionalInterface
annotation and we try to have more than one abstract method, it throws compiler error.The major benefit of functional interface is that we can use lambda expressions to instantiate them and avoid using bulky anonymous class implementation. Since there is only one abstract function in the functional interfaces, there is no confusion in applying the lambda expression to the method.