Skip to content

Commit 5838de1

Browse files
committed
rename Utils to Sns
1 parent 905b9ff commit 5838de1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/scorekeep/MoveFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public Move newMove(String sessionId, String gameId, String userId, String moveT
5757
State newState = new State(stateId, sessionId, gameId, newStateText, newTurn);
5858
// send notification on game end
5959
if ( newStateText.startsWith("A") || newStateText.startsWith("B")) {
60-
Utils.sendNotification("Scorekeep game completed", "Winner: " + userId);
60+
Sns.sendNotification("Scorekeep game completed", "Winner: " + userId);
6161
}
6262
// register state and move id to game
6363
gameController.setGameMove(sessionId, gameId, moveId);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import org.slf4j.Logger;
99
import org.slf4j.LoggerFactory;
1010

11-
public class Utils {
12-
private static final Logger logger = LoggerFactory.getLogger(Utils.class);
11+
public class Sns {
12+
private static final Logger logger = LoggerFactory.getLogger(Sns.class);
1313
private static AmazonSNS snsclient = AmazonSNSClientBuilder.standard()
1414
.build();
1515
/*

src/main/java/scorekeep/WebConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public Filter SimpleCORSFilter() {
1717

1818
static {
1919
if ( System.getenv("NOTIFICATION_EMAIL") != null ){
20-
Utils.createSubscription();
20+
Sns.createSubscription();
2121
}
2222
}
2323
}

0 commit comments

Comments
 (0)