You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/06/15 11:06:54 UTC
[04/13] git commit: updated refs/heads/master to 967da97
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 <ro...@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 <rs...@gmail.com>
Authored: Sun Jun 14 00:04:44 2015 +0200
Committer: Rohit Yadav <ro...@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());