Skip to content

Commit

Permalink
#ignite-239: small refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivasilinets committed Feb 20, 2015
1 parent 7e2b2e2 commit c1b4ad7
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 177 deletions.
Expand Up @@ -384,7 +384,6 @@ public IgniteConfiguration() {
*
* @param cfg Grid configuration to copy from.
*/
@SuppressWarnings("deprecation")
public IgniteConfiguration(IgniteConfiguration cfg) {
assert cfg != null;

Expand Down Expand Up @@ -455,7 +454,8 @@ public IgniteConfiguration(IgniteConfiguration cfg) {
sysPoolSize = cfg.getSystemThreadPoolSize();
timeSrvPortBase = cfg.getTimeServerPortBase();
timeSrvPortRange = cfg.getTimeServerPortRange();
txCfg = cfg.getTransactionConfiguration();
txCfg = cfg.getTransactionConfiguration() != null ?
new TransactionConfiguration(cfg.getTransactionConfiguration()) : null;
userAttrs = cfg.getUserAttributes();
waitForSegOnStart = cfg.isWaitForSegmentOnStart();
warmupClos = cfg.getWarmupClosure();
Expand Down

0 comments on commit c1b4ad7

Please sign in to comment.