From 396ddd7c868948e5f417ea204a882c3e27e86ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Wed, 17 Apr 2019 14:42:27 +0200 Subject: [PATCH] Add remark that findChallenge(String) is not type safe --- .../src/main/java/org/shredzone/acme4j/Authorization.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acme4j-client/src/main/java/org/shredzone/acme4j/Authorization.java b/acme4j-client/src/main/java/org/shredzone/acme4j/Authorization.java index d306390d..621d87fa 100644 --- a/acme4j-client/src/main/java/org/shredzone/acme4j/Authorization.java +++ b/acme4j-client/src/main/java/org/shredzone/acme4j/Authorization.java @@ -108,6 +108,9 @@ public class Authorization extends AcmeJsonResource { /** * Finds a {@link Challenge} of the given type. Responding to this {@link Challenge} * is sufficient for authorization. + *

+ * {@link Authorization#findChallenge(Class)} should be preferred, as this variant + * is not type safe. * * @param type * Challenge name (e.g. "http-01")