String performance and maintenability
[controller.git] / opendaylight / config / config-manager-facade-xml / src / main / java / org / opendaylight / controller / config / facade / xml / strategy / EditStrategyType.java
index bf11f2a13770b3403f56563e64080ab49ff79980..506159279138ee02e7fcfc3027c8410b4cd5cd72 100644 (file)
@@ -46,10 +46,11 @@ public enum EditStrategyType {
             EditStrategyType defaultStrategy) throws OperationNotPermittedException {
         if (defaultStrategy.isEnforcing()) {
             if (parsedStrategy != defaultStrategy) {
-                throw new OperationNotPermittedException(String.format("With " + defaultStrategy
-                        + " as default-operation operations on module elements are not permitted"
-                        + "since the default option is restrictive"),
-                        DocumentedException.ErrorType.APPLICATION, DocumentedException.ErrorTag.OPERATION_FAILED,
+                throw new OperationNotPermittedException("With " + defaultStrategy
+                        + " as default-operation operations on module elements are not permitted since the default "
+                        + "option is restrictive",
+                        DocumentedException.ErrorType.APPLICATION,
+                        DocumentedException.ErrorTag.OPERATION_FAILED,
                         DocumentedException.ErrorSeverity.ERROR);
             }
         }