mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 06:46:47 +00:00
Resolve minor warnings/suggestions
This commit is contained in:
1 parent
010ed77345
commit
0023cb2521
1 file changed
+3
-2
@@ -111,7 +111,8 @@ public class Util {
|
||||
public static void sleep(long i) {
|
||||
try {
|
||||
Thread.sleep(i);
|
||||
} catch (InterruptedException ie) {}
|
||||
} catch (final InterruptedException ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
public static long todayInMillis() {
|
||||
@@ -186,7 +187,7 @@ public class Util {
|
||||
}
|
||||
|
||||
Set<Integer> indices = new HashSet<>(RANDOM_GENERATOR.ints(0, values.size()).distinct().limit(n).boxed().toList());
|
||||
List<E> result = new ArrayList<E>(n);
|
||||
List<E> result = new ArrayList<>(n);
|
||||
for(int i = 0; i < values.size() && result.size() < n; i++) {
|
||||
if(indices.contains(i)) {
|
||||
result.add(values.get(i));
|
||||
|
||||
Reference in new issue
Block a user