Alon Bar-Lev has uploaded a new change for review.

Change subject: pki: cleanup: Format string should use %n rather than \n
......................................................................

pki: cleanup: Format string should use %n rather than \n

Workaround to quiet findbugs... we do need \n...

Change-Id: I6ff7707618243d0d0989819571e425580667b5a2
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/OpenSslCAWrapper.java
1 file changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/89/13189/1

diff --git 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/OpenSslCAWrapper.java
 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/OpenSslCAWrapper.java
index 74eec2d..ef7116c 100644
--- 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/OpenSslCAWrapper.java
+++ 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/OpenSslCAWrapper.java
@@ -35,16 +35,18 @@
 
             return String.format(
                 (
-                    "-----BEGIN CERTIFICATE-----\n" +
+                    "-----BEGIN CERTIFICATE-----%c" +
                     "%1$s" +
-                    "-----END CERTIFICATE-----\n"
+                    "-----END CERTIFICATE-----%c"
                 ),
+                '\n',
                 new Base64(
                     76,
                     new byte[] { (byte)'\n' }
                 ).encodeToString(
                     certificate.getEncoded()
-                )
+                ),
+                '\n'
             );
         }
         finally {


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6ff7707618243d0d0989819571e425580667b5a2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to