Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ private void logCoverageSummary(ManagedCamelContextMBean managedCamelContext) th
builder.append("\t\tCamelContext (").append(managedCamelContext.getCamelId()).append(") total: ")
.append(contextExchangesTotal).append("\n");

if (uncoveredRoutes.size() > 0) {
if (!uncoveredRoutes.isEmpty()) {
builder.append("\t\tUncovered routes: ").append(uncoveredRoutes.stream().collect(Collectors.joining(", ")))
.append("\n");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public EntryInfo.CachedEntryInfo append(LogEntry entry) throws IOException {
.filter(c -> c != null && c.layerInfo.getLayer() != transactionLog.currentLayer())
.map(e -> tryPersist(layerInfo, e.logEntry)).collect(Collectors.toList());

if (collect.size() > 0) {
if (!collect.isEmpty()) {
final EntryInfo lastOnLayer = collect.get(0);

LOG.trace("Current pos is: {}", fileChannel.position());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void loadDevConsoles(boolean force) {
DefaultDevConsolesLoader loader = new DefaultDevConsolesLoader(camelContext);
Collection<DevConsole> col = loader.loadDevConsoles();

if (col.size() > 0) {
if (!col.isEmpty()) {
int added = 0;
// register the loaded consoles
for (DevConsole console : col) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ private static List<ProcessorDefinition<?>> getOutputs(ProcessorDefinition<?> no
break;
}
}
if (outputs.size() >= 1 && allAbstract) {
if (!outputs.isEmpty() && allAbstract) {
// if all outputs are abstract then get its last output, as
outputs = outputs.get(outputs.size() - 1).getOutputs();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public void loadHealthChecks() {
Collection<HealthCheck> col = loader.loadHealthChecks();
// register loaded health-checks
col.forEach(this::register);
if (col.size() > 0) {
if (!col.isEmpty()) {
String time = TimeUtils.printDuration(watch.taken(), true);
LOG.debug("Health checks (scanned: {}) loaded in {}", col.size(), time);
}
Expand Down