Java 17 features (A-G) (#15516)
- 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 Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -81,7 +81,7 @@ final class AhaCollectionScheduleImpl implements AhaCollectionSchedule {
|
||||
|
||||
final Elements table = doc.select("table");
|
||||
|
||||
if (table.size() == 0) {
|
||||
if (table.isEmpty()) {
|
||||
logger.warn("No result table found.");
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
@@ -91,7 +91,7 @@ final class AhaCollectionScheduleImpl implements AhaCollectionSchedule {
|
||||
|
||||
while (rowIt.hasNext()) {
|
||||
final Element currentRow = rowIt.next();
|
||||
if (!currentRow.tagName().equals("tr")) {
|
||||
if (!"tr".equals(currentRow.tagName())) {
|
||||
continue;
|
||||
}
|
||||
// Skip header, empty and download button rows.
|
||||
|
||||
Reference in New Issue
Block a user