2727import java .io .FileOutputStream ;
2828import java .io .IOException ;
2929import java .io .InputStream ;
30- import java .nio .charset . Charset ;
30+ import java .nio .file . Files ;
3131import java .util .Properties ;
3232import java .util .Random ;
3333
34- import org .apache .jackrabbit .guava .common .io .Files ;
3534import org .apache .jackrabbit .core .data .DataIdentifier ;
3635import org .apache .jackrabbit .core .data .DataRecord ;
3736import org .apache .jackrabbit .core .data .DataStoreException ;
@@ -50,7 +49,7 @@ public void mappingFileData() throws Exception {
5049 File root = tempFolder .getRoot ();
5150 File mappingFile = new File (root , "mapping.txt" );
5251 String text = "1000|foo\n 2000|bar" ;
53- Files .write ( text , mappingFile , Charset . defaultCharset () );
52+ Files .writeString ( mappingFile . toPath (), text );
5453
5554 LengthCachingDataStore fds = new LengthCachingDataStore ();
5655 fds .setDelegateClass (FileDataStore .class .getName ());
@@ -92,7 +91,7 @@ public void delegateRecordTest() throws Exception{
9291
9392 File mappingFile = new File (tempFolder .getRoot (), "mapping.txt" );
9493 String text = String .format ("%s|%s" , data .length , dr .getIdentifier ().toString ());
95- Files .write ( text , mappingFile , Charset . defaultCharset () );
94+ Files .writeString ( mappingFile . toPath (), text );
9695
9796 LengthCachingDataStore fds = new LengthCachingDataStore ();
9897 fds .setDelegateClass (FileDataStore .class .getName ());
0 commit comments