Fix findbugs warnings
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / common / actor / MeteringBehavior.java
index 523417ec764347364062ce3ae35b7fcb0d9060aa..63958912c48e8832a4c4b144eab84822e1b24b7a 100644 (file)
@@ -61,8 +61,8 @@ public class MeteringBehavior implements Procedure<Object> {
     }
 
     private void init(final String actorName) {
-        actorQualifiedName = new StringBuilder(meteredActor.getSelf().path().parent().toStringWithoutAddress())
-                .append("/").append(actorName).toString();
+        actorQualifiedName = meteredActor.getSelf().path().parent().toStringWithoutAddress()
+                + "/" + actorName;
 
         final String msgProcessingTime = MetricRegistry.name(actorQualifiedName, MSG_PROCESSING_RATE);
         msgProcessingTimer = metricRegistry.timer(msgProcessingTime);
@@ -104,7 +104,7 @@ public class MeteringBehavior implements Procedure<Object> {
             meteredActor.onReceive(message);
         } catch (Throwable e) {
             Throwables.propagateIfPossible(e, Exception.class);
-            throw Throwables.propagate(e);
+            throw new RuntimeException(e);
         } finally {
             //stop timers
             contextByMsgType.stop();