Skip to content

Commit 2d9481b

Browse files
committed
Merge pull request #61 from jpush/dev
merge from dev
2 parents 1897811 + 8e94de2 commit 2d9481b

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

src/main/java/cn/jpush/api/push/PushClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public PushClient(String masterSecret, String appKey) {
5151

5252
/**
5353
* This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig} instead of this constructor.
54+
* @param masterSecret API access secret of the appKey.
55+
* @param appKey The KEY of one application on JPush.
56+
* @param maxRetryTimes The max retry times.
5457
*/
5558
@Deprecated
5659
public PushClient(String masterSecret, String appKey, int maxRetryTimes) {
@@ -64,6 +67,7 @@ public PushClient(String masterSecret, String appKey, int maxRetryTimes) {
6467
* @param masterSecret API access secret of the appKey.
6568
* @param appKey The KEY of one application on JPush.
6669
* @param maxRetryTimes max retry times
70+
* @param proxy The max retry times.
6771
*/
6872
@Deprecated
6973
public PushClient(String masterSecret, String appKey, int maxRetryTimes, HttpProxy proxy) {

src/main/java/cn/jpush/api/push/model/notification/IosNotification.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import java.util.Map;
99

1010
/**
11-
* APNs 通知类
12-
* <p>
11+
* <p><b>APNs 通知类</b></p>
12+
* <br>
1313
* 支持 APNs 默认的几个参数:
1414
* <ul>
1515
* <li>alert: 继承自父类 PlatformNotification 的 alert 属性;本类设置则覆盖。</li>
@@ -18,14 +18,12 @@
1818
* <li>content-available: 用来支持后台推送。如果该值赋值为 1,表示开启后台推送。</li>
1919
* <li>extras: JSON object. 支持更多的自定义字段信息。</li>
2020
* </ul>
21-
* </p>
22-
* <p>
21+
* <br>
2322
* 需要特别留意的是,JPush SDK 会对以下几个值有特别的默认设置考虑:
2423
* <ul>
25-
* <li>badge: 默认为 "+1"。如果需要取消 badge 值,需要显式地调用 disableBadge().</li>
26-
* <li>sound: 默认为 "",即默认的声音提示。如果需要取消 sound 值,即不要声音,需要显式地调用 disableSound(). </li>
24+
* <li>badge: 默认为 "+1"。如果需要取消 badge 值,需要显式地调用 disableBadge()</li>
25+
* <li>sound: 默认为 "",即默认的声音提示。如果需要取消 sound 值,即不要声音,需要显式地调用 disableSound()</li>
2726
* </ul>
28-
* </p>
2927
*/
3028
public class IosNotification extends PlatformNotification {
3129
public static final String NOTIFICATION_IOS = "ios";

src/main/java/cn/jpush/api/report/ReportClient.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public ReportClient(String masterSecret, String appKey) {
2828

2929
/**
3030
* This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig#setMaxRetryTimes} instead of this constructor.
31+
* @param masterSecret API access secret of the appKey.
32+
* @param appKey The KEY of one application on JPush.
33+
* @param maxRetryTimes max retry times.
3134
*
3235
*/
3336
@Deprecated
@@ -37,6 +40,10 @@ public ReportClient(String masterSecret, String appKey, int maxRetryTimes) {
3740

3841
/**
3942
* This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig#setMaxRetryTimes} instead of this constructor.
43+
* @param masterSecret API access secret of the appKey.
44+
* @param appKey The KEY of one application on JPush.
45+
* @param maxRetryTimes max retry times
46+
* @param proxy The max retry times.
4047
*
4148
*/
4249
@Deprecated

src/main/java/cn/jpush/api/schedule/ScheduleClient.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ public ScheduleClient(String masterSecret, String appkey) {
3333

3434
/**
3535
* This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig#setMaxRetryTimes} instead of this constructor.
36+
* @param masterSecret API access secret of the appKey.
37+
* @param appKey The KEY of one application on JPush.
38+
* @param maxRetryTimes The mas retry times.
3639
*
3740
*/
3841
@Deprecated
@@ -42,7 +45,10 @@ public ScheduleClient(String masterSecret, String appKey, int maxRetryTimes) {
4245

4346
/**
4447
* This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig#setMaxRetryTimes} instead of this constructor.
45-
*
48+
* @param masterSecret API access secret of the appKey.
49+
* @param appKey The KEY of one application on JPush.
50+
* @param maxRetryTimes The mas retry times.
51+
* @param proxy The proxy, if there is no proxy, should be null.
4652
*/
4753
@Deprecated
4854
public ScheduleClient(String masterSecret, String appKey, int maxRetryTimes, HttpProxy proxy) {

src/main/java/cn/jpush/api/utils/Preconditions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
*
7474
* <p>Projects which use {@code com.google.common} should generally avoid the use of {@link
7575
* java.util.Objects#requireNonNull(Object)}. Instead, use whichever of {@link
76-
* #checkNotNull(Object)} or {@link Verify#verifyNotNull(Object)} is appropriate to the situation.
76+
* #checkNotNull(Object)} is appropriate to the situation.
7777
* (The same goes for the message-accepting overloads.)
7878
*
7979
* <h3>Only {@code %s} is supported</h3>

0 commit comments

Comments
 (0)