Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 948fcbc

Browse filesBrowse files
John Jannottimatzew
authored andcommitted
slient -> silent, nofitication -> notification typos
1 parent 03cac91 commit 948fcbc
Copy full SHA for 948fcbc

File tree

Expand file treeCollapse file tree

2 files changed

+6
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-6
lines changed
Open diff view settings
Collapse file

‎src/main/java/com/notnoop/apns/PayloadBuilder.java‎

Copy file name to clipboardExpand all lines: src/main/java/com/notnoop/apns/PayloadBuilder.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public PayloadBuilder forNewsstand() {
204204
*
205205
* @return this
206206
*/
207-
public PayloadBuilder instantDeliveryOrSlientNofitication() {
207+
public PayloadBuilder instantDeliveryOrSilentNotification() {
208208
root.put("content-available", 1);
209209
return this;
210210
}
Collapse file

‎src/test/java/com/notnoop/apns/PayloadBuilderTest.java‎

Copy file name to clipboardExpand all lines: src/test/java/com/notnoop/apns/PayloadBuilderTest.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,9 @@ public void utf8EncodingEscaped() {
495495
}
496496

497497
@Test
498-
public void slientPingMessage() {
498+
public void silentPingMessage() {
499499
final PayloadBuilder builder = new PayloadBuilder();
500-
builder.instantDeliveryOrSlientNofitication();
500+
builder.instantDeliveryOrSilentNotification();
501501

502502
final String expected = "{\"aps\":{},\"content-available\":1}";
503503
final String actual = builder.toString();
@@ -506,10 +506,10 @@ public void slientPingMessage() {
506506
}
507507

508508
@Test
509-
public void slientPingMessageWithCustomKey() {
509+
public void silentPingMessageWithCustomKey() {
510510
final PayloadBuilder builder = new PayloadBuilder();
511511

512-
builder.instantDeliveryOrSlientNofitication();
512+
builder.instantDeliveryOrSilentNotification();
513513
builder.customField("ache1", "what");
514514

515515
final String expected = "{\"aps\":{},\"ache1\":\"what\",\"content-available\":1}";
@@ -522,7 +522,7 @@ public void slientPingMessageWithCustomKey() {
522522
public void instantMessageWithAlert() {
523523
final PayloadBuilder builder = new PayloadBuilder();
524524
builder.alertBody("test");
525-
builder.instantDeliveryOrSlientNofitication();
525+
builder.instantDeliveryOrSilentNotification();
526526

527527
final String expected = "{\"aps\":{\"alert\":\"test\"},\"content-available\":1}";
528528
final String actual = builder.toString();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.