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
5baef3ad
Kaydet (Commit)
5baef3ad
authored
Eki 15, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1326266 Explicit null dereferenced
Change-Id: Ic6971a9006f82528a9943f8d425389545403162a
üst
21c30f6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
27 deletions
+15
-27
Driver.java
...source/xmerge/java/org/openoffice/xmerge/test/Driver.java
+15
-27
No files found.
xmerge/source/xmerge/java/org/openoffice/xmerge/test/Driver.java
Dosyayı görüntüle @
5baef3ad
...
...
@@ -65,34 +65,23 @@ public final class Driver {
* @param args The argument passed on the command line.
*/
public
static
void
main
(
String
args
[])
{
// Register jarfiles
String
propFile
=
"ConverterInfoList.properties"
;
ConverterInfoList
cil
=
null
;
try
{
cil
=
new
ConverterInfoList
(
propFile
);
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"\nCannot not load "
+
propFile
+
" property file"
);
}
// Register jarfiles
String
propFile
=
"ConverterInfoList.properties"
;
ConverterInfoList
cil
=
new
ConverterInfoList
(
propFile
);
Iterator
<
ConverterInfo
>
jarInfoEnumeration
;
ConverterInfoReader
cir
;
Iterator
<
String
>
jarFileEnum
=
cil
.
getJarFileEnum
();
while
(
jarFileEnum
.
hasNext
())
{
String
jarName
=
jarFileEnum
.
next
();
try
{
cir
=
new
ConverterInfoReader
(
jarName
,
false
);
jarInfoEnumeration
=
cir
.
getConverterInfoEnumeration
();
ConverterInfoMgr
.
addPlugIn
(
jarInfoEnumeration
);
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"\nCannot not load <"
+
jarName
+
"> from the <"
+
propFile
+
"> property file"
);
Iterator
<
String
>
jarFileEnum
=
cil
.
getJarFileEnum
();
while
(
jarFileEnum
.
hasNext
())
{
String
jarName
=
jarFileEnum
.
next
();
try
{
ConverterInfoReader
cir
=
new
ConverterInfoReader
(
jarName
,
false
);
Iterator
<
ConverterInfo
>
jarInfoEnumeration
=
cir
.
getConverterInfoEnumeration
();
ConverterInfoMgr
.
addPlugIn
(
jarInfoEnumeration
);
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"\nCannot not load <"
+
jarName
+
"> from the <"
+
propFile
+
"> property file"
);
}
}
}
try
{
Driver
app
=
new
Driver
();
app
.
parseCommandLine
(
args
);
...
...
@@ -293,4 +282,4 @@ public final class Driver {
String
str
=
zipName
.
toLowerCase
();
return
str
.
endsWith
(
"sxw"
)
||
zipName
.
endsWith
(
"sxc"
);
}
}
\ No newline at end of file
}
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