From ba753de9c62bb424b91cb993d9f748881c0d887f Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 1 Jun 2017 06:02:25 +0200 Subject: [PATCH] please codacy: make a private field useful --- src/bindings/java/org/simgrid/msg/VM.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bindings/java/org/simgrid/msg/VM.java b/src/bindings/java/org/simgrid/msg/VM.java index c762c473ce..99f3a3add3 100644 --- a/src/bindings/java/org/simgrid/msg/VM.java +++ b/src/bindings/java/org/simgrid/msg/VM.java @@ -77,6 +77,11 @@ public class VM extends Host { /** Returns whether the given VM is currently suspended */ public native int isSuspended(); + /** Returns the amount of virtual CPUs provided */ + public int getCoreAmount() { + return coreAmount; + } + /** * Natively implemented method create the VM. * @param ramSize size of the RAM that should be allocated (in MB) -- 2.20.1