mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-14 08:23:45 +00:00
[Java] Remove unnecessary String.format from jersey2, jersey3, native (#21870)
This commit is contained in:
parent
20d5126b17
commit
d1df75c61d
@ -95,7 +95,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
|
|
||||||
{{/anyOf}}
|
{{/anyOf}}
|
||||||
{{/composedSchemas}}
|
{{/composedSchemas}}
|
||||||
throw new IOException(String.format("Failed deserialization for {{classname}}: no match found"));
|
throw new IOException("Failed deserialization for {{classname}}: no match found");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -95,7 +95,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
|
|
||||||
{{/anyOf}}
|
{{/anyOf}}
|
||||||
{{/composedSchemas}}
|
{{/composedSchemas}}
|
||||||
throw new IOException(String.format("Failed deserialization for {{classname}}: no match found"));
|
throw new IOException("Failed deserialization for {{classname}}: no match found");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -79,7 +79,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
}
|
}
|
||||||
|
|
||||||
{{/anyOf}}
|
{{/anyOf}}
|
||||||
throw new IOException(String.format("Failed deserialization for {{classname}}: no match found"));
|
throw new IOException("Failed deserialization for {{classname}}: no match found");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -113,7 +113,7 @@ public class GmFruit extends AbstractOpenApiSchema {
|
|||||||
log.log(Level.FINER, "Input data does not match 'GmFruit'", e);
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -141,7 +141,7 @@ public class MammalAnyof extends AbstractOpenApiSchema {
|
|||||||
log.log(Level.FINER, "Input data does not match 'MammalAnyof'", e);
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -109,7 +109,7 @@ public class GmFruit extends AbstractOpenApiSchema {
|
|||||||
log.log(Level.FINER, "Input data does not match 'GmFruit'", e);
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -111,7 +111,7 @@ public class GmFruit extends AbstractOpenApiSchema {
|
|||||||
log.log(Level.FINER, "Input data does not match 'GmFruit'", e);
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -111,7 +111,7 @@ public class GmFruit extends AbstractOpenApiSchema {
|
|||||||
log.log(Level.FINER, "Input data does not match 'GmFruit'", e);
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -139,7 +139,7 @@ public class MammalAnyof extends AbstractOpenApiSchema {
|
|||||||
log.log(Level.FINER, "Input data does not match 'MammalAnyof'", e);
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user