diff --git a/src/main/java/cn/jpush/api/push/PushClient.java b/src/main/java/cn/jpush/api/push/PushClient.java index 835aea67..54ed8b65 100644 --- a/src/main/java/cn/jpush/api/push/PushClient.java +++ b/src/main/java/cn/jpush/api/push/PushClient.java @@ -51,6 +51,9 @@ public PushClient(String masterSecret, String appKey) { /** * This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig} instead of this constructor. + * @param masterSecret API access secret of the appKey. + * @param appKey The KEY of one application on JPush. + * @param maxRetryTimes The max retry times. */ @Deprecated public PushClient(String masterSecret, String appKey, int maxRetryTimes) { @@ -64,6 +67,7 @@ public PushClient(String masterSecret, String appKey, int maxRetryTimes) { * @param masterSecret API access secret of the appKey. * @param appKey The KEY of one application on JPush. * @param maxRetryTimes max retry times + * @param proxy The max retry times. */ @Deprecated public PushClient(String masterSecret, String appKey, int maxRetryTimes, HttpProxy proxy) { diff --git a/src/main/java/cn/jpush/api/push/model/notification/IosNotification.java b/src/main/java/cn/jpush/api/push/model/notification/IosNotification.java index 3d2f5302..9c0aaf52 100644 --- a/src/main/java/cn/jpush/api/push/model/notification/IosNotification.java +++ b/src/main/java/cn/jpush/api/push/model/notification/IosNotification.java @@ -8,8 +8,8 @@ import java.util.Map; /** - * APNs 通知类 - *

+ *

APNs 通知类

+ *
* 支持 APNs 默认的几个参数: * - *

- *

+ *
* 需要特别留意的是,JPush SDK 会对以下几个值有特别的默认设置考虑: *

- *

*/ public class IosNotification extends PlatformNotification { public static final String NOTIFICATION_IOS = "ios"; diff --git a/src/main/java/cn/jpush/api/report/ReportClient.java b/src/main/java/cn/jpush/api/report/ReportClient.java index 1ac997c3..674cf5b1 100644 --- a/src/main/java/cn/jpush/api/report/ReportClient.java +++ b/src/main/java/cn/jpush/api/report/ReportClient.java @@ -28,6 +28,9 @@ public ReportClient(String masterSecret, String appKey) { /** * This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig#setMaxRetryTimes} instead of this constructor. + * @param masterSecret API access secret of the appKey. + * @param appKey The KEY of one application on JPush. + * @param maxRetryTimes max retry times. * */ @Deprecated @@ -37,6 +40,10 @@ public ReportClient(String masterSecret, String appKey, int maxRetryTimes) { /** * This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig#setMaxRetryTimes} instead of this constructor. + * @param masterSecret API access secret of the appKey. + * @param appKey The KEY of one application on JPush. + * @param maxRetryTimes max retry times + * @param proxy The max retry times. * */ @Deprecated diff --git a/src/main/java/cn/jpush/api/schedule/ScheduleClient.java b/src/main/java/cn/jpush/api/schedule/ScheduleClient.java index 5f2d8a32..f0a09dce 100644 --- a/src/main/java/cn/jpush/api/schedule/ScheduleClient.java +++ b/src/main/java/cn/jpush/api/schedule/ScheduleClient.java @@ -33,6 +33,9 @@ public ScheduleClient(String masterSecret, String appkey) { /** * This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig#setMaxRetryTimes} instead of this constructor. + * @param masterSecret API access secret of the appKey. + * @param appKey The KEY of one application on JPush. + * @param maxRetryTimes The mas retry times. * */ @Deprecated @@ -42,7 +45,10 @@ public ScheduleClient(String masterSecret, String appKey, int maxRetryTimes) { /** * This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig#setMaxRetryTimes} instead of this constructor. - * + * @param masterSecret API access secret of the appKey. + * @param appKey The KEY of one application on JPush. + * @param maxRetryTimes The mas retry times. + * @param proxy The proxy, if there is no proxy, should be null. */ @Deprecated public ScheduleClient(String masterSecret, String appKey, int maxRetryTimes, HttpProxy proxy) { diff --git a/src/main/java/cn/jpush/api/utils/Preconditions.java b/src/main/java/cn/jpush/api/utils/Preconditions.java index e32e8292..762c4386 100644 --- a/src/main/java/cn/jpush/api/utils/Preconditions.java +++ b/src/main/java/cn/jpush/api/utils/Preconditions.java @@ -73,7 +73,7 @@ * *

Projects which use {@code com.google.common} should generally avoid the use of {@link * java.util.Objects#requireNonNull(Object)}. Instead, use whichever of {@link - * #checkNotNull(Object)} or {@link Verify#verifyNotNull(Object)} is appropriate to the situation. + * #checkNotNull(Object)} is appropriate to the situation. * (The same goes for the message-accepting overloads.) * *

Only {@code %s} is supported