Do no longer expose StoreParameters

This commit is contained in:
René Pfeuffer
2018-12-03 12:28:35 +01:00
parent 3638d3520f
commit 44d99f55f2
22 changed files with 91 additions and 92 deletions

View File

@@ -38,8 +38,6 @@ import sonia.scm.repository.Repository;
import sonia.scm.store.BlobStore;
import sonia.scm.store.BlobStoreFactory;
import static sonia.scm.store.StoreParameters.forType;
/**
* Creates {@link BlobStore} objects to store lfs objects.
*
@@ -78,11 +76,9 @@ public class LfsBlobStoreFactory {
*/
@SuppressWarnings("unchecked")
public BlobStore getLfsBlobStore(Repository repository) {
return blobStoreFactory.getStore(
forType(String.class)
return blobStoreFactory.forType(String.class)
.withName(repository.getId() + GIT_LFS_REPOSITORY_POSTFIX)
.forRepository(repository)
.build()
);
.build();
}
}