Ewoud Kohl van Wijngaarden has posted comments on this change.
Change subject: core: Libosinfo service Xml loading impl
......................................................................
Patch Set 4: I would prefer that you didn't submit this
(3 inline comments)
....................................................
File
backend/manager/modules/services/libosinfo/interface/src/main/java/org/ovirt/engine/core/services/libosinfo/LibosinfoServiceXmlImpl.java
Line 20:
Line 21: INSTANCE;
Line 22:
Line 23: private final String i386 = "i386";
Line 24: private final String x86_64 = "x86_64";
My java is a bit rusty, but any particular reason not to make these static?
Line 25:
Line 26: private Map<String, Os> all;
Line 27:
Line 28: private Map<String, Os> osInfoMap = new HashMap<String, Os>();
Line 86: public long getRecommendedRam(VmOsType os) {
Line 87: return getResource(os.getShortId(),
os.getIs64Bit()).getRecommended().getRam();
Line 88: }
Line 89:
Line 90: private Resources getResource(String shortId, boolean is64Bit) {
It seems a bit odd that you have a getResource (singular) and it returns
Resources (plural).
Line 91: String arch = is64Bit ? x86_64 : i386;
Line 92: Os os = getByShortId(shortId);
Line 93: if (os != null) {
Line 94: for (Resources resource : os.getResources()) {
....................................................
File backend/manager/modules/services/libosinfo/types/pom.xml
Line 24: </execution>
Line 25: </executions>
Line 26: <configuration>
Line 27: <generatePackage>${groupId}</generatePackage>
Line 28: <extension>true</extension>
Looks like you replaced spaces by a tab here.
Line 29: <args>
Line 30: <arg>-XtoString</arg>
Line 31: <arg>-Xequals</arg>
Line 32: <arg>-XhashCode</arg>
--
To view, visit http://gerrit.ovirt.org/8473
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I2d4c764948f714173306ceb758e0334f05fc9527
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Ewoud Kohl van Wijngaarden <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches