Allon Mureinik has uploaded a new change for review.

Change subject: engine: GetAttachmentServlet proper String.format
......................................................................

engine: GetAttachmentServlet proper String.format

Used the proper String formatting instead of the (wrong) message format.

This patch solves the VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED
FindBugs error in this class.

Change-Id: I69bec58a0cd28d00835c6d4d2c83a9ae9d4aec6c
Signed-off-by: Allon Mureinik <[email protected]>
---
M 
backend/manager/modules/root/src/main/java/org/ovirt/engine/core/GetAttachmentServlet.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/47/12747/1

diff --git 
a/backend/manager/modules/root/src/main/java/org/ovirt/engine/core/GetAttachmentServlet.java
 
b/backend/manager/modules/root/src/main/java/org/ovirt/engine/core/GetAttachmentServlet.java
index 9b5801f..bf0693c 100644
--- 
a/backend/manager/modules/root/src/main/java/org/ovirt/engine/core/GetAttachmentServlet.java
+++ 
b/backend/manager/modules/root/src/main/java/org/ovirt/engine/core/GetAttachmentServlet.java
@@ -50,7 +50,7 @@
                 throw new IOException("Error when writing to response stream");
             }
         } else {
-            throw new ServletException(String.format("Unsupported encoding 
type {0}", encodingType));
+            throw new ServletException(String.format("Unsupported encoding 
type %s", encodingType));
         }
     }
 }


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I69bec58a0cd28d00835c6d4d2c83a9ae9d4aec6c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to