Gilad Chaplik has posted comments on this change.

Change subject: restapi: add QoS RESTful interface for storage QoS
......................................................................


Patch Set 7:

(1 comment)

new patch to follow.

http://gerrit.ovirt.org/#/c/27097/7/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/QosMapper.java
File 
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/QosMapper.java:

Line 8: import org.ovirt.engine.core.common.businessentities.qos.StorageQos;
Line 9: 
Line 10: public class QosMapper {
Line 11: 
Line 12:     private final static int UNLIMITED = -1;
> Can you use the IntegerMapper.mapNullToMinusOne() method instead of this co
sure.
Line 13: 
Line 14:     @Mapping(from = QosBase.class, to = QoS.class)
Line 15:     public static QoS map(QosBase entity, QoS template) {
Line 16:         QoS model = template != null ? template : new QoS();


-- 
To view, visit http://gerrit.ovirt.org/27097
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I1a9af59277b50554531522802f19046c0051d82f
Gerrit-PatchSet: 7
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Kobi Ianko <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: Ori Liel <[email protected]>
Gerrit-Reviewer: Ravi Nori <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to