fix trailing-whitespace

This commit is contained in:
Marcello Teodori
2022-02-23 23:04:36 +01:00
parent b055060537
commit 92d3f70f4e
46 changed files with 255 additions and 255 deletions

View File

@@ -648,7 +648,7 @@ public class RuntimeExec
}
logger.debug("Result: " + result.toString());
// close output stream (connected to input stream of native subprocess)
// close output stream (connected to input stream of native subprocess)
}
/**

View File

@@ -86,7 +86,7 @@ import java.util.TreeMap;
*
* The transform results in a new version of supplied source file that contains the metadata supplied in the transform
* options.
*
*
* @author Jesper Steen Møller
* @author Derek Hulley
* @author adavis

View File

@@ -50,24 +50,24 @@ import org.springframework.http.ResponseEntity;
* Super class of metadata integration tests. Sub classes should provide the following:
* <p>
* <ul>
* <li>A method providing a
* <li>A method providing a
* Stream of test files: {@code public static Stream<TestFileInfo> engineTransformations()}; </li>
* <li> Provide expected json files (&lt;sourceFilename>"_metadata.json") as resources on the classpath.</li>
* <li> Override the method {@code testTransformation(TestFileInfo testFileInfo)} such that it calls
* <li> Override the method {@code testTransformation(TestFileInfo testFileInfo)} such that it calls
* the super method as a {@code @ParameterizedTest} for example:</li> </ul>
* <pre>
* &#64;ParameterizedTest
*
*
* &#64;MethodSource("engineTransformations")
*
*
* &#64;Override
* public void testTransformation(TestFileInfo testFileInfo)
*
* {
*
* {
* super.testTransformation(TestFileInfo testFileInfo)
* }
* </pre>
* </pre>
*
* @author adavis
* @author dedwards
@@ -81,7 +81,7 @@ public abstract class AbstractMetadataExtractsIT
private final ObjectMapper jsonObjectMapper = new ObjectMapper();
public void testTransformation(TestFileInfo testFileInfo)
{
final String sourceMimetype = testFileInfo.getMimeType();

View File

@@ -165,13 +165,13 @@ public abstract class AbstractTransformerControllerTest
if (testFile != null)
{
try (var inputStream = new FileInputStream(testFile);
var outputStream = new FileOutputStream(targetFile))
var outputStream = new FileOutputStream(targetFile))
{
FileChannel source = inputStream.getChannel();
FileChannel target = outputStream.getChannel();
target.transferFrom(source, 0, source.size());
} catch (Exception e)
} catch (Exception e)
{
throw e;
}
@@ -182,13 +182,13 @@ public abstract class AbstractTransformerControllerTest
if (testFile != null)
{
try (var inputStream = new FileInputStream(testFile);
var outputStream = new FileOutputStream(targetFile))
var outputStream = new FileOutputStream(targetFile))
{
FileChannel source = inputStream.getChannel();
FileChannel target = outputStream.getChannel();
target.transferFrom(source, 0, source.size());
} catch (Exception e)
} catch (Exception e)
{
throw e;
}

View File

@@ -28,7 +28,7 @@ import org.springframework.web.client.RestTemplate;
public class EngineClient
{
private static final RestTemplate REST_TEMPLATE = new RestTemplate();
public static ResponseEntity<Resource> sendTRequest(
final String engineUrl, final String sourceFile,
final String sourceMimetype, final String targetMimetype, final String targetExtension)