Skip to content

Commit 7da5f46

Browse files
committed
Use empty check on buffers
1 parent 3dbd01b commit 7da5f46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

schemacrawler-lint/src/main/java/schemacrawler/tools/lint/Linters.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public String getLintSummary() {
8888
}
8989
}
9090

91-
if (buffer.length() > 0) {
91+
if (!buffer.isEmpty()) {
9292
buffer.insert(0, "Summary of schema lints:\n");
9393
}
9494

schemacrawler-text/src/main/java/schemacrawler/tools/text/formatter/schema/SchemaTextFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ private void printTriggers(final Collection<Trigger> triggers) {
11571157
new ArrayList<>(trigger.getEventManipulationTypes());
11581158
if (eventManipulationTypes != null
11591159
&& eventManipulationTypes.get(0) != EventManipulationType.unknown) {
1160-
if (timingBuffer.length() > 0) {
1160+
if (!timingBuffer.isEmpty()) {
11611161
timingBuffer.append(SPACE);
11621162
}
11631163
for (final EventManipulationType eventManipulationType : eventManipulationTypes) {

0 commit comments

Comments
 (0)