Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar cleanups
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 14 Aug 2016 21:40:15 +0000 (23:40 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 14 Aug 2016 21:43:09 +0000 (23:43 +0200)
examples/java/app/bittorrent/MessageTask.java
src/kernel/context/Context.cpp
src/kernel/context/Context.hpp

index d0bac8f..d84bccd 100644 (file)
@@ -39,7 +39,7 @@ public class MessageTask extends Task {
   }
 
   // builds a new bitfield message
   }
 
   // builds a new bitfield message
-  public MessageTask(Type type, String issuerHostname, String mailbox, int peerId, char bitfield[]) {
+  public MessageTask(Type type, String issuerHostname, String mailbox, int peerId, char[] bitfield) {
     this(type,issuerHostname,mailbox,peerId,-1,false,-1,-1);
     this.bitfield = bitfield;
   }
     this(type,issuerHostname,mailbox,peerId,-1,false,-1,-1);
     this.bitfield = bitfield;
   }
index d650e20..81d5cb7 100644 (file)
@@ -38,7 +38,7 @@ namespace context {
 
 ContextFactoryInitializer factory_initializer = nullptr;
 
 
 ContextFactoryInitializer factory_initializer = nullptr;
 
-ContextFactory::~ContextFactory() {}
+ContextFactory::~ContextFactory() = default;
 
 Context* ContextFactory::self()
 {
 
 Context* ContextFactory::self()
 {
@@ -79,9 +79,7 @@ Context::Context(std::function<void()> code,
     SIMIX_context_set_current(this);
 }
 
     SIMIX_context_set_current(this);
 }
 
-Context::~Context()
-{
-}
+Context::~Context() = default;
 
 void Context::stop()
 {
 
 void Context::stop()
 {
@@ -94,9 +92,7 @@ void Context::stop()
   this->iwannadie = true;
 }
 
   this->iwannadie = true;
 }
 
-AttachContext::~AttachContext()
-{
-}
+AttachContext::~AttachContext() = default;
 
 }}}
 
 
 }}}
 
index afe7200..72f73ec 100644 (file)
@@ -41,8 +41,6 @@ namespace simgrid {
 namespace kernel {
 namespace context {
 
 namespace kernel {
 namespace context {
 
-  class Context;
-
   XBT_PUBLIC_CLASS ContextFactory {
   private:
     std::string name_;
   XBT_PUBLIC_CLASS ContextFactory {
   private:
     std::string name_;