-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
resolves openhab/openhab-distro#101 Signed-off-by: Kai Kreuzer <kai@openhab.org>
Do you like to add the "override" annotation? |
No, because it does not override but overload the method. In this case, this annotation isn't used, right? |
Okay, I have not known, that this is handled different for overloaded methods. java.lang.Override
|
Hm, I thought I am using the same formatter as you? Mine doesn't add it.
So does this apply here? What does override-equivalent exactly mean...? |
For ESH and OH2, but there are other projects and other formatters I am using. 😉 Two method signatures m1 and m2 are override-equivalent iff either m1 is a subsignature of m2 or m2 is a subsignature of m1. (https://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.4.2) |
Which means that they are not override-equivalent, so not having the annotation is correct. note that we are talking about the two methods |
AbstractActiveBinding is using BindingProvider, HttpBinding is using HttpBindingProvider... |
I will shut up and you can merge :) |
added type exact add/remove methods.
resolves openhab/openhab-distro#101
Signed-off-by: Kai Kreuzer kai@openhab.org