Fix warnings and javadocs in sal-akka-raft
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / DefaultConfigParamsImpl.java
index f5f410c75b5f6117bd1f3fea6371d521a971517a..6faf5df2e89c12ab7ed30137757e9cc4c4339401 100644 (file)
@@ -174,8 +174,7 @@ public class DefaultConfigParamsImpl implements ConfigParams {
                 String className = DefaultConfigParamsImpl.this.customRaftPolicyImplementationClass;
                 LOG.info("Trying to use custom RaftPolicy {}", className);
                 Class<?> c = Class.forName(className);
-                RaftPolicy obj = (RaftPolicy)c.newInstance();
-                return obj;
+                return (RaftPolicy)c.newInstance();
             } catch (Exception e) {
                 if(LOG.isDebugEnabled()) {
                     LOG.error("Could not create custom raft policy, will stick with default", e);