Moti Asayag has posted comments on this change.

Change subject: core: Adding the CpuQos entity
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.ovirt.org/#/c/27662/2/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/qos/CpuQos.java
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/qos/CpuQos.java:

Line 10:     public CpuQos() {
Line 11:         super(QosType.CPU);
Line 12:     }
Line 13: 
Line 14:     private static final long serialVersionUID = -7919774054197264133L;
please move class members to the head of the class.
Line 15: 
Line 16:     @ConfiguredRange(min = 1, maxConfigValue = 
ConfigValues.maxCpuLimitQosValue,
Line 17:             message = "ACTION_TYPE_FAILED_QOS_OUT_OF_RANGE_VALUES")
Line 18:     private Integer cpuLimit;


Line 18:     private Integer cpuLimit;
Line 19: 
Line 20:     @Override
Line 21:     public int valuesHashCode() {
Line 22:         final int prime = 31;
why not to generate the hashCode() method and use it ? (even use it from here) ?
Line 23:         int result = super.hashCode();
Line 24:         result = prime * result + ((cpuLimit == null) ? 0 : 
cpuLimit.hashCode());
Line 25:         return result;
Line 26:     }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I2134a778d70b3c9ff3e78cc38282a515250b7cf2
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Kobi Ianko <[email protected]>
Gerrit-Reviewer: Moti Asayag <[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