Java 17 features (T-Z) (#15576)
- add missing @override - Java style array syntax - remove redundant modifiers - always move String constants to left side in comparisons - simplify lambda expressions and return statements - use replace instead of replaceAll w/o regex - instanceof matching and multiline strings - remove null check before instanceof Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -77,6 +77,7 @@ public class WundergroundUpdateReceiverServlet extends HttpServlet
|
||||
active = discoveryService.isBackgroundDiscoveryEnabled();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isActive() {
|
||||
synchronized (LOCK) {
|
||||
return this.active;
|
||||
@@ -127,6 +128,7 @@ public class WundergroundUpdateReceiverServlet extends HttpServlet
|
||||
}
|
||||
|
||||
@Deactivate
|
||||
@Override
|
||||
public void disable() {
|
||||
errorDetail = "";
|
||||
active = false;
|
||||
|
||||
Reference in New Issue
Block a user