commit | 20b1394f36dd9e522f2173b344f85a04988ae720 | [log] [tgz] |
---|---|---|
author | Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com> | Tue Jun 02 15:29:02 2020 +0200 |
committer | Andrew Gaul <andrew@gaul.org> | Wed Jun 03 09:14:41 2020 +0900 |
tree | 642b1c4e3ecc62368ce6695ca800d182dd1cb07d | |
parent | 6e6f8ebf779d8edc5cedec687558637d8212ab18 [diff] |
JCLOUDS-1491 Jclouds uses a deprecated version of Guava to support Azure storage DnsNameValidator.java uses a deprecated guava APIs in code that is used to support Azure cloud storage. When forcing the use of more recent guava versions, the code fails with NoSuchFieldError. However, CharMatcher.JAVA_LETTER_OR_DIGIT has been removed in guava 26.0, and CharMatcher.javaLetterOrDigit() should be used instead since guava 19.0. Note that CharMatcher.javaLetterOrDigit() was immediately deprecated in Guava 26.0, and java.lang.Character.isLetterOrDigit(int) should be used instead. This commit replaces the use of this deprecated API by java.lang.Character.isLetterOrDigit(int). It is no worse than the previous code. (If I understand correctly, updating the guava version is a challenge due to dependencies on Apache Karaf anyway)
Apache jclouds is an open source multi-cloud toolkit for the Java platform that gives you the freedom to create applications that are portable across clouds while giving you full control to use cloud-specific features.
For more information about using or contributing to jclouds, please visit our website at jclouds.apache.org.
Copyright (C) 2009-2019 The Apache Software Foundation
Licensed under the Apache License, Version 2.0