diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-02-01 17:09:49 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-02-01 17:09:49 +0000 |
commit | abada90e3f84dc703b8ddc9efcbed8a946fadead (patch) | |
tree | 2c6f9dccd510ea97cb927a7bd635422efaae547a /java/src/IceInternal/LocatorManager.java | |
parent | removing trace message (diff) | |
download | ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2 ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip |
Expanded tabs into spaces
Diffstat (limited to 'java/src/IceInternal/LocatorManager.java')
-rw-r--r-- | java/src/IceInternal/LocatorManager.java | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/java/src/IceInternal/LocatorManager.java b/java/src/IceInternal/LocatorManager.java index 02bbec8c892..db888a5df7d 100644 --- a/java/src/IceInternal/LocatorManager.java +++ b/java/src/IceInternal/LocatorManager.java @@ -18,14 +18,14 @@ public final class LocatorManager synchronized void destroy() { - java.util.Iterator i = _table.values().iterator(); + java.util.Iterator i = _table.values().iterator(); while(i.hasNext()) { LocatorInfo info = (LocatorInfo)i.next(); info.destroy(); } _table.clear(); - _locatorTables.clear(); + _locatorTables.clear(); } // @@ -40,31 +40,31 @@ public final class LocatorManager return null; } - // - // The locator can't be located. - // - Ice.LocatorPrx locator = Ice.LocatorPrxHelper.uncheckedCast(loc.ice_locator(null)); + // + // The locator can't be located. + // + Ice.LocatorPrx locator = Ice.LocatorPrxHelper.uncheckedCast(loc.ice_locator(null)); - // - // TODO: reap unused locator info objects? - // + // + // TODO: reap unused locator info objects? + // synchronized(this) { LocatorInfo info = (LocatorInfo)_table.get(locator); if(info == null) { - // - // Rely on locator identity for the adapter table. We want to - // have only one table per locator (not one per locator - // proxy). - // - LocatorTable table = (LocatorTable)_locatorTables.get(locator.ice_getIdentity()); - if(table == null) - { - table = new LocatorTable(); - _locatorTables.put(locator.ice_getIdentity(), table); - } + // + // Rely on locator identity for the adapter table. We want to + // have only one table per locator (not one per locator + // proxy). + // + LocatorTable table = (LocatorTable)_locatorTables.get(locator.ice_getIdentity()); + if(table == null) + { + table = new LocatorTable(); + _locatorTables.put(locator.ice_getIdentity(), table); + } info = new LocatorInfo(locator, table); _table.put(locator, info); |