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
68fa1410
Kaydet (Commit)
68fa1410
authored
Agu 21, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java: use isEmpty() instead of "size() == 0"
Change-Id: I23e1038246999b0744d8e9ae83b66fa1f7dafa99
üst
81968336
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
14 additions
and
16 deletions
+14
-16
IniFile.java
qadevOOo/runner/graphical/IniFile.java
+1
-1
DescGetter.java
qadevOOo/runner/share/DescGetter.java
+1
-1
XMLTools.java
qadevOOo/runner/util/XMLTools.java
+2
-2
ScriptMetaData.java
...m/sun/star/script/framework/container/ScriptMetaData.java
+3
-4
CommandLineTools.java
...ting/java/org/openoffice/idesupport/CommandLineTools.java
+1
-1
JavaFinder.java
scripting/java/org/openoffice/idesupport/JavaFinder.java
+1
-2
AccTreeNode.java
toolkit/test/accessibility/AccTreeNode.java
+1
-1
Canvas.java
toolkit/test/accessibility/Canvas.java
+1
-1
CheckMemoryUsage.java
vcl/qa/complex/memCheck/CheckMemoryUsage.java
+1
-1
FileAccess.java
wizards/com/sun/star/wizards/common/FileAccess.java
+1
-1
FormDocument.java
wizards/com/sun/star/wizards/form/FormDocument.java
+1
-1
No files found.
qadevOOo/runner/graphical/IniFile.java
Dosyayı görüntüle @
68fa1410
...
...
@@ -52,7 +52,7 @@ public class IniFile implements Enumeration<String>
public
void
insertFirstComment
(
String
[]
_aList
)
{
if
(
m_aList
.
size
()
==
0
)
if
(
m_aList
.
isEmpty
()
)
{
// can only insert if there is nothing else already in the ini file
for
(
int
i
=
0
;
i
<
_aList
.
length
;
i
++)
...
...
qadevOOo/runner/share/DescGetter.java
Dosyayı görüntüle @
68fa1410
...
...
@@ -153,7 +153,7 @@ public abstract class DescGetter
}
}
if
(
entryList
.
size
()
==
0
)
if
(
entryList
.
isEmpty
()
)
{
return
null
;
}
...
...
qadevOOo/runner/util/XMLTools.java
Dosyayı görüntüle @
68fa1410
...
...
@@ -289,7 +289,7 @@ public class XMLTools {
public
void
endElement
(
String
name
)
{
super
.
endElement
(
name
);
if
(
wellFormed
)
{
if
(
tagStack
.
size
()
==
0
)
{
if
(
tagStack
.
isEmpty
()
)
{
wellFormed
=
false
;
printError
(
"No tags to close (bad closing tag </"
+
name
+
">)"
)
;
}
else
{
...
...
@@ -718,7 +718,7 @@ public class XMLTools {
if
(!
isWellFormed
())
log
.
println
(
"!!! Some errors were found in XML structure"
)
;
boolean
result
=
tags
.
size
()
==
0
&&
chars
.
size
()
==
0
&&
isWellFormed
();
boolean
result
=
tags
.
isEmpty
()
&&
chars
.
size
()
==
0
&&
isWellFormed
();
reset
();
return
result
;
}
...
...
scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
Dosyayı görüntüle @
68fa1410
...
...
@@ -218,9 +218,9 @@ public class ScriptMetaData extends ScriptEntry {
if
(
url
!=
null
)
{
classPathVec
.
add
(
url
);
}
}
}
return
classPathVec
.
toArray
(
new
URL
[
classPathVec
.
size
()]);
return
classPathVec
.
toArray
(
new
URL
[
classPathVec
.
size
()]);
}
catch
(
Exception
e
)
{
LogUtils
.
DEBUG
(
"Failed to build class path "
+
e
.
toString
());
LogUtils
.
DEBUG
(
LogUtils
.
getTrace
(
e
));
...
...
@@ -320,4 +320,4 @@ public class ScriptMetaData extends ScriptEntry {
LogUtils
.
DEBUG
(
"Creating script url for "
+
sUrl
);
return
createURL
(
sUrl
);
}
}
\ No newline at end of file
}
scripting/java/org/openoffice/idesupport/CommandLineTools.java
Dosyayı görüntüle @
68fa1410
...
...
@@ -284,7 +284,7 @@ public class CommandLineTools {
}
if
(
scripts
!=
null
)
{
if
(
scripts
.
size
()
==
0
)
if
(
scripts
.
isEmpty
()
)
throw
new
Exception
(
"No valid scripts found"
);
ParcelDescriptor
desc
=
new
ParcelDescriptor
(
parcelxml
,
language
);
...
...
scripting/java/org/openoffice/idesupport/JavaFinder.java
Dosyayı görüntüle @
68fa1410
...
...
@@ -191,8 +191,7 @@ public class JavaFinder implements MethodFinder {
private
String
[]
findClassNames
(
File
basedir
)
{
ArrayList
<
File
>
classFiles
=
findFiles
(
basedir
,
CLASS_SUFFIX
);
if
(
classFiles
==
null
||
classFiles
.
size
()
==
0
)
if
(
classFiles
==
null
||
classFiles
.
isEmpty
())
return
null
;
ArrayList
<
File
>
javaFiles
=
findFiles
(
basedir
,
JAVA_SUFFIX
);
...
...
toolkit/test/accessibility/AccTreeNode.java
Dosyayı görüntüle @
68fa1410
...
...
@@ -281,7 +281,7 @@ class AccTreeNode
@Override
public
boolean
isLeaf
()
{
return
(
maHandlers
.
size
()
==
0
);
return
maHandlers
.
isEmpty
(
);
}
@Override
...
...
toolkit/test/accessibility/Canvas.java
Dosyayı görüntüle @
68fa1410
...
...
@@ -98,7 +98,7 @@ class Canvas
{
aObject
=
new
CanvasShape
(
aNode
);
// Update bounding box that includes all objects.
if
(
maObjects
.
size
()
==
0
)
if
(
maObjects
.
isEmpty
()
)
maBoundingBox
=
aObject
.
getBBox
();
else
maBoundingBox
=
maBoundingBox
.
union
(
aObject
.
getBBox
());
...
...
vcl/qa/complex/memCheck/CheckMemoryUsage.java
Dosyayı görüntüle @
68fa1410
...
...
@@ -153,7 +153,7 @@ public class CheckMemoryUsage /* extends ComplexTestCase */
}
}
// if no param given, set defaults.
if
(
v
.
size
()
==
0
)
if
(
v
.
isEmpty
()
)
{
v
.
add
(
sWriterDoc
);
v
.
add
(
sCalcDoc
);
...
...
wizards/com/sun/star/wizards/common/FileAccess.java
Dosyayı görüntüle @
68fa1410
...
...
@@ -632,7 +632,7 @@ public class FileAccess
throws
NoValidPathException
{
String
[][]
LocLayoutFiles
=
new
String
[
2
][];
if
(
FolderName
.
size
()
==
0
)
if
(
FolderName
.
isEmpty
()
)
{
throw
new
NoValidPathException
(
null
,
"Path not given."
);
}
...
...
wizards/com/sun/star/wizards/form/FormDocument.java
Dosyayı görüntüle @
68fa1410
...
...
@@ -141,7 +141,7 @@ public class FormDocument extends TextDocument
adjustPageStyle
();
if
(
_baddParentForm
)
{
if
(
oControlForms
.
size
()
==
0
)
if
(
oControlForms
.
isEmpty
()
)
{
final
ControlForm
aMainControlForm
=
new
ControlForm
(
this
,
SOMAINFORM
,
aMainFormPoint
,
getMainFormSize
(
FormWizard
.
AS_GRID
));
oControlForms
.
add
(
aMainControlForm
);
...
...
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