From 9d9ce54c6f7365b58c10d4a4fb2f1b280d3ec482 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 22 Mar 2017 02:42:40 +0100 Subject: [PATCH] please sonar --- examples/java/cloud/masterworker/Master.java | 2 -- src/bindings/java/org/simgrid/msg/VM.java | 6 +++--- src/surf/ptask_L07.cpp | 6 +++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/examples/java/cloud/masterworker/Master.java b/examples/java/cloud/masterworker/Master.java index c7012cdf04..ea80d77a67 100644 --- a/examples/java/cloud/masterworker/Master.java +++ b/examples/java/cloud/masterworker/Master.java @@ -5,8 +5,6 @@ package cloud.masterworker; -import java.util.ArrayList; - import org.simgrid.msg.Host; import org.simgrid.msg.Msg; import org.simgrid.msg.MsgException; diff --git a/src/bindings/java/org/simgrid/msg/VM.java b/src/bindings/java/org/simgrid/msg/VM.java index 30b88524c4..8338a79c50 100644 --- a/src/bindings/java/org/simgrid/msg/VM.java +++ b/src/bindings/java/org/simgrid/msg/VM.java @@ -33,10 +33,10 @@ public class VM extends Host { } /** Retrieve the list of all existing VMs */ - public native static VM[] all(); + public static native VM[] all(); /** Retrieve a VM from its name */ - public native static VM getVMByName(String name); + public static native VM getVMByName(String name); /** Shutdown and unref the VM. * @@ -107,7 +107,7 @@ public class VM extends Host { // If the migration correcly returned, then we should change the currentHost value. this.currentHost = destination; } - private native void nativeMigration(Host destination) throws Exception; + private native void nativeMigration(Host destination) throws MsgException; /** Immediately suspend the execution of all processes within the given VM * diff --git a/src/surf/ptask_L07.cpp b/src/surf/ptask_L07.cpp index 19e79500a2..14e5cb136b 100644 --- a/src/surf/ptask_L07.cpp +++ b/src/surf/ptask_L07.cpp @@ -53,7 +53,7 @@ CpuL07Model::CpuL07Model(HostL07Model *hmodel,lmm_system_t sys) { maxminSystem_ = sys; } -CpuL07Model::~CpuL07Model() {} +CpuL07Model::~CpuL07Model() = default; NetworkL07Model::NetworkL07Model(HostL07Model *hmodel, lmm_system_t sys) : NetworkModel() @@ -62,7 +62,7 @@ NetworkL07Model::NetworkL07Model(HostL07Model *hmodel, lmm_system_t sys) maxminSystem_ = sys; loopback_ = createLink("__loopback__", 498000000, 0.000015, SURF_LINK_FATPIPE); } -NetworkL07Model::~NetworkL07Model() {} +NetworkL07Model::~NetworkL07Model() = default; double HostL07Model::nextOccuringEvent(double now) @@ -377,7 +377,7 @@ void LinkL07::setLatency(double value) action->updateBound(); } } -LinkL07::~LinkL07() {} +LinkL07::~LinkL07() = default; /********** * Action * -- 2.20.1