src/main/java/javapns/Push.java
Method sendPayloads
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static PushedNotifications sendPayloads(final Object keystore, final String password, final boolean production, final Object payloadDevicePairs) throws CommunicationException, KeystoreException {
final PushedNotifications notifications = new PushedNotifications();
if (payloadDevicePairs == null) {
return notifications;
}
Method sendPayload
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static PushedNotifications sendPayload(final Payload payload, final Object keystore, final String password, final boolean production, final Object devices) throws CommunicationException, KeystoreException {
final PushedNotifications notifications = new PushedNotifications();
if (payload == null) {
return notifications;
}
Method combined
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static PushedNotifications combined(final String message, final int badge, final String sound, final Object keystore, final String password, final boolean production, final Object devices) throws CommunicationException, KeystoreException {
Method payload
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static PushedNotifications payload(final Payload payload, final Object keystore, final String password, final boolean production, final int numberOfThreads, final Object devices) throws Exception {
Method payload
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static PushedNotifications payload(final Payload payload, final Object keystore, final String password, final boolean production, final Object devices) throws CommunicationException, KeystoreException {
Method sendPayload
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static PushedNotifications sendPayload(final Payload payload, final Object keystore, final String password, final boolean production, final Object devices) throws CommunicationException, KeystoreException {
Method payloads
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static PushedNotifications payloads(final Object keystore, final String password, final boolean production, final int numberOfThreads, final Object payloadDevicePairs) throws Exception {
Method badge
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static PushedNotifications badge(final int badge, final Object keystore, final String password, final boolean production, final Object devices) throws CommunicationException, KeystoreException {
Method sound
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static PushedNotifications sound(final String sound, final Object keystore, final String password, final boolean production, final Object devices) throws CommunicationException, KeystoreException {
Method alert
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static PushedNotifications alert(final String message, final Object keystore, final String password, final boolean production, final Object devices) throws CommunicationException, KeystoreException {