clean some compilation warnings 38/74738/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Wed, 1 Aug 2018 13:04:04 +0000 (15:04 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Wed, 1 Aug 2018 13:04:04 +0000 (15:04 +0200)
mostly remove LineLength warnings introduced in Fluorine bump changes

Change-Id: I1ab4cd671ad7a453abd2c5a158a7590bda7ca1ce
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
inventory/src/main/java/org/opendaylight/transportpce/inventory/job/PeriodicDeviceBackupJob.java
inventory/src/main/java/org/opendaylight/transportpce/inventory/query/Queries.java
olm/src/main/java/org/opendaylight/transportpce/olm/OlmPowerServiceRpcImpl.java
olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmt.java
pce/src/main/java/org/opendaylight/transportpce/pce/impl/PceServiceRPCImpl.java
renderer/src/main/java/org/opendaylight/transportpce/renderer/rpcs/TransportPCEServicePathRPCImpl.java
renderer/src/test/java/org/opendaylight/transportpce/renderer/stub/OlmServiceStub.java
servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/impl/ServicehandlerImpl.java
test-common/src/main/java/org/opendaylight/transportpce/test/common/DataStoreContextImpl.java
tests/stubpce/src/main/java/org/opendaylight/transportpce/stubpce/impl/StubpceImpl.java

index a99b4def0f71deedf676bd01a17ca22eaa164d61..a97d140c6f2cea0925010f242e006b76a6ac81d1 100644 (file)
@@ -228,7 +228,7 @@ public class PeriodicDeviceBackupJob implements Runnable {
             return "";
         }
         long count = netconfNode.getAvailableCapabilities().getAvailableCapability().stream()
-                .filter(cp -> (cp.getCapability() != null) && cp.getCapability().contains(ORG_OPENROADM_DEVICE)).count();
+            .filter(cp -> (cp.getCapability() != null) && cp.getCapability().contains(ORG_OPENROADM_DEVICE)).count();
         if (count < 1) {
             LOG.trace("The node {} has not capabilities of OpenROADMDevice", node);
             return "";
index 8438fda5f4f2927d3dd1d4bba8265ce2143a7240..eae4147e5505a124f0bf866a00f3a5711322fb78 100644 (file)
@@ -81,7 +81,7 @@ public final class Queries {
         return new Query();
     }
 
-    public final static class Query {
+    public static final class Query {
         private String sql;
         private String schema;
 
index c0dfb20549a013aac5bfe17e9a24214481f92fd8..d793f6d70951ae7f17f9ba8246035c19db8800ab 100644 (file)
@@ -104,7 +104,8 @@ public class OlmPowerServiceRpcImpl implements OlmService {
      * @return Result of the request
      */
     @Override
-    public  ListenableFuture<RpcResult<ServicePowerTurndownOutput>> servicePowerTurndown(ServicePowerTurndownInput input) {
+    public ListenableFuture<RpcResult<ServicePowerTurndownOutput>>
+            servicePowerTurndown(ServicePowerTurndownInput input) {
         return RpcResultBuilder.success(this.olmPowerService.servicePowerTurndown(input)).buildFuture();
     }
 
@@ -131,7 +132,8 @@ public class OlmPowerServiceRpcImpl implements OlmService {
      * @return Result of the request
      */
     @Override
-    public ListenableFuture<RpcResult<CalculateSpanlossBaseOutput>> calculateSpanlossBase(CalculateSpanlossBaseInput input) {
+    public ListenableFuture<RpcResult<CalculateSpanlossBaseOutput>>
+            calculateSpanlossBase(CalculateSpanlossBaseInput input) {
         return RpcResultBuilder.success(this.olmPowerService.calculateSpanlossBase(input)).buildFuture();
     }
 
@@ -145,4 +147,4 @@ public class OlmPowerServiceRpcImpl implements OlmService {
     public ListenableFuture<RpcResult<ServicePowerResetOutput>> servicePowerReset(ServicePowerResetInput input) {
         return RpcResultBuilder.success(this.olmPowerService.servicePowerReset(input)).buildFuture();
     }
-}
\ No newline at end of file
+}
index 45172d4a559d9cb6d41cc5f5aa43de7c135495e7..dc4dbbc7738bf2232f460857cd7001f310241be9 100644 (file)
@@ -171,7 +171,8 @@ public class PowerMgmt {
                         Mapping portMapping = mappingObjectOptional.get();
                         Optional<Interface> interfaceOpt;
                         try {
-                            interfaceOpt = this.openRoadmInterfaces.getInterface(nodeId, portMapping.getSupportingOts());
+                            interfaceOpt =
+                                this.openRoadmInterfaces.getInterface(nodeId, portMapping.getSupportingOts());
                         } catch (OpenRoadmInterfaceException ex) {
                             LOG.error("Failed to get interface {} from node {}!", portMapping.getSupportingOts(),
                                     nodeId, ex);
@@ -310,7 +311,8 @@ public class PowerMgmt {
         if (nodeInterfaceOpt.isPresent()) {
             InterfaceBuilder intfBuilder = new InterfaceBuilder(nodeInterfaceOpt.get());
             intfBuilder.setAdministrativeState(AdminStates.OutOfService);
-            Future<Optional<DeviceTransaction>> deviceTxFuture = this.deviceTransactionManager.getDeviceTransaction(nodeId);
+            Future<Optional<DeviceTransaction>> deviceTxFuture =
+                this.deviceTransactionManager.getDeviceTransaction(nodeId);
             DeviceTransaction deviceTx;
             try {
                 Optional<DeviceTransaction> deviceTxOpt = deviceTxFuture.get();
@@ -460,7 +462,8 @@ public class PowerMgmt {
                     org.opendaylight.yang.gen.v1.http.org.openroadm.optical.channel.interfaces.rev161014
                             .Interface1.class, new Interface1Builder().setOch(ochBuilder.build()).build());
 
-            Future<Optional<DeviceTransaction>> deviceTxFuture = this.deviceTransactionManager.getDeviceTransaction(nodeId);
+            Future<Optional<DeviceTransaction>> deviceTxFuture =
+                this.deviceTransactionManager.getDeviceTransaction(nodeId);
             DeviceTransaction deviceTx;
             try {
                 Optional<DeviceTransaction> deviceTxOpt = deviceTxFuture.get();
index 824550d3276518678c4735e205bea3342ef88617..27b91ce3935d93749eb9ba72759e31815a1b6ba8 100755 (executable)
@@ -38,14 +38,16 @@ public class PceServiceRPCImpl implements PceService {
     }
 
     @Override
-    public ListenableFuture<RpcResult<CancelResourceReserveOutput>> cancelResourceReserve(CancelResourceReserveInput input) {
+    public ListenableFuture<RpcResult<CancelResourceReserveOutput>>
+            cancelResourceReserve(CancelResourceReserveInput input) {
         LOG.info("RPC cancelResourceReserve request received");
         return RpcResultBuilder.success(this.pathComputationService.cancelResourceReserve(input)).buildFuture();
     }
 
 
     @Override
-    public ListenableFuture<RpcResult<PathComputationRequestOutput>> pathComputationRequest(PathComputationRequestInput input) {
+    public ListenableFuture<RpcResult<PathComputationRequestOutput>>
+            pathComputationRequest(PathComputationRequestInput input) {
         LOG.info("RPC path computation request received");
         return RpcResultBuilder.success(this.pathComputationService.pathComputationRequest(input)).buildFuture();
     }
index be29295f063a09a4b24c2bc5c3fa643f46e13df0..c15a936382de0f839ea3faa6362ad08015f8a928 100644 (file)
@@ -34,7 +34,8 @@ public class TransportPCEServicePathRPCImpl implements TransportpceServicepathSe
     }
 
     @Override
-    public ListenableFuture<RpcResult<CancelResourceReserveOutput>> cancelResourceReserve(CancelResourceReserveInput input) {
+    public ListenableFuture<RpcResult<CancelResourceReserveOutput>>
+            cancelResourceReserve(CancelResourceReserveInput input) {
         // TODO Auto-generated method stub
         return null;
     }
@@ -54,7 +55,8 @@ public class TransportPCEServicePathRPCImpl implements TransportpceServicepathSe
     }
 
     @Override
-    public ListenableFuture<RpcResult<PathComputationRequestOutput>> pathComputationRequest(PathComputationRequestInput input) {
+    public ListenableFuture<RpcResult<PathComputationRequestOutput>>
+            pathComputationRequest(PathComputationRequestInput input) {
         // TODO Auto-generated method stub
         return null;
     }
index 47308807966cc881b00e622f0c0afc7e19585990..8822b9b76e57aee7753526d6b6f7f2c6e8db60a7 100644 (file)
@@ -51,11 +51,13 @@ public class OlmServiceStub implements OlmService {
         return null;
     }
 
-    @Override public ListenableFuture<RpcResult<ServicePowerResetOutput>> servicePowerReset(ServicePowerResetInput input) {
+    @Override public ListenableFuture<RpcResult<ServicePowerResetOutput>>
+        servicePowerReset(ServicePowerResetInput input) {
         return null;
     }
 
-    @Override public ListenableFuture<RpcResult<ServicePowerSetupOutput>> servicePowerSetup(ServicePowerSetupInput input) {
+    @Override public ListenableFuture<RpcResult<ServicePowerSetupOutput>>
+        servicePowerSetup(ServicePowerSetupInput input) {
         return RpcResultBuilder.success(new ServicePowerSetupOutputBuilder().build()).buildFuture();
     }
 }
index f4bbc718d1e092ded0d44e57c0d2032e6660c078..b81e9b4d5ac1871729a91b9e2987c58e38f3d36b 100644 (file)
@@ -258,13 +258,15 @@ public class ServicehandlerImpl implements OrgOpenroadmServiceService {
     }
 
     @Override
-    public ListenableFuture<RpcResult<EquipmentNotificationOutput>> equipmentNotification(EquipmentNotificationInput input) {
+    public ListenableFuture<RpcResult<EquipmentNotificationOutput>>
+            equipmentNotification(EquipmentNotificationInput input) {
         // TODO Auto-generated method stub
         return null;
     }
 
     @Override
-    public ListenableFuture<RpcResult<ServiceRerouteConfirmOutput>> serviceRerouteConfirm(ServiceRerouteConfirmInput input) {
+    public ListenableFuture<RpcResult<ServiceRerouteConfirmOutput>>
+            serviceRerouteConfirm(ServiceRerouteConfirmInput input) {
         // TODO Auto-generated method stub
         return null;
     }
@@ -342,7 +344,8 @@ public class ServicehandlerImpl implements OrgOpenroadmServiceService {
     }
 
     @Override
-    public ListenableFuture<RpcResult<NetworkReOptimizationOutput>> networkReOptimization(NetworkReOptimizationInput input) {
+    public ListenableFuture<RpcResult<NetworkReOptimizationOutput>>
+            networkReOptimization(NetworkReOptimizationInput input) {
         // TODO Auto-generated method stub
         return null;
     }
index b9093fe6321e23c8e3dfaebb38758455d83ebf0e..f0dc8f7ef8827a64080b88e1c34835a8692495ab 100644 (file)
@@ -231,7 +231,8 @@ public class DataStoreContextImpl implements DataStoreContext {
          * @return BindingNormalizedNodeCodecRegistry the resulting binding registry
          */
         private BindingNormalizedNodeCodecRegistry createBindingRegistry() {
-            BindingRuntimeContext bindingContext = BindingRuntimeContext.create(this.moduleInfoBackedCntxt, this.schemaContext);
+            BindingRuntimeContext bindingContext =
+                BindingRuntimeContext.create(this.moduleInfoBackedCntxt, this.schemaContext);
             BindingNormalizedNodeCodecRegistry bindingNormalizedNodeCodecRegistry =
                     new BindingNormalizedNodeCodecRegistry(
                             StreamWriterGenerator.create(JavassistUtils.forClassPool(ClassPool.getDefault())));
index a32b6d2fe5107d95156c2d7b952b5e616f3bcf86..a02ca4d5acc6c6f9911c19c4df1d9b7333bc7f36 100644 (file)
@@ -103,7 +103,8 @@ public class StubpceImpl implements StubpceService {
     }
 
     @Override
-    public ListenableFuture<RpcResult<CancelResourceReserveOutput>> cancelResourceReserve(CancelResourceReserveInput input) {
+    public ListenableFuture<RpcResult<CancelResourceReserveOutput>>
+            cancelResourceReserve(CancelResourceReserveInput input) {
         LOG.info("RPC cancelResourceReserve  request received");
         String message = "";
         String responseCode = "";
@@ -194,7 +195,8 @@ public class StubpceImpl implements StubpceService {
     }
 
     @Override
-    public ListenableFuture<RpcResult<PathComputationRequestOutput>> pathComputationRequest(PathComputationRequestInput input) {
+    public ListenableFuture<RpcResult<PathComputationRequestOutput>>
+            pathComputationRequest(PathComputationRequestInput input) {
         LOG.info("RPC pathcomputation request received");
         String message = "";
         String responseCode = "";
@@ -277,14 +279,17 @@ public class StubpceImpl implements StubpceService {
                                             .setNotificationType(ServicePathNotificationTypes.PathComputationRequest)
                                             .setServiceName(input.getServiceName()).setStatus(RpcStatusEx.Successful)
                                             .setStatusMessage(this.message);
-                                    StubpceImpl.this.pathDescriptionBuilder = StubpceImpl.this.sendingPCE.getPathDescription();
+                                    StubpceImpl.this.pathDescriptionBuilder =
+                                        StubpceImpl.this.sendingPCE.getPathDescription();
                                     if (StubpceImpl.this.pathDescriptionBuilder != null) {
                                         PathDescription pathDescription = new org.opendaylight.yang.gen.v1.http.org
-                                                .transportpce.b.c._interface.servicepath.rev170426.service.path
-                                                .rpc.result.PathDescriptionBuilder()
-                                                .setAToZDirection(StubpceImpl.this.pathDescriptionBuilder.getAToZDirection())
-                                                .setZToADirection(StubpceImpl.this.pathDescriptionBuilder.getZToADirection())
-                                                .build();
+                                            .transportpce.b.c._interface.servicepath.rev170426.service.path
+                                            .rpc.result.PathDescriptionBuilder()
+                                            .setAToZDirection(
+                                                StubpceImpl.this.pathDescriptionBuilder.getAToZDirection())
+                                            .setZToADirection(
+                                                StubpceImpl.this.pathDescriptionBuilder.getZToADirection())
+                                            .build();
                                         tmp.setPathDescription(new PathDescriptionBuilder()
                                                 .setAToZDirection(pathDescription.getAToZDirection())
                                                 .setZToADirection(pathDescription.getZToADirection())