Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9def9b46
Kaydet (Commit)
9def9b46
authored
Haz 28, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Haz 29, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Java5 update - convert Hashtable to HashMap
Change-Id: I59a7448b6c0a840b0f04b765ef9d5272dceb47b3
üst
baccb18f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
ServiceManager.java
jurt/com/sun/star/comp/servicemanager/ServiceManager.java
+10
-10
TestBridge.java
jurt/test/com/sun/star/lib/uno/protocols/urp/TestBridge.java
+2
-2
No files found.
jurt/com/sun/star/comp/servicemanager/ServiceManager.java
Dosyayı görüntüle @
9def9b46
...
@@ -80,8 +80,8 @@ public class ServiceManager implements XMultiServiceFactory,
...
@@ -80,8 +80,8 @@ public class ServiceManager implements XMultiServiceFactory,
};
};
ArrayList
eventListener
;
ArrayList
eventListener
;
java
.
util
.
Hash
table
factoriesByImplNames
;
java
.
util
.
Hash
Map
factoriesByImplNames
;
java
.
util
.
Hash
table
factoriesByServiceNames
;
// keys:
java
.
util
.
Hash
Map
factoriesByServiceNames
;
// keys:
private
com
.
sun
.
star
.
uno
.
XComponentContext
m_xDefaultContext
;
private
com
.
sun
.
star
.
uno
.
XComponentContext
m_xDefaultContext
;
...
@@ -90,8 +90,8 @@ public class ServiceManager implements XMultiServiceFactory,
...
@@ -90,8 +90,8 @@ public class ServiceManager implements XMultiServiceFactory,
*/
*/
public
ServiceManager
()
{
public
ServiceManager
()
{
eventListener
=
new
ArrayList
();
eventListener
=
new
ArrayList
();
factoriesByImplNames
=
new
java
.
util
.
Hash
table
();
factoriesByImplNames
=
new
java
.
util
.
Hash
Map
();
factoriesByServiceNames
=
new
java
.
util
.
Hash
table
();
factoriesByServiceNames
=
new
java
.
util
.
Hash
Map
();
m_xDefaultContext
=
null
;
m_xDefaultContext
=
null
;
}
}
/**
/**
...
@@ -99,8 +99,8 @@ public class ServiceManager implements XMultiServiceFactory,
...
@@ -99,8 +99,8 @@ public class ServiceManager implements XMultiServiceFactory,
*/
*/
public
ServiceManager
(
XComponentContext
xContext
)
{
public
ServiceManager
(
XComponentContext
xContext
)
{
eventListener
=
new
ArrayList
();
eventListener
=
new
ArrayList
();
factoriesByImplNames
=
new
java
.
util
.
Hash
table
();
factoriesByImplNames
=
new
java
.
util
.
Hash
Map
();
factoriesByServiceNames
=
new
java
.
util
.
Hash
table
();
factoriesByServiceNames
=
new
java
.
util
.
Hash
Map
();
m_xDefaultContext
=
xContext
;
m_xDefaultContext
=
xContext
;
}
}
...
@@ -341,10 +341,10 @@ public class ServiceManager implements XMultiServiceFactory,
...
@@ -341,10 +341,10 @@ public class ServiceManager implements XMultiServiceFactory,
int
i
=
0
;
int
i
=
0
;
String
[]
availableServiceNames
=
new
String
[
factoriesByServiceNames
.
size
()];
String
[]
availableServiceNames
=
new
String
[
factoriesByServiceNames
.
size
()];
java
.
util
.
Enumeration
keys
=
factoriesByServiceNames
.
keys
();
java
.
util
.
Iterator
keys
=
factoriesByServiceNames
.
keySet
().
iterator
();
while
(
keys
.
has
MoreElements
())
while
(
keys
.
has
Next
())
availableServiceNames
[
i
++]
=
(
String
)
keys
.
next
Element
();
availableServiceNames
[
i
++]
=
(
String
)
keys
.
next
();
return
availableServiceNames
;
return
availableServiceNames
;
}
}
...
@@ -634,7 +634,7 @@ public class ServiceManager implements XMultiServiceFactory,
...
@@ -634,7 +634,7 @@ public class ServiceManager implements XMultiServiceFactory,
public
XEnumeration
createEnumeration
()
public
XEnumeration
createEnumeration
()
throws
com
.
sun
.
star
.
uno
.
RuntimeException
throws
com
.
sun
.
star
.
uno
.
RuntimeException
{
{
return
new
ServiceEnumerationImpl
(
factoriesByImplNames
.
elements
()
);
return
new
ServiceEnumerationImpl
(
factoriesByImplNames
.
values
().
iterator
()
);
}
}
/**
/**
...
...
jurt/test/com/sun/star/lib/uno/protocols/urp/TestBridge.java
Dosyayı görüntüle @
9def9b46
...
@@ -19,7 +19,7 @@ package com.sun.star.lib.uno.protocols.urp;
...
@@ -19,7 +19,7 @@ package com.sun.star.lib.uno.protocols.urp;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
import
com.sun.star.uno.IBridge
;
import
com.sun.star.uno.IBridge
;
...
@@ -30,7 +30,7 @@ import com.sun.star.uno.Type;
...
@@ -30,7 +30,7 @@ import com.sun.star.uno.Type;
class
TestBridge
implements
IBridge
{
class
TestBridge
implements
IBridge
{
static
public
final
boolean
DEBUG
=
false
;
static
public
final
boolean
DEBUG
=
false
;
Hash
table
_hashtable
=
new
Hashtable
();
Hash
Map
_hashtable
=
new
HashMap
();
IEnvironment
_source
;
//= new com.sun.star.lib.uno.environments.java.java_environment(null);
IEnvironment
_source
;
//= new com.sun.star.lib.uno.environments.java.java_environment(null);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment