File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
exist-core/src/main/java/org/exist Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public InputStream getInputStream() throws IOException {
103
103
@ Override
104
104
public String getContent () throws IOException {
105
105
checkEncoding ();
106
- return new String ( Files .readAllBytes (path ) , encoding );
106
+ return Files .readString (path , encoding );
107
107
}
108
108
109
109
@ Override
Original file line number Diff line number Diff line change @@ -722,7 +722,7 @@ private XmldbURI prepend(final XmldbURI uri) {
722
722
.map (h -> h .resolve ("etc" ).resolve (INIT_COLLECTION_CONFIG ))
723
723
.orElse (Paths .get ("etc" ).resolve (INIT_COLLECTION_CONFIG ));
724
724
if (Files .exists (fInitCollectionConfig )) {
725
- return new String ( Files .readAllBytes (fInitCollectionConfig ), UTF_8 );
725
+ return Files .readString (fInitCollectionConfig );
726
726
}
727
727
728
728
// 2) fallback to attempting to load from classpath
You can’t perform that action at this time.
0 commit comments