usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mru...@apache.org
Subject usergrid git commit: remove initial capacity from hash map for easier maintenance.
Date Fri, 16 Oct 2015 20:20:24 GMT
Repository: usergrid
Updated Branches:
  refs/heads/update-visi-timeout 71163e76d -> 8faecbb70


remove initial capacity from hash map for easier maintenance.


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/8faecbb7
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/8faecbb7
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/8faecbb7

Branch: refs/heads/update-visi-timeout
Commit: 8faecbb700571b8d08c85d99674d7a05ca2b0089
Parents: 71163e7
Author: Michael Russo <michaelarusso@gmail.com>
Authored: Fri Oct 16 13:21:44 2015 -0700
Committer: Michael Russo <michaelarusso@gmail.com>
Committed: Fri Oct 16 13:21:44 2015 -0700

----------------------------------------------------------------------
 .../usergrid/persistence/queue/util/AmazonNotificationUtils.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/8faecbb7/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/util/AmazonNotificationUtils.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/util/AmazonNotificationUtils.java
b/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/util/AmazonNotificationUtils.java
index 993ac13..ce4fdb4 100644
--- a/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/util/AmazonNotificationUtils.java
+++ b/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/util/AmazonNotificationUtils.java
@@ -63,7 +63,7 @@ public class AmazonNotificationUtils {
 
         final String visibilityTimeoutInSeconds = String.valueOf(Math.max(1, fig.getVisibilityTimeout()
/ 1000));
 
-        final Map<String, String> queueAttributes = new HashMap<>( 3 );
+        final Map<String, String> queueAttributes = new HashMap<>();
         queueAttributes.put( "MessageRetentionPeriod", fig.getRetentionPeriod() );
         queueAttributes.put( "RedrivePolicy", redrivePolicy );
         queueAttributes.put( "VisibilityTimeout", visibilityTimeoutInSeconds );


Mime
View raw message