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
9d2a3acf
Kaydet (Commit)
9d2a3acf
authored
Eki 15, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1327203 UwF: Unwritten field
Change-Id: I120b6cd6908ab4263a3ec3f8318aff8e507ab62b
üst
5d999513
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
XMLTools.java
qadevOOo/runner/util/XMLTools.java
+1
-19
No files found.
qadevOOo/runner/util/XMLTools.java
Dosyayı görüntüle @
9d2a3acf
...
...
@@ -44,7 +44,6 @@ public class XMLTools {
}
private
final
HashMap
<
String
,
Attribute
>
attrByName
=
new
HashMap
<
String
,
Attribute
>()
;
private
final
ArrayList
<
Attribute
>
attributes
=
new
ArrayList
<
Attribute
>()
;
private
PrintWriter
log
=
null
;
/**
* Creates a class instance.
...
...
@@ -83,47 +82,30 @@ public class XMLTools {
****************************************/
public
short
getLength
()
{
if
(
log
!=
null
)
log
.
println
(
"getLength() called -> "
+
attributes
.
size
())
;
return
(
short
)
attributes
.
size
()
;
}
public
String
getNameByIndex
(
short
idx
)
{
String
name
=
attributes
.
get
(
idx
).
Name
;
if
(
log
!=
null
)
log
.
println
(
"getNameByIndex("
+
idx
+
") called -> '"
+
name
+
"'"
)
;
return
name
;
}
public
String
getTypeByIndex
(
short
idx
)
{
String
type
=
attributes
.
get
(
idx
).
Type
;
if
(
log
!=
null
)
log
.
println
(
"getTypeByIndex("
+
idx
+
") called -> '"
+
type
+
"'"
)
;
return
type
;
}
public
String
getTypeByName
(
String
name
)
{
String
type
=
attrByName
.
get
(
name
).
Type
;
if
(
log
!=
null
)
log
.
println
(
"getTypeByName('"
+
name
+
"') called -> '"
+
type
+
"'"
)
;
return
type
;
}
public
String
getValueByIndex
(
short
idx
)
{
String
value
=
attributes
.
get
(
idx
).
Value
;
if
(
log
!=
null
)
log
.
println
(
"getValueByIndex("
+
idx
+
") called -> '"
+
value
+
"'"
)
;
return
value
;
return
value
;
}
public
String
getValueByName
(
String
name
)
{
String
value
=
attrByName
.
get
(
name
).
Value
;
if
(
log
!=
null
)
log
.
println
(
"getValueByName('"
+
name
+
"') called -> '"
+
value
+
"'"
)
;
return
value
;
}
}
...
...
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