Skip to content

Commit 94d4232

Browse files
committed
lint
1 parent 897dc5b commit 94d4232

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

polaris-core/src/main/java/io/polaris/core/persistence/LocalPolarisMetaStoreManagerFactory.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ public synchronized Map<String, PolarisMetaStoreManager.PrincipalSecretsResult>
8282
initializeForRealm(realmContext);
8383
PolarisMetaStoreManager.PrincipalSecretsResult secretsResult =
8484
bootstrapServiceAndCreatePolarisPrincipalForRealm(
85-
realmContext, metaStoreManagerMap.get(realmContext.getRealmIdentifier()), overwrite);
85+
realmContext,
86+
metaStoreManagerMap.get(realmContext.getRealmIdentifier()),
87+
overwrite);
8688
results.put(realmContext.getRealmIdentifier(), secretsResult);
8789
}
8890
}
@@ -143,9 +145,7 @@ public void setStorageIntegrationProvider(PolarisStorageIntegrationProvider stor
143145
*/
144146
private PolarisMetaStoreManager.PrincipalSecretsResult
145147
bootstrapServiceAndCreatePolarisPrincipalForRealm(
146-
RealmContext realmContext,
147-
PolarisMetaStoreManager metaStoreManager,
148-
boolean overwrite) {
148+
RealmContext realmContext, PolarisMetaStoreManager metaStoreManager, boolean overwrite) {
149149
// While bootstrapping we need to act as a fake privileged context since the real
150150
// CallContext hasn't even been resolved yet.
151151
PolarisCallContext polarisContext =
@@ -162,12 +162,11 @@ public void setStorageIntegrationProvider(PolarisStorageIntegrationProvider stor
162162
PolarisEntitySubType.NULL_SUBTYPE,
163163
PolarisEntityConstants.getRootPrincipalName());
164164
if (preliminaryRootPrincipalLookup.isSuccess()) {
165-
String overrideMessage = "It appears this metastore manager has already been bootstrapped." +
166-
" To continue bootstrapping and purge any existing Polaris entities from the metastore manager, please" +
167-
" re-run this command with the flag `--overwrite`.";
168-
logger.error(
169-
"\n\n {} \n\n",
170-
overrideMessage);
165+
String overrideMessage =
166+
"It appears this metastore manager has already been bootstrapped."
167+
+ " To continue bootstrapping and purge any existing Polaris entities from the metastore manager, please"
168+
+ " re-run this command with the flag `--overwrite`.";
169+
logger.error("\n\n {} \n\n", overrideMessage);
171170
throw new IllegalArgumentException(overrideMessage);
172171
}
173172
}

polaris-core/src/main/java/io/polaris/core/persistence/MetaStoreManagerFactory.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ public interface MetaStoreManagerFactory extends Discoverable {
4242

4343
void setMetricRegistry(PolarisMetricRegistry metricRegistry);
4444

45-
Map<String, PolarisMetaStoreManager.PrincipalSecretsResult> bootstrapRealms(List<String> realms, boolean overwrite);
45+
Map<String, PolarisMetaStoreManager.PrincipalSecretsResult> bootstrapRealms(
46+
List<String> realms, boolean overwrite);
4647

47-
default Map<String, PolarisMetaStoreManager.PrincipalSecretsResult> bootstrapRealms(List<String> realms) {
48+
default Map<String, PolarisMetaStoreManager.PrincipalSecretsResult> bootstrapRealms(
49+
List<String> realms) {
4850
return bootstrapRealms(realms, false);
4951
}
5052
}

0 commit comments

Comments
 (0)