Ravi Nori has posted comments on this change.

Change subject: engine: Add infrastructure code for removal of parameter classes
......................................................................


Patch Set 3:

(1 comment)

....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/GenericVdcParameter.java
Line 3: import org.ovirt.engine.core.compat.Guid;
Line 4: 
Line 5: public class GenericVdcParameter<T> extends VdcParameter<T> {
Line 6: 
Line 7:     public final static GenericVdcParameter GUID_ID = new 
GenericVdcParameter<Guid>("GUID_ID", Guid.class);
I see what you are saying. But how is this design better than having one enum 
class with all parameters declared in it (except for size). The enum ensures 
that no two parameters are declared with the same name.

With this design I see no restriction on declaring two parameters with the same 
key and using them to store it in the map.

How do we avoid programmer errors in declaration of parameters?
Line 8: 
Line 9:     /**
Line 10:      * Needed by Json Serialization/Deserialization
Line 11:      */


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I6a0970e492c0eff561888a46b02e47645ff68fc3
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ravi Nori <rn...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Barak Azulay <bazu...@redhat.com>
Gerrit-Reviewer: Ravi Nori <rn...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to