cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [27/34] git commit: updated refs/heads/master to 7a57ce3
Date Mon, 15 Jun 2015 09:15:00 GMT
Fix findbugs warning in ProjectManagerImpl.java Unnecessary boxing/unboxing of primitive value

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #434


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

Branch: refs/heads/master
Commit: ec280189f49ac8aadecd6508313068e27ea50b5c
Parents: 4d31ed9
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 14 17:34:47 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:09:57 2015 +0300

----------------------------------------------------------------------
 server/src/com/cloud/projects/ProjectManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec280189/server/src/com/cloud/projects/ProjectManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/projects/ProjectManagerImpl.java b/server/src/com/cloud/projects/ProjectManagerImpl.java
index d10c059..510b55c 100644
--- a/server/src/com/cloud/projects/ProjectManagerImpl.java
+++ b/server/src/com/cloud/projects/ProjectManagerImpl.java
@@ -140,7 +140,7 @@ public class ProjectManagerImpl extends ManagerBase implements ProjectManager
{
         _invitationRequired = Boolean.valueOf(configs.get(Config.ProjectInviteRequired.key()));
 
         String value = configs.get(Config.ProjectInvitationExpirationTime.key());
-        _invitationTimeOut = Long.valueOf(value != null ? value : "86400") * 1000;
+        _invitationTimeOut = Long.parseLong(value != null ? value : "86400") * 1000;
         _allowUserToCreateProject = Boolean.valueOf(configs.get(Config.AllowUserToCreateProject.key()));
 
         // set up the email system for project invitations


Mime
View raw message