You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2023/10/13 16:42:40 UTC
[causeway] branch master updated: CAUSEWAY-3632: fixes Clob writeTo file
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/master by this push:
new 5e30ba5f1b CAUSEWAY-3632: fixes Clob writeTo file
5e30ba5f1b is described below
commit 5e30ba5f1bc9fc1ebf408f65c77498a6705a7adc
Author: Andi Huber <ah...@apache.org>
AuthorDate: Fri Oct 13 18:42:33 2023 +0200
CAUSEWAY-3632: fixes Clob writeTo file
---
api/applib/src/main/java/org/apache/causeway/applib/value/Clob.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/api/applib/src/main/java/org/apache/causeway/applib/value/Clob.java b/api/applib/src/main/java/org/apache/causeway/applib/value/Clob.java
index f0c18bc308..d1d3d5e962 100644
--- a/api/applib/src/main/java/org/apache/causeway/applib/value/Clob.java
+++ b/api/applib/src/main/java/org/apache/causeway/applib/value/Clob.java
@@ -239,8 +239,8 @@ public final class Clob implements NamedWithMimeType {
if(file==null) {
return; // just ignore
}
- try(val os = new FileOutputStream(file)){
- writeCharsTo(new OutputStreamWriter(os, charset));
+ try(val os = new OutputStreamWriter(new FileOutputStream(file), charset)){
+ writeCharsTo(os);
}
}