File tree 2 files changed +17
-1
lines changed
src/main/java/com/arangodb
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 58
58
import com .arangodb .velocystream .Request ;
59
59
import com .arangodb .velocystream .Response ;
60
60
import org .apache .http .client .HttpRequestRetryHandler ;
61
+ import org .slf4j .Logger ;
62
+ import org .slf4j .LoggerFactory ;
61
63
62
64
import javax .net .ssl .HostnameVerifier ;
63
65
import javax .net .ssl .SSLContext ;
@@ -91,7 +93,7 @@ public interface ArangoDB extends ArangoSerializationAccessor {
91
93
* @author Mark Vollmary
92
94
*/
93
95
class Builder extends InternalArangoDBBuilder {
94
-
96
+ private static final Logger logger = LoggerFactory . getLogger ( Builder . class );
95
97
private static final String PROPERTY_KEY_PROTOCOL = "arangodb.protocol" ;
96
98
97
99
protected Protocol protocol ;
@@ -672,6 +674,11 @@ public Builder serializer(final ArangoSerialization serialization) {
672
674
* @return {@link ArangoDB}
673
675
*/
674
676
public synchronized ArangoDB build () {
677
+ if (customSerializer == null ) {
678
+ logger .warn ("Usage of VelocyPack Java serialization is now deprecated for removal. " +
679
+ "Future driver versions will only support Jackson serialization (for both JSON and VPACK formats). " +
680
+ "Please configure according to: https://www.arangodb.com/docs/stable/drivers/java-reference-serialization.html" );
681
+ }
675
682
if (hosts .isEmpty ()) {
676
683
hosts .add (host );
677
684
}
Original file line number Diff line number Diff line change 47
47
import com .arangodb .velocypack .*;
48
48
import com .arangodb .velocystream .Request ;
49
49
import com .arangodb .velocystream .Response ;
50
+ import org .slf4j .Logger ;
51
+ import org .slf4j .LoggerFactory ;
50
52
51
53
import javax .net .ssl .SSLContext ;
52
54
import java .io .InputStream ;
@@ -343,6 +345,8 @@ default CompletableFuture<Boolean> createDatabase(final String name) {
343
345
@ SuppressWarnings ("unused" )
344
346
class Builder extends InternalArangoDBBuilder {
345
347
348
+ private static final Logger logger = LoggerFactory .getLogger (Builder .class );
349
+
346
350
public Builder () {
347
351
super ();
348
352
}
@@ -858,6 +862,11 @@ public Builder serializer(final ArangoSerialization serialization) {
858
862
* @return {@link ArangoDBAsync}
859
863
*/
860
864
public synchronized ArangoDBAsync build () {
865
+ if (customSerializer == null ) {
866
+ logger .warn ("Usage of VelocyPack Java serialization is now deprecated for removal. " +
867
+ "Future driver versions will only support Jackson serialization (for both JSON and VPACK formats). " +
868
+ "Please configure according to: https://www.arangodb.com/docs/stable/drivers/java-reference-serialization.html" );
869
+ }
861
870
if (hosts .isEmpty ()) {
862
871
hosts .add (host );
863
872
}
You can’t perform that action at this time.
0 commit comments