cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [04/13] git commit: updated refs/heads/master to 967da97
Date Mon, 15 Jun 2015 09:06:54 GMT
Was safe either way as this piece of code should only run in linux, this just gets rid of the
findbugs warning

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #402


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f8b364b7
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f8b364b7
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f8b364b7

Branch: refs/heads/master
Commit: f8b364b7c71c9ad92d8307557471f4f6c8eef1ed
Parents: 3299f23
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 14 00:04:44 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:04:47 2015 +0300

----------------------------------------------------------------------
 .../kvm/src/org/apache/cloudstack/utils/linux/MemStat.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f8b364b7/plugins/hypervisors/kvm/src/org/apache/cloudstack/utils/linux/MemStat.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/org/apache/cloudstack/utils/linux/MemStat.java b/plugins/hypervisors/kvm/src/org/apache/cloudstack/utils/linux/MemStat.java
index 1d6a4fc..2029af3 100644
--- a/plugins/hypervisors/kvm/src/org/apache/cloudstack/utils/linux/MemStat.java
+++ b/plugins/hypervisors/kvm/src/org/apache/cloudstack/utils/linux/MemStat.java
@@ -51,7 +51,7 @@ public class MemStat {
 
     public void refresh() {
         File f = new File(MEMINFO_FILE);
-        try (Scanner scanner = new Scanner(f)) {
+        try (Scanner scanner = new Scanner(f,"UTF-8")) {
             parseFromScanner(scanner);
         } catch (FileNotFoundException ex) {
             throw new RuntimeException("File " + MEMINFO_FILE + " not found:" + ex.toString());


Mime
View raw message