mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
Use constant
This commit is contained in:
@@ -72,7 +72,7 @@ class ResourceManagerAdapter<MODEL_OBJECT extends ModelObject, DTO extends HalRe
|
||||
*/
|
||||
public Response create(DTO dto, Supplier<MODEL_OBJECT> modelObjectSupplier, Function<MODEL_OBJECT, String> uriCreator) throws IOException, EXCEPTION {
|
||||
if (dto == null) {
|
||||
return Response.status(400).build();
|
||||
return Response.status(BAD_REQUEST).build();
|
||||
}
|
||||
MODEL_OBJECT modelObject = modelObjectSupplier.get();
|
||||
manager.create(modelObject);
|
||||
|
||||
Reference in New Issue
Block a user