@@ -23,7 +23,8 @@ public class SetDownloadResourceSize extends AbstractServiceDelegate
2323 public SetDownloadResourceSize (ProcessPluginApi api , long maxDownloadResourceSizeBytes )
2424 {
2525 super (api );
26- this .maxDownloadResourceSizeBytes = Math .min (maxDownloadResourceSizeBytes , ConstantsPing .DOWNLOAD_RESOURCE_SIZE_BYTES_DEFAULT );
26+ this .maxDownloadResourceSizeBytes = Math .min (maxDownloadResourceSizeBytes ,
27+ ConstantsPing .DOWNLOAD_RESOURCE_SIZE_BYTES_DEFAULT );
2728 }
2829
2930 @ Override
@@ -32,8 +33,7 @@ protected void doExecute(DelegateExecution delegateExecution, Variables variable
3233 logger .debug ("Setting download resource size..." );
3334
3435 long downloadResourceSizeBytes = getDownloadResourceSizeBytes (variables );
35- variables .setLong (ExecutionVariables .DOWNLOAD_RESOURCE_SIZE_BYTES .getValue (),
36- downloadResourceSizeBytes );
36+ variables .setLong (ExecutionVariables .DOWNLOAD_RESOURCE_SIZE_BYTES .getValue (), downloadResourceSizeBytes );
3737
3838 logger .debug ("Set download resource size to " + downloadResourceSizeBytes );
3939 }
@@ -44,7 +44,7 @@ private long getDownloadResourceSizeBytes(Variables variables)
4444 variables .getStartTask (), CodeSystem .DsfPing .URL ,
4545 CodeSystem .DsfPing .Code .DOWNLOAD_RESOURCE_SIZE_BYTES .getValue (), DecimalType .class );
4646
47- return downloadResourceSizeType .map (decimalType -> decimalType .getValue ().longValue ()). orElse (
48- maxDownloadResourceSizeBytes );
47+ return downloadResourceSizeType .map (decimalType -> decimalType .getValue ().longValue ())
48+ . orElse ( maxDownloadResourceSizeBytes );
4949 }
5050}
0 commit comments