Moti Asayag has posted comments on this change.

Change subject: core: removed pointless caching.
......................................................................


Patch Set 17:

(1 comment)

https://gerrit.ovirt.org/#/c/29586/17/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/auditloghandling/AuditLogDirector.java
File 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/auditloghandling/AuditLogDirector.java:

Line 43:     }
Line 44: 
Line 45:     public static String getMessage(AuditLogType logType) {
Line 46:         final String result = getMessageOrNull(logType);
Line 47:         return result == null ? "" : result;
please replace this line with:
  return StringUtils.defaultString(result);

or the two lines with:   
  return StringUtils.defaultString(getMessageOrNull(logType));
Line 48:     }
Line 49: 
Line 50:     protected static String getMessageOrNull(AuditLogType logType) {
Line 51:         final String key = logType.name();


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I7eb5e71aafb8d8fde253d8713fe6cb7f870d3093
Gerrit-PatchSet: 17
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Mucha <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Martin Mucha <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: Oved Ourfali <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: Yevgeny Zaspitsky <[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