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
7078dbb9
Kaydet (Commit)
7078dbb9
authored
Mar 10, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
jurt: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I6fc237a3274f51b282804b9a08fc063694376780
üst
90b27c94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
23 deletions
+2
-23
FactoryHelper.java
jurt/com/sun/star/comp/loader/FactoryHelper.java
+1
-22
AnyConverter_Test.java
jurt/test/com/sun/star/uno/AnyConverter_Test.java
+1
-1
No files found.
jurt/com/sun/star/comp/loader/FactoryHelper.java
Dosyayı görüntüle @
7078dbb9
...
...
@@ -74,9 +74,6 @@ public class FactoryHelper {
protected
Constructor
<?>
_constructor
;
protected
String
_implName
;
protected
String
_serviceName
;
// keeps the Id for XTypeProvider
protected
static
Object
_mutex
=
new
Object
();
private
static
byte
[]
_implementationId
;
protected
Factory
(
Class
<?>
implClass
,
String
serviceName
,
...
...
@@ -387,25 +384,7 @@ public class FactoryHelper {
//XTypeProvider
public
byte
[]
getImplementationId
()
{
synchronized
(
_mutex
)
{
if
(
_implementationId
==
null
)
{
int
hash
=
hashCode
();
String
sName
=
getClass
().
getName
();
byte
[]
arName
=
sName
.
getBytes
();
int
nNameLength
=
arName
.
length
;
_implementationId
=
new
byte
[
4
+
nNameLength
];
_implementationId
[
0
]=
(
byte
)(
hash
&
0xff
);
_implementationId
[
1
]=
(
byte
)((
hash
>>>
8
)
&
0xff
);
_implementationId
[
2
]=
(
byte
)((
hash
>>>
16
)
&
0xff
);
_implementationId
[
3
]=
(
byte
)((
hash
>>>
24
)
&
0xff
);
System
.
arraycopy
(
arName
,
0
,
_implementationId
,
4
,
nNameLength
);
}
}
return
_implementationId
;
return
new
byte
[
0
];
}
//XTypeProvider
public
com
.
sun
.
star
.
uno
.
Type
[]
getTypes
()
...
...
jurt/test/com/sun/star/uno/AnyConverter_Test.java
Dosyayı görüntüle @
7078dbb9
...
...
@@ -874,7 +874,7 @@ class ATypeProvider implements com.sun.star.lang.XTypeProvider
public
byte
[]
getImplementationId
()
{
return
new
byte
[
]{
1
,
2
,
3
}
;
return
new
byte
[
0
]
;
}
public
com
.
sun
.
star
.
uno
.
Type
[]
getTypes
()
...
...
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