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
dc53e302
Kaydet (Commit)
dc53e302
authored
Agu 20, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java: simplify conditions involving logical negation
Change-Id: Ib45e58273e650ef9a31dbdb5f71e995a5976f50e
üst
726fc58d
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
26 additions
and
28 deletions
+26
-28
SampleHyphenator.java
...evelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java
+2
-2
MSOfficePrint.java
qadevOOo/runner/convwatch/MSOfficePrint.java
+1
-1
PerformanceContainer.java
qadevOOo/runner/convwatch/PerformanceContainer.java
+1
-1
MSOfficePostscriptCreator.java
qadevOOo/runner/graphical/MSOfficePostscriptCreator.java
+1
-1
PerformanceContainer.java
qadevOOo/runner/graphical/PerformanceContainer.java
+1
-1
OfficeProvider.java
qadevOOo/runner/helper/OfficeProvider.java
+1
-1
_XAreaLink.java
qadevOOo/tests/java/ifc/sheet/_XAreaLink.java
+2
-2
_XScenarioEnhanced.java
qadevOOo/tests/java/ifc/sheet/_XScenarioEnhanced.java
+5
-5
_XCellCursor.java
qadevOOo/tests/java/ifc/table/_XCellCursor.java
+3
-3
_XSearchDescriptor.java
qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java
+1
-1
UCBStreamHandler.java
...va/com/sun/star/script/framework/io/UCBStreamHandler.java
+1
-2
QueryMetaData.java
wizards/com/sun/star/wizards/db/QueryMetaData.java
+1
-1
ReportTextImplementation.java
...com/sun/star/wizards/report/ReportTextImplementation.java
+1
-1
CommandFieldSelection.java
wizards/com/sun/star/wizards/ui/CommandFieldSelection.java
+1
-1
WizardDialog.java
wizards/com/sun/star/wizards/ui/WizardDialog.java
+1
-1
MethodInvocation.java
wizards/com/sun/star/wizards/ui/event/MethodInvocation.java
+1
-1
Format.java
.../java/org/openoffice/xmerge/converter/xml/sxc/Format.java
+2
-3
No files found.
odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -275,8 +275,8 @@ public class SampleHyphenator extends ComponentBase implements
// check if hyphenation pos is valid,
// a value of -1 indicates that hyphenation is not possible
if
(
nHyphenationPos
!=
-
1
&&
!(
nHyphenationPos
<
nHyphMinLeading
)
&&
!(
nHyphenationPos
>=
aWord
.
length
()
-
nHyphMinTrailing
))
(
nHyphenationPos
>
nHyphMinLeading
)
&&
(
nHyphenationPos
<
aWord
.
length
()
-
nHyphMinTrailing
))
{
xRes
=
new
XHyphenatedWord_impl
(
aWord
,
aLocale
,
nHyphenationPos
,
aHyphenatedWord
,
nHyphenPos
);
...
...
qadevOOo/runner/convwatch/MSOfficePrint.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -788,7 +788,7 @@ public class MSOfficePrint
if
(
aLine
!=
null
)
{
aLine
=
aLine
.
trim
();
if
(
(
!
(
aLine
.
length
()
<
2
)
)
&&
if
(
(
aLine
.
length
()
>=
2
)
&&
(!
aLine
.
startsWith
(
"#"
))
&&
(!
aLine
.
startsWith
(
";"
))
)
{
...
...
qadevOOo/runner/convwatch/PerformanceContainer.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -161,7 +161,7 @@ public class PerformanceContainer /* extends *//* implements */ {
{
sLine
=
aRandomAccessFile
.
readLine
();
if
(
(
sLine
!=
null
)
&&
(
!
(
sLine
.
length
()
<
2
)
)
&&
(
sLine
.
length
()
>=
2
)
&&
(!
sLine
.
startsWith
(
"#"
)))
{
if
(
sLine
.
startsWith
(
"WordStartTime="
))
...
...
qadevOOo/runner/graphical/MSOfficePostscriptCreator.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -635,7 +635,7 @@ public class MSOfficePostscriptCreator implements IOffice
if
(
aLine
!=
null
)
{
aLine
=
aLine
.
trim
();
if
(
(
!
(
aLine
.
length
()
<
2
)
)
&&
if
(
(
aLine
.
length
()
>=
2
)
&&
(!
aLine
.
startsWith
(
"#"
))
&&
(!
aLine
.
startsWith
(
";"
))
)
{
...
...
qadevOOo/runner/graphical/PerformanceContainer.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -177,7 +177,7 @@ public class PerformanceContainer /* extends *//* implements */ {
{
sLine
=
aRandomAccessFile
.
readLine
();
if
(
(
sLine
!=
null
)
&&
(
!
(
sLine
.
length
()
<
2
)
)
&&
(
sLine
.
length
()
>=
2
)
&&
(!
sLine
.
startsWith
(
"#"
)))
{
if
(
sLine
.
startsWith
(
"WordStartTime="
))
...
...
qadevOOo/runner/helper/OfficeProvider.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -671,7 +671,7 @@ public class OfficeProvider implements AppProvider
if
(
sep
.
equalsIgnoreCase
(
"\\"
))
{
if
(
!(
idx2
<
0
)
)
if
(
idx2
>=
0
)
{
sysDir
=
sysDir
.
substring
(
1
);
}
...
...
qadevOOo/tests/java/ifc/sheet/_XAreaLink.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -49,7 +49,7 @@ public class _XAreaLink extends MultiMethodTest {
log
.
println
(
"testing getDestArea()"
);
boolean
bResult
=
false
;
oORAdd
=
oObj
.
getDestArea
();
if
(
!(
oORAdd
==
null
)
){
bResult
=
true
;
}
if
(
oORAdd
!=
null
){
bResult
=
true
;
}
tRes
.
tested
(
"getDestArea()"
,
bResult
)
;
}
...
...
@@ -63,7 +63,7 @@ public class _XAreaLink extends MultiMethodTest {
boolean
bResult
=
false
;
String
src
=
null
;
src
=
oObj
.
getSourceArea
()
;
if
(
!(
src
==
null
)
){
bResult
=
true
;
}
if
(
src
!=
null
){
bResult
=
true
;
}
tRes
.
tested
(
"getSourceArea()"
,
bResult
)
;
}
...
...
qadevOOo/tests/java/ifc/sheet/_XScenarioEnhanced.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -40,35 +40,35 @@ public class _XScenarioEnhanced extends MultiMethodTest {
CellRangeAddress
first
=
getting
[
0
];
if
(
!(
first
.
Sheet
==
1
)
)
{
if
(
first
.
Sheet
!=
1
)
{
log
.
println
(
"wrong RangeAddress is returned, expected Sheet=0 and got "
+
first
.
Sheet
);
res
=
false
;
}
if
(
!(
first
.
StartColumn
==
0
)
)
{
if
(
first
.
StartColumn
!=
0
)
{
log
.
println
(
"wrong RangeAddress is returned, expected StartColumn=0 and got "
+
first
.
StartColumn
);
res
=
false
;
}
if
(
!(
first
.
EndColumn
==
10
)
)
{
if
(
first
.
EndColumn
!=
10
)
{
log
.
println
(
"wrong RangeAddress is returned, expected EndColumn=10 and got "
+
first
.
EndColumn
);
res
=
false
;
}
if
(
!(
first
.
StartRow
==
0
)
)
{
if
(
first
.
StartRow
!=
0
)
{
log
.
println
(
"wrong RangeAddress is returned, expected StartRow=0 and got "
+
first
.
StartRow
);
res
=
false
;
}
if
(
!(
first
.
EndRow
==
10
)
)
{
if
(
first
.
EndRow
!=
10
)
{
log
.
println
(
"wrong RangeAddress is returned, expected EndRow=10 and got "
+
first
.
EndRow
);
...
...
qadevOOo/tests/java/ifc/table/_XCellCursor.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -77,7 +77,7 @@ public class _XCellCursor extends MultiMethodTest {
oAddr
=
oRange
.
getRangeAddress
();
startCol2
=
oAddr
.
StartColumn
;
if
(
!(
startCol
==
startCol2
)
){
if
(
startCol
!=
startCol2
){
bResult
=
true
;
}
tRes
.
tested
(
"gotoNext()"
,
bResult
);
...
...
@@ -105,7 +105,7 @@ public class _XCellCursor extends MultiMethodTest {
oAddr
=
oRange
.
getRangeAddress
();
startRow2
=
oAddr
.
StartRow
;
startCol2
=
oAddr
.
StartColumn
;
if
(
!(
startCol
=
=
startCol2
)
||
(
startRow
==
startRow2
)){
if
(
(
startCol
!
=
startCol2
)
||
(
startRow
==
startRow2
)){
bResult
=
true
;
}
tRes
.
tested
(
"gotoOffset()"
,
bResult
);
...
...
@@ -131,7 +131,7 @@ public class _XCellCursor extends MultiMethodTest {
oAddr
=
oRange
.
getRangeAddress
();
startCol2
=
oAddr
.
StartColumn
;
if
(
!(
startCol
==
startCol2
)
){
if
(
startCol
!=
startCol2
){
bResult
=
true
;
}
tRes
.
tested
(
"gotoPrevious()"
,
bResult
);
...
...
qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -49,7 +49,7 @@ public class _XSearchDescriptor extends MultiMethodTest {
log
.
println
(
"test for getSearchString() "
);
searchStr
=
oObj
.
getSearchString
();
if
(
!(
searchStr
==
null
)
){
bResult
=
true
;
}
if
(
searchStr
!=
null
){
bResult
=
true
;
}
tRes
.
tested
(
"getSearchString()"
,
bResult
);
}
...
...
scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -117,8 +117,7 @@ public class UCBStreamHandler extends URLStreamHandler {
try
{
String
sUrl
=
url
.
toString
();
if
(!(
sUrl
.
lastIndexOf
(
separator
)
==
-
1
))
{
if
(
sUrl
.
lastIndexOf
(
separator
)
!=
-
1
)
{
String
path
=
sUrl
.
substring
(
0
,
sUrl
.
lastIndexOf
(
separator
));
if
(
m_xSimpleFileAccess
.
isReadOnly
(
path
))
{
...
...
wizards/com/sun/star/wizards/db/QueryMetaData.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -125,7 +125,7 @@ public class QueryMetaData extends CommandMetaData
for
(
int
n
=
0
;
n
<
FieldColumns
.
length
;
n
++)
{
String
sDisplayFieldName
=
FieldColumns
[
n
].
getDisplayFieldName
();
if
(
!(
JavaTools
.
FieldInList
(
_DisplayFieldNames
,
sDisplayFieldName
)
>
-
1
)
)
if
(
JavaTools
.
FieldInList
(
_DisplayFieldNames
,
sDisplayFieldName
)
<=
-
1
)
{
oRemainingFieldColumns
.
add
(
FieldColumns
[
n
]);
}
...
...
wizards/com/sun/star/wizards/report/ReportTextImplementation.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -373,7 +373,7 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme
CurDBColumn
=
getDoc
().
DBColumnsVector
.
get
(
ColIndex
);
addLinkedTextSection
(
xTextCursor
,
ReportTextDocument
.
COPYOFGROUPSECTION
+
Integer
.
toString
(
ColIndex
+
1
),
CurDBColumn
,
CurGroupValue
);
OldGroupFieldValues
[
ColIndex
]
=
CurGroupValue
;
breset
=
!(
ColIndex
==
GroupFieldCount
-
1
)
;
breset
=
ColIndex
!=
GroupFieldCount
-
1
;
}
}
getRecordParser
().
getcurrentRecordData
(
DataVector
);
...
...
wizards/com/sun/star/wizards/ui/CommandFieldSelection.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -343,7 +343,7 @@ public class CommandFieldSelection extends FieldSelection implements Comparator<
public
void
toggleCommandListBox
(
String
[]
_NewItems
)
{
boolean
bdoenable
=
!(
QueryMetaData
.
getIncludedCommandNames
(
_NewItems
).
length
>=
CurDBMetaData
.
getMaxTablesInSelect
()
);
boolean
bdoenable
=
QueryMetaData
.
getIncludedCommandNames
(
_NewItems
).
length
<
CurDBMetaData
.
getMaxTablesInSelect
(
);
toggleCommandListBox
(
bdoenable
);
}
...
...
wizards/com/sun/star/wizards/ui/WizardDialog.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -593,7 +593,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
}
else
{
enableNextButton
(
!(
getCurrentStep
()
==
nMaxStep
)
);
enableNextButton
(
getCurrentStep
()
!=
nMaxStep
);
}
}
}
...
...
wizards/com/sun/star/wizards/ui/event/MethodInvocation.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -59,7 +59,7 @@ public class MethodInvocation
{
mMethod
=
method
;
mObject
=
obj
;
mWithParam
=
!(
paramClass
==
null
)
;
mWithParam
=
paramClass
!=
null
;
}
/**
...
...
xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/Format.java
Dosyayı görüntüle @
dc53e302
...
...
@@ -164,7 +164,7 @@ public class Format implements Cloneable {
public
boolean
getAttribute
(
int
attribute
)
{
if
((
mask
&
attribute
)
==
0
)
return
false
;
return
(
!((
attributes
&
attribute
)
==
0
)
);
return
(
(
attributes
&
attribute
)
!=
0
);
}
/**
...
...
@@ -431,4 +431,4 @@ public class Format implements Cloneable {
return
true
;
}
}
\ 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