[nhin-d] push by gm2...@cerner.com - Adding fixes for concurrency issues. on 2014-09-23 12:23 GMT

2 views
Skip to first unread message

nhi...@googlecode.com

unread,
Sep 23, 2014, 8:23:44 AM9/23/14
to nhindirec...@googlegroups.com
Revision: ac78646c3141
Branch: default
Author: gm2552
Date: Tue Sep 23 12:23:00 2014 UTC
Log: Adding fixes for concurrency issues.
https://code.google.com/p/nhin-d/source/detail?r=ac78646c3141

Modified:
/java/xd/src/main/java/org/nhind/xdr/DocumentRepositoryAbstract.java

=======================================
--- /java/xd/src/main/java/org/nhind/xdr/DocumentRepositoryAbstract.java
Wed Sep 10 00:55:38 2014 UTC
+++ /java/xd/src/main/java/org/nhind/xdr/DocumentRepositoryAbstract.java
Tue Sep 23 12:23:00 2014 UTC
@@ -388,19 +388,14 @@

private MailClient getMailClient()
{
- if (mailClient == null)
- {
- if(config==null){
- config = getConfig();
- }
- String hostname = config.getMailHost();
- String username = config.getMailUser();
- String password = config.getMailPass();
-
- mailClient = new SmtpMailClient(hostname, username, password);
+ if(config==null){
+ config = getConfig();
}
+ String hostname = config.getMailHost();
+ String username = config.getMailUser();
+ String password = config.getMailPass();

- return mailClient;
+ return new SmtpMailClient(hostname, username, password);
}

/**
@@ -480,3 +475,4 @@

}

+
Reply all
Reply to author
Forward
0 new messages