This is an automated email from the ASF dual-hosted git repository.

rec pushed a commit to branch UIMA-6469-Cleaning-up-file-handling-code
in repository https://gitbox.apache.org/repos/asf/uima-uimaj.git


The following commit(s) were added to 
refs/heads/UIMA-6469-Cleaning-up-file-handling-code by this push:
     new 7aab4a82a [UIMA-6469] Cleaning up file-handling code
7aab4a82a is described below

commit 7aab4a82a7c0cc8f79476b60e86a15037ee2ea98
Author: Richard Eckart de Castilho <[email protected]>
AuthorDate: Fri Jun 3 08:37:35 2022 +0200

    [UIMA-6469] Cleaning up file-handling code
    
    - Formatting
---
 .../org/apache/uima/resource/impl/RelativePathResolver_impl.java    | 2 +-
 .../apache/uima/resource/impl/RelativePathResolver_implTest.java    | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/uimaj-core/src/main/java/org/apache/uima/resource/impl/RelativePathResolver_impl.java
 
b/uimaj-core/src/main/java/org/apache/uima/resource/impl/RelativePathResolver_impl.java
index 392912414..789dd25f2 100644
--- 
a/uimaj-core/src/main/java/org/apache/uima/resource/impl/RelativePathResolver_impl.java
+++ 
b/uimaj-core/src/main/java/org/apache/uima/resource/impl/RelativePathResolver_impl.java
@@ -112,7 +112,7 @@ public class RelativePathResolver_impl implements 
RelativePathResolver {
 
     mDataPath = unmodifiableList(Arrays.stream(aPaths) //
             .map(File::getPath) //
-            .map(s-> s.replace(File.separator, "/"))
+            .map(s -> s.replace(File.separator, "/")) //
             .collect(toList()));
     mBaseUrls = new URL[aPaths.length];
     for (int i = 0; i < aPaths.length; i++) {
diff --git 
a/uimaj-core/src/test/java/org/apache/uima/resource/impl/RelativePathResolver_implTest.java
 
b/uimaj-core/src/test/java/org/apache/uima/resource/impl/RelativePathResolver_implTest.java
index 057ae2d4f..c099fef71 100644
--- 
a/uimaj-core/src/test/java/org/apache/uima/resource/impl/RelativePathResolver_implTest.java
+++ 
b/uimaj-core/src/test/java/org/apache/uima/resource/impl/RelativePathResolver_implTest.java
@@ -38,8 +38,8 @@ public class RelativePathResolver_implTest {
   private final static String PATH_SEP = System.getProperty("path.separator");
   private RelativePathResolver_impl sut;
 
-  private final static String element1 =  "/this/is/a/test";
-  private final static String element2 =  "/another/test" ;
+  private final static String element1 = "/this/is/a/test";
+  private final static String element2 = "/another/test";
   private final static String[] expectedElements = { element1, element2 };
   private final static String expectedPath = String.join(PATH_SEP, 
expectedElements);
 
@@ -105,7 +105,7 @@ public class RelativePathResolver_implTest {
 
   @SuppressWarnings("deprecation")
   private void assertThatGettersReturnTheRightValues(RelativePathResolver_impl 
aResolver) {
-    
+
     assertThat(aResolver.getDataPathElements()) //
             .containsExactly(expectedElements);
 

Reply via email to