Mass conversion to static methods
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / netconf / sal / restconf / impl / RestconfImpl.java
index ea24dbf062984911cfbd7b045ff16a5038f1b973..2c025d8e5c5c0d396d4ddf47eef2183e4a24180a 100644 (file)
@@ -350,7 +350,7 @@ public class RestconfImpl implements RestconfService {
      *            - mount point, if in use otherwise null
      * @return {@link NormalizedNodeContext}
      */
-    private NormalizedNodeContext operationsFromModulesToNormalizedContext(final Set<Module> modules,
+    private static NormalizedNodeContext operationsFromModulesToNormalizedContext(final Set<Module> modules,
             final DOMMountPoint mountPoint) {
 
         final Collection<Module> neededModules = new ArrayList<>(modules.size());
@@ -1149,7 +1149,7 @@ public class RestconfImpl implements RestconfService {
         throw new RestconfDocumentedException(msg);
     }
 
-    private Date parseDateFromQueryParam(final Entry<String, List<String>> entry) {
+    private static Date parseDateFromQueryParam(final Entry<String, List<String>> entry) {
         final DateAndTime event = new DateAndTime(entry.getValue().iterator().next());
         String numOf_ms = "";
         final String value = event.getValue();
@@ -1179,7 +1179,7 @@ public class RestconfImpl implements RestconfService {
      * @return {@link InstanceIdentifierContext} of location leaf for
      *         notification
      */
-    private InstanceIdentifierContext<?> prepareIIDSubsStreamOutput() {
+    private static InstanceIdentifierContext<?> prepareIIDSubsStreamOutput() {
         final QName qnameBase = QName.create("subscribe:to:notification", "2016-10-28", "notifi");
         final SchemaContext schemaCtx = ControllerContext.getInstance().getGlobalSchema();
         final DataSchemaNode location = ((ContainerSchemaNode) schemaCtx
@@ -1502,8 +1502,8 @@ public class RestconfImpl implements RestconfService {
      *            - contains list of qnames of notifications
      * @return - checked future object
      */
-    private CheckedFuture<DOMRpcResult, DOMRpcException>
-            invokeSalRemoteRpcNotifiStrRPC(final NormalizedNodeContext payload) {
+    private static CheckedFuture<DOMRpcResult, DOMRpcException> invokeSalRemoteRpcNotifiStrRPC(
+            final NormalizedNodeContext payload) {
         final ContainerNode data = (ContainerNode) payload.getData();
         LeafSetNode leafSet = null;
         String outputType = "XML";