Skip to content

Commit dc1ba44

Browse files
use isEmpty() to check for empty array
1 parent a2b2694 commit dc1ba44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqldev/src/main/java/org/utplsql/sqldev/model/PrefixTools.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static String commonPrefix(final String[] arr, final int n) {
6767

6868
public static String commonPrefix(final List<String> list) {
6969
try {
70-
if (list.size() == 0) {
70+
if (list.isEmpty()) {
7171
return "";
7272
} else if (list.size() == 1) {
7373
final int pos = list.get(0).lastIndexOf('.');

0 commit comments

Comments
 (0)