Skip to content

Commit 1f874f8

Browse files
committed
fixing the style bugs
1 parent 3875334 commit 1f874f8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

fdb-extensions/src/main/java/com/apple/foundationdb/async/hnsw/AbstractStorageAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,5 @@ public void deleteNode(@Nonnull final Transaction transaction, final int layer,
271271
}
272272
}
273273

274-
protected abstract void deleteNodeInternal(@Nonnull final Transaction transaction, final int layer, @Nonnull final Tuple primaryKey);
274+
protected abstract void deleteNodeInternal(@Nonnull Transaction transaction, int layer, @Nonnull Tuple primaryKey);
275275
}

fdb-extensions/src/main/java/com/apple/foundationdb/async/hnsw/HNSW.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ private CompletableFuture<List<EntryNodeReference>> deleteFromLayers(@Nonnull fi
18331833
@Nonnull final SplittableRandom random,
18341834
@Nonnull final Tuple primaryKey,
18351835
final int topLayer) {
1836-
return MoreAsyncUtil.forEach(() -> IntStream.rangeClosed(0, topLayer).iterator(),
1836+
return forEach(() -> IntStream.rangeClosed(0, topLayer).iterator(),
18371837
layer -> {
18381838
final StorageAdapter<? extends NodeReference> storageAdapter = getStorageAdapterForLayer(layer);
18391839
return deleteFromLayer(storageAdapter, transaction, storageTransform, quantizer, random.split(),

fdb-extensions/src/main/java/com/apple/foundationdb/async/hnsw/StorageTransform.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
package com.apple.foundationdb.async.hnsw;
2222

23+
import com.apple.foundationdb.annotation.SpotBugsSuppressWarnings;
2324
import com.apple.foundationdb.linear.AffineOperator;
2425
import com.apple.foundationdb.linear.FhtKacRotator;
2526
import com.apple.foundationdb.linear.LinearOperator;
@@ -34,6 +35,7 @@
3435
* (pre-rotated) centroid. This operator is used inside the HNSW to transform back and forth between the coordinate
3536
* system of the client and the coordinate system that is currently employed in the HNSW.
3637
*/
38+
@SpotBugsSuppressWarnings(value = "SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR", justification = "Singleton designation is a false positive")
3739
class StorageTransform extends AffineOperator {
3840
private static final StorageTransform IDENTITY_STORAGE_TRANSFORM = new StorageTransform(null, null);
3941

0 commit comments

Comments
 (0)