summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/LocatorManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceInternal/LocatorManager.java')
-rw-r--r--java/src/IceInternal/LocatorManager.java40
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);