Skip to content

Commit 7e21779

Browse files
authored
Merge pull request #41731 from dk2k/dk2k_malformed_format
BugFix Fixed mismatched number of args in string formats
2 parents b3e6085 + c2b6b86 commit 7e21779

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/src/main/java/io/quarkus/docs/generation/CheckCrossReferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public CheckCrossReferences(Path srcDir, Path referenceIndexPath)
8585

8686
if (!Files.exists(referenceIndexPath) || !Files.isReadable(referenceIndexPath)) {
8787
throw new IllegalStateException(
88-
String.format("Reference index does not exist or is not readable", referenceIndexPath.toAbsolutePath()));
88+
String.format("Reference index %s does not exist or is not readable", referenceIndexPath.toAbsolutePath()));
8989
}
9090

9191
ObjectMapper om = new ObjectMapper(new YAMLFactory().enable(YAMLGenerator.Feature.MINIMIZE_QUOTES));

extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestStoreDataAtDeleteResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public String delete() {
4141
AuditReader auditReader = AuditReaderFactory.get(em);
4242
List<Number> revisions = auditReader.getRevisions(MyAuditedEntity.class, entity.getId());
4343
if (revisions.size() != 2) {
44-
throw new IllegalStateException(String.format("found {} revisions", revisions.size()));
44+
throw new IllegalStateException(String.format("found %d revisions", revisions.size()));
4545
}
4646

4747
for (Number revision : revisions) {

extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestValidationResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public String save(String name) {
4141
AuditReader auditReader = AuditReaderFactory.get(em);
4242
List<Number> revisions = auditReader.getRevisions(MyAuditedEntity.class, entity.getId());
4343
if (revisions.size() != 2) {
44-
throw new IllegalStateException(String.format("found {} revisions", revisions.size()));
44+
throw new IllegalStateException(String.format("found %d revisions", revisions.size()));
4545
}
4646

4747
MyRevisionEntity revEntity = auditReader.findRevision(MyRevisionEntity.class, revisions.get(0));

extensions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/runtime/OidcCommonUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ public static void setHttpClientOptions(OidcCommonConfig oidcConfig, HttpClientO
160160
}
161161
} catch (IOException ex) {
162162
throw new ConfigurationException(String.format(
163-
"OIDC truststore file does not exist or can not be read",
164-
oidcConfig.tls.trustStoreFile.get().toString()), ex);
163+
"OIDC truststore file %s does not exist or can not be read",
164+
oidcConfig.tls.trustStoreFile.get()), ex);
165165
}
166166
}
167167
if (oidcConfig.tls.keyStoreFile.isPresent()) {
@@ -182,8 +182,8 @@ public static void setHttpClientOptions(OidcCommonConfig oidcConfig, HttpClientO
182182

183183
} catch (IOException ex) {
184184
throw new ConfigurationException(String.format(
185-
"OIDC keystore file does not exist or can not be read",
186-
oidcConfig.tls.keyStoreFile.get().toString()), ex);
185+
"OIDC keystore file %s does not exist or can not be read",
186+
oidcConfig.tls.keyStoreFile.get()), ex);
187187
}
188188
}
189189
Optional<ProxyOptions> proxyOpt = toProxyOptions(oidcConfig.getProxy());

extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/MessageBundleProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ boolean isEnumConstantMessageKey(String key, IndexView index, ClassInfo bundleIn
864864
return true;
865865
}
866866
throw new MessageBundleException(
867-
String.format("%s is not an enum constant of %: %s", constant, maybeEnum, key));
867+
String.format("%s is not an enum constant of %s: %s", constant, maybeEnum, key));
868868
}
869869
}
870870
}

0 commit comments

Comments
 (0)