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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new e2fe174  Polished
e2fe174 is described below

commit e2fe174b1df863a1417021e99597fcb204f4b173
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri May 21 15:44:02 2021 +0200

    Polished
---
 components/camel-grape/pom.xml                                        | 3 ---
 .../java/org/apache/camel/component/grape/FilePatchesRepository.java  | 4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/components/camel-grape/pom.xml b/components/camel-grape/pom.xml
index b98b038..3b03f31 100644
--- a/components/camel-grape/pom.xml
+++ b/components/camel-grape/pom.xml
@@ -32,9 +32,6 @@
     <description>The grape component allows you to fetch, load and manage 
additional jars when CamelContext is running
     </description>
 
-    <properties>
-    </properties>
-
     <dependencies>
         <dependency>
             <groupId>commons-io</groupId>
diff --git 
a/components/camel-grape/src/main/java/org/apache/camel/component/grape/FilePatchesRepository.java
 
b/components/camel-grape/src/main/java/org/apache/camel/component/grape/FilePatchesRepository.java
index a74293b..ed50910 100644
--- 
a/components/camel-grape/src/main/java/org/apache/camel/component/grape/FilePatchesRepository.java
+++ 
b/components/camel-grape/src/main/java/org/apache/camel/component/grape/FilePatchesRepository.java
@@ -20,6 +20,7 @@ import java.io.File;
 import java.io.FileReader;
 import java.io.IOError;
 import java.io.IOException;
+import java.nio.charset.StandardCharsets;
 import java.nio.file.Paths;
 import java.util.List;
 
@@ -41,7 +42,6 @@ public class FilePatchesRepository implements 
PatchesRepository {
                 if (repository.getParentFile() != null) {
                     repository.getParentFile().mkdirs();
                 }
-
                 repository.createNewFile();
             }
         } catch (IOException e) {
@@ -54,7 +54,7 @@ public class FilePatchesRepository implements 
PatchesRepository {
     @Override
     public void install(String coordinates) {
         try {
-            FileUtils.writeStringToFile(repository, coordinates + "\n", true);
+            FileUtils.writeStringToFile(repository, coordinates + "\n", 
StandardCharsets.UTF_8.name(), true);
         } catch (IOException e) {
             throw new IOError(e);
         }

Reply via email to