Moti Asayag has posted comments on this change.

Change subject: core: Add Collection and Map support to ToStringBuilder
......................................................................


Patch Set 1:

(2 comments)

https://gerrit.ovirt.org/#/c/39720/1/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/ToStringBuilder.java
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/ToStringBuilder.java:

Line 313:      * @param value
Line 314:      *            attribute value
Line 315:      * @return this
Line 316:      */
Line 317:     public ToStringBuilder append(final String name, final Collection 
value) {
please add type argument to Collection.

General comment: there are various warnings for this class due to 
unparameterized types.
Line 318:         appendAttribute(name, value == null ? null : 
Arrays.toString(value.toArray()));
Line 319:         return this;
Line 320:     }
Line 321: 


Line 327:      * @param value
Line 328:      *            attribute value
Line 329:      * @return this
Line 330:      */
Line 331:     public ToStringBuilder append(final String name, final Map value) 
{
same for Map
Line 332:         append(name, value == null ? null : value.entrySet());
Line 333:         return this;
Line 334:     }
Line 335: 


-- 
To view, visit https://gerrit.ovirt.org/39720
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ie6ae7bced08092e4f1e635be394edc940d7083b4
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <[email protected]>
Gerrit-Reviewer: Martin Peřina <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: Oved Ourfali <[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