Alissa Bonas has posted comments on this change. Change subject: pki: cleanup: favor Charset.forName() over plain string ......................................................................
Patch Set 1: (1 inline comment) .................................................... File backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/crypt/EncryptionUtils.java Line 4: import java.io.FileInputStream; Line 5: import java.io.IOException; Line 6: import java.io.InputStream; Line 7: import java.math.BigInteger; Line 8: import java.nio.charset.Charset; I think each dev has his/her own boundaries on code reuse. Matter of style in some cases. So it's up to you whether to change this code or not, we invested a lot of time (perhaps too much) discussing this very small corner as it is :) Regarding duplicate strings, don't know about bytecode, but strings literals (which are actually interned strings) are cached in internal pool that is stored in permgen memory (till java 7, in 7 - moved to heap according to their docs) if I remember correctly. I would not worry about performance here anyway, my idea was avoid "copy pasting", but as I said - a really small corner, up to you... Line 9: import java.security.GeneralSecurityException; Line 10: import java.security.InvalidKeyException; Line 11: import java.security.Key; Line 12: import java.security.KeyStore; -- To view, visit http://gerrit.ovirt.org/13192 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Id61cad58356820a73683666235d328a72582486b Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com> Gerrit-Reviewer: Alissa Bonas <abo...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches