am e3434fc4: Merge "Improve detail message for X509TrustManagerExtensions argument validation"
* commit 'e3434fc4fb164b66e529e675dfc31652a4c69cb5': Improve detail message for X509TrustManagerExtensions argument validation
This commit is contained in:
@@ -56,7 +56,8 @@ public class X509TrustManagerExtensions {
|
|||||||
if (tm instanceof TrustManagerImpl) {
|
if (tm instanceof TrustManagerImpl) {
|
||||||
mDelegate = (TrustManagerImpl) tm;
|
mDelegate = (TrustManagerImpl) tm;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("tm is not a supported type of X509TrustManager");
|
throw new IllegalArgumentException("tm is an instance of " + tm.getClass().getName() +
|
||||||
|
" which is not a supported type of X509TrustManager");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user