Annotate public APIs with JetBrains annotations and enforce immutability constraints on collections.
This commit is contained in:
1 parent
36ac320c9c
commit
7ac442c4f6
16 files changed
+67
-8
No files matched your search
@@ -117,7 +117,7 @@ final class SqlTable<R extends Record> implements Table<R>
|
||||
return found;
|
||||
});
|
||||
|
||||
return found;
|
||||
return Collections.unmodifiableMap(found);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -168,7 +168,7 @@ final class SqlTable<R extends Record> implements Table<R>
|
||||
while (rows.next()) keys.add(rows.getString(1));
|
||||
}
|
||||
|
||||
return keys;
|
||||
return Collections.unmodifiableList(keys);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user