[Java] Remove unnecessary String.format from jersey2, jersey3, native (#21870)

This commit is contained in:
Jochen Schalanda
2025-09-03 08:17:49 +02:00
committed by GitHub
parent 20d5126b17
commit d1df75c61d
9 changed files with 9 additions and 9 deletions

View File

@@ -95,7 +95,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
{{/anyOf}}
{{/composedSchemas}}
throw new IOException(String.format("Failed deserialization for {{classname}}: no match found"));
throw new IOException("Failed deserialization for {{classname}}: no match found");
}
/**

View File

@@ -95,7 +95,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
{{/anyOf}}
{{/composedSchemas}}
throw new IOException(String.format("Failed deserialization for {{classname}}: no match found"));
throw new IOException("Failed deserialization for {{classname}}: no match found");
}
/**

View File

@@ -79,7 +79,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
}
{{/anyOf}}
throw new IOException(String.format("Failed deserialization for {{classname}}: no match found"));
throw new IOException("Failed deserialization for {{classname}}: no match found");
}
/**

View File

@@ -113,7 +113,7 @@ public class GmFruit extends AbstractOpenApiSchema {
log.log(Level.FINER, "Input data does not match 'GmFruit'", e);
}
throw new IOException(String.format("Failed deserialization for GmFruit: no match found"));
throw new IOException("Failed deserialization for GmFruit: no match found");
}
/**

View File

@@ -141,7 +141,7 @@ public class MammalAnyof extends AbstractOpenApiSchema {
log.log(Level.FINER, "Input data does not match 'MammalAnyof'", e);
}
throw new IOException(String.format("Failed deserialization for MammalAnyof: no match found"));
throw new IOException("Failed deserialization for MammalAnyof: no match found");
}
/**

View File

@@ -109,7 +109,7 @@ public class GmFruit extends AbstractOpenApiSchema {
log.log(Level.FINER, "Input data does not match 'GmFruit'", e);
}
throw new IOException(String.format("Failed deserialization for GmFruit: no match found"));
throw new IOException("Failed deserialization for GmFruit: no match found");
}
/**

View File

@@ -111,7 +111,7 @@ public class GmFruit extends AbstractOpenApiSchema {
log.log(Level.FINER, "Input data does not match 'GmFruit'", e);
}
throw new IOException(String.format("Failed deserialization for GmFruit: no match found"));
throw new IOException("Failed deserialization for GmFruit: no match found");
}
/**

View File

@@ -111,7 +111,7 @@ public class GmFruit extends AbstractOpenApiSchema {
log.log(Level.FINER, "Input data does not match 'GmFruit'", e);
}
throw new IOException(String.format("Failed deserialization for GmFruit: no match found"));
throw new IOException("Failed deserialization for GmFruit: no match found");
}
/**

View File

@@ -139,7 +139,7 @@ public class MammalAnyof extends AbstractOpenApiSchema {
log.log(Level.FINER, "Input data does not match 'MammalAnyof'", e);
}
throw new IOException(String.format("Failed deserialization for MammalAnyof: no match found"));
throw new IOException("Failed deserialization for MammalAnyof: no match found");
}
/**