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
60f152ca
Kaydet (Commit)
60f152ca
authored
Agu 13, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java: avoid unnecessary comparisons in boolean expressions
i.e. stuff like "x == true" Change-Id: Ib82a4a30e736df392405332fa197b588482cffcf
üst
2922a967
Hide whitespace changes
Inline
Side-by-side
Showing
93 changed files
with
225 additions
and
226 deletions
+225
-226
LocalOfficeConnection.java
bean/com/sun/star/comp/beans/LocalOfficeConnection.java
+1
-1
OOoBean.java
bean/com/sun/star/comp/beans/OOoBean.java
+2
-2
WriterFrame.java
bean/qa/complex/bean/WriterFrame.java
+1
-1
Test.java
codemaker/test/javamaker/Test.java
+6
-6
BooleanValidator.java
forms/qa/integration/forms/BooleanValidator.java
+2
-2
InterfaceContainer.java
...elper/com/sun/star/lib/uno/helper/InterfaceContainer.java
+3
-3
PropertySet.java
javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
+1
-1
Bootstrap_Test.java
...ohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java
+1
-1
SharedLibraryLoader_Test.java
...st/com/sun/star/comp/helper/SharedLibraryLoader_Test.java
+2
-2
ComponentBase_Test.java
.../test/com/sun/star/lib/uno/helper/ComponentBase_Test.java
+3
-3
InterfaceContainer_Test.java
.../com/sun/star/lib/uno/helper/InterfaceContainer_Test.java
+7
-7
MultiTypeInterfaceContainer_Test.java
...star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java
+6
-6
PropertySet_Test.java
...er/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
+14
-14
ProxyProvider.java
...elper/test/com/sun/star/lib/uno/helper/ProxyProvider.java
+1
-1
WeakBase_Test.java
...elper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java
+4
-4
JREProperties.java
jvmfwk/plugins/sunmajor/pluginlib/JREProperties.java
+1
-1
PresentationDemo.java
odk/examples/DevelopersGuide/Drawing/PresentationDemo.java
+1
-1
Desk.java
...es/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java
+2
-2
DocumentView.java
...opersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
+2
-2
FunctionHelper.java
...ersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
+8
-8
Interceptor.java
...lopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
+8
-8
StatusListener.java
...ersGuide/OfficeDev/DesktopEnvironment/StatusListener.java
+1
-1
ViewContainer.java
...persGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
+5
-5
AsciiReplaceFilter.java
...Dev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
+5
-5
FilterOptions.java
...fficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
+1
-1
PropChgHelper_Spell.java
...lopersGuide/OfficeDev/Linguistic/PropChgHelper_Spell.java
+3
-3
TerminateListener.java
...ersGuide/OfficeDev/TerminationTest/TerminateListener.java
+1
-1
TerminationTest.java
...opersGuide/OfficeDev/TerminationTest/TerminationTest.java
+2
-2
ScriptSelector.java
...amework/ScriptSelector/ScriptSelector/ScriptSelector.java
+1
-1
InstallationFinder.java
odk/source/com/sun/star/lib/loader/InstallationFinder.java
+1
-1
ConvWatch.java
qadevOOo/runner/convwatch/ConvWatch.java
+3
-3
ConvWatchStarter.java
qadevOOo/runner/convwatch/ConvWatchStarter.java
+1
-1
DirectoryHelper.java
qadevOOo/runner/convwatch/DirectoryHelper.java
+1
-1
DocumentConverter.java
qadevOOo/runner/convwatch/DocumentConverter.java
+1
-1
FileHelper.java
qadevOOo/runner/convwatch/FileHelper.java
+1
-1
GraphicalTestArguments.java
qadevOOo/runner/convwatch/GraphicalTestArguments.java
+1
-1
MSOfficePrint.java
qadevOOo/runner/convwatch/MSOfficePrint.java
+6
-6
OfficePrint.java
qadevOOo/runner/convwatch/OfficePrint.java
+6
-6
ReferenceBuilder.java
qadevOOo/runner/convwatch/ReferenceBuilder.java
+2
-2
DirectoryHelper.java
qadevOOo/runner/graphical/DirectoryHelper.java
+1
-1
FileHelper.java
qadevOOo/runner/graphical/FileHelper.java
+1
-1
IniFile.java
qadevOOo/runner/graphical/IniFile.java
+1
-1
MSOfficePostscriptCreator.java
qadevOOo/runner/graphical/MSOfficePostscriptCreator.java
+4
-4
OpenOfficePostscriptCreator.java
qadevOOo/runner/graphical/OpenOfficePostscriptCreator.java
+2
-2
ParameterHelper.java
qadevOOo/runner/graphical/ParameterHelper.java
+1
-1
OfficeProvider.java
qadevOOo/runner/helper/OfficeProvider.java
+1
-1
ProcessHandler.java
qadevOOo/runner/helper/ProcessHandler.java
+1
-1
URLHelper.java
qadevOOo/runner/helper/URLHelper.java
+2
-2
RegistryTools.java
qadevOOo/runner/util/RegistryTools.java
+2
-2
_XTextLayoutConstrains.java
qadevOOo/tests/java/ifc/awt/_XTextLayoutConstrains.java
+2
-2
_XDispatch.java
qadevOOo/tests/java/ifc/frame/_XDispatch.java
+1
-1
_XDictionaryList.java
qadevOOo/tests/java/ifc/linguistic2/_XDictionaryList.java
+1
-1
_XImplementationLoader.java
qadevOOo/tests/java/ifc/loader/_XImplementationLoader.java
+1
-1
XMLSettingsImporter.java
...vOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java
+1
-1
XMLSettingsImporter.java
...o/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java
+1
-1
HighlightText.java
scripting/examples/java/Highlight/HighlightText.java
+2
-2
SecurityDialog.java
...om/sun/star/script/framework/security/SecurityDialog.java
+1
-1
ParcelBrowseNode.java
...om/sun/star/script/framework/browse/ParcelBrowseNode.java
+2
-2
ProviderBrowseNode.java
.../sun/star/script/framework/browse/ProviderBrowseNode.java
+1
-1
ScriptBrowseNode.java
...om/sun/star/script/framework/browse/ScriptBrowseNode.java
+1
-1
ScriptProvider.java
...om/sun/star/script/framework/provider/ScriptProvider.java
+1
-1
PlainSourceView.java
.../script/framework/provider/beanshell/PlainSourceView.java
+1
-1
ScriptEditorForBeanShell.java
...ramework/provider/beanshell/ScriptEditorForBeanShell.java
+1
-1
ScriptProviderForJavaScript.java
...work/provider/javascript/ScriptProviderForJavaScript.java
+1
-1
CommandLineTools.java
...ting/java/org/openoffice/idesupport/CommandLineTools.java
+6
-6
ExtensionFinder.java
...pting/java/org/openoffice/idesupport/ExtensionFinder.java
+2
-2
JavaFinder.java
scripting/java/org/openoffice/idesupport/JavaFinder.java
+3
-3
SVersionRCFile.java
scripting/java/org/openoffice/idesupport/SVersionRCFile.java
+4
-4
Manifest.java
scripting/java/org/openoffice/idesupport/xml/Manifest.java
+1
-1
ParcelZipper.java
...ting/java/org/openoffice/idesupport/zip/ParcelZipper.java
+2
-2
NetBeansSourceView.java
...va/org/openoffice/netbeans/editor/NetBeansSourceView.java
+1
-1
DeployParcelAction.java
...e/netbeans/modules/office/actions/DeployParcelAction.java
+5
-5
ParcelFolderSupport.java
.../netbeans/modules/office/actions/ParcelFolderSupport.java
+1
-1
ParcelSupport.java
...office/netbeans/modules/office/actions/ParcelSupport.java
+5
-5
OpenOfficeDocFileSystem.java
...ns/modules/office/filesystem/OpenOfficeDocFileSystem.java
+12
-13
OfficeDocumentDataLoader.java
...beans/modules/office/loader/OfficeDocumentDataLoader.java
+1
-1
ParcelContentsFolderDataLoader.java
...modules/office/loader/ParcelContentsFolderDataLoader.java
+2
-2
ParcelDataNode.java
...office/netbeans/modules/office/loader/ParcelDataNode.java
+1
-1
ParcelDescriptorDataObject.java
...ans/modules/office/loader/ParcelDescriptorDataObject.java
+2
-2
ParcelFolderDataLoader.java
...etbeans/modules/office/loader/ParcelFolderDataLoader.java
+1
-1
OfficeDocumentChildren.java
...netbeans/modules/office/nodes/OfficeDocumentChildren.java
+4
-4
FrameworkJarChecker.java
...ce/netbeans/modules/office/utils/FrameworkJarChecker.java
+2
-2
PackageRemover.java
...noffice/netbeans/modules/office/utils/PackageRemover.java
+1
-1
IdeUpdater.java
scripting/workben/installer/IdeUpdater.java
+1
-1
IdeVersion.java
scripting/workben/installer/IdeVersion.java
+2
-2
InstUtil.java
scripting/workben/installer/InstUtil.java
+1
-1
Version.java
scripting/workben/installer/Version.java
+2
-2
ZipData.java
scripting/workben/installer/ZipData.java
+1
-1
Convert.java
xmerge/source/xmerge/java/org/openoffice/xmerge/Convert.java
+2
-2
EmbeddedXMLObject.java
...rg/openoffice/xmerge/converter/xml/EmbeddedXMLObject.java
+1
-1
DocumentMerge.java
...ava/org/openoffice/xmerge/merger/merge/DocumentMerge.java
+1
-1
ConverterInfo.java
...va/org/openoffice/xmerge/util/registry/ConverterInfo.java
+2
-2
ConverterInfoMgr.java
...org/openoffice/xmerge/util/registry/ConverterInfoMgr.java
+4
-4
No files found.
bean/com/sun/star/comp/beans/LocalOfficeConnection.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -234,7 +234,7 @@ public class LocalOfficeConnection
public
void
dispose
()
{
Iterator
<
XEventListener
>
itr
=
mComponents
.
iterator
();
while
(
itr
.
hasNext
()
==
true
)
{
while
(
itr
.
hasNext
())
{
// ignore runtime exceptions in dispose
try
{
itr
.
next
().
disposing
(
null
);
}
catch
(
RuntimeException
aExc
)
{}
...
...
bean/com/sun/star/comp/beans/OOoBean.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -582,7 +582,7 @@ public class OOoBean
{
if
(
aFrame
!=
null
&&
xOldController
!=
null
)
if
(
xOldController
.
suspend
(
true
)
==
false
)
if
(
!
xOldController
.
suspend
(
true
)
)
throw
new
com
.
sun
.
star
.
util
.
CloseVetoException
(
"Dokument is still being used and cannot be closed."
,
this
);
...
...
@@ -1187,7 +1187,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
// continue to trying to connect the OOo instance
long
n
=
0
;
while
(
isInterrupted
()
==
false
while
(
!
isInterrupted
()
&&
iConnection
!=
null
&&
iConnection
.
getComponentContext
()
!=
null
)
{
...
...
bean/qa/complex/bean/WriterFrame.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -42,7 +42,7 @@ class WriterFrame extends java.awt.Frame
try
{
if
(
loadBeforeVisible
==
fals
e
)
if
(
!
loadBeforeVisibl
e
)
{
m_bean
=
new
com
.
sun
.
star
.
comp
.
beans
.
OOoBean
(
new
PrivateLocalOfficeConnection
(
_xConn
));
add
(
m_bean
,
BorderLayout
.
CENTER
);
...
...
codemaker/test/javamaker/Test.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -126,7 +126,7 @@ public final class Test extends ComplexTestCase {
public
void
testEmptyStruct2
()
{
Struct2
s
=
new
Struct2
();
assure
(
s
.
p1
==
false
);
assure
(
!
s
.
p1
);
assure
(
s
.
p2
==
0
);
assure
(
s
.
p3
==
0
);
assure
(
s
.
p4
==
0
);
...
...
@@ -144,7 +144,7 @@ public final class Test extends ComplexTestCase {
assure
(
s
.
p16
.
member1
==
0
);
assure
(
s
.
p17
==
null
);
assure
(
s
.
p18
==
null
);
assure
(
s
.
t1
==
false
);
assure
(
!
s
.
t1
);
assure
(
s
.
t2
==
0
);
assure
(
s
.
t3
==
0
);
assure
(
s
.
t4
==
0
);
...
...
@@ -242,7 +242,7 @@ public final class Test extends ComplexTestCase {
new
char
[
0
][],
new
String
[
0
][],
new
Type
[
0
][],
new
Object
[
0
][],
new
Enum2
[
0
][],
new
Struct1
[
0
][],
new
Object
[
0
][],
new
XNamingService
[
0
][]);
assure
(
s
.
p1
==
true
);
assure
(
s
.
p1
);
assure
(
s
.
p2
==
1
);
assure
(
s
.
p3
==
2
);
assure
(
s
.
p4
==
3
);
...
...
@@ -260,7 +260,7 @@ public final class Test extends ComplexTestCase {
assure
(
s
.
p16
.
member1
==
1
);
assure
(
s
.
p17
==
null
);
assure
(
s
.
p18
==
null
);
assure
(
s
.
t1
==
false
);
assure
(
!
s
.
t1
);
assure
(
s
.
t2
==
0
);
assure
(
s
.
t3
==
0
);
assure
(
s
.
t4
==
0
);
...
...
@@ -279,8 +279,8 @@ public final class Test extends ComplexTestCase {
assure
(
s
.
t17
==
null
);
assure
(
s
.
t18
==
null
);
assure
(
s
.
a1
.
length
==
2
);
assure
(
s
.
a1
[
0
]
==
false
);
assure
(
s
.
a1
[
1
]
==
true
);
assure
(
!
s
.
a1
[
0
]
);
assure
(
s
.
a1
[
1
]);
assure
(
s
.
a2
.
length
==
2
);
assure
(
s
.
a2
[
0
]
==
1
);
assure
(
s
.
a2
[
1
]
==
2
);
...
...
forms/qa/integration/forms/BooleanValidator.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -43,7 +43,7 @@ public class BooleanValidator extends integration.forms.ControlValidator
if
(
AnyConverter
.
isVoid
(
Value
)
)
return
"'indetermined' is not an allowed state"
;
boolean
value
=
((
Boolean
)
Value
).
booleanValue
();
if
(
m_preventChecked
&&
(
value
==
true
)
)
if
(
m_preventChecked
&&
(
value
)
)
return
"no no no. Don't check it."
;
}
catch
(
java
.
lang
.
Exception
e
)
...
...
@@ -61,7 +61,7 @@ public class BooleanValidator extends integration.forms.ControlValidator
return
false
;
boolean
value
=
((
Boolean
)
Value
).
booleanValue
();
if
(
m_preventChecked
&&
(
value
==
true
)
)
if
(
m_preventChecked
&&
(
value
)
)
return
false
;
return
true
;
}
...
...
javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -314,7 +314,7 @@ public class InterfaceContainer implements Cloneable
while
(
it
.
hasNext
())
{
Object
obj
=
it
.
next
();
if
(
false
==
contains
(
obj
))
if
(
!
contains
(
obj
))
{
retVal
=
false
;
break
;
...
...
@@ -556,7 +556,7 @@ public class InterfaceContainer implements Cloneable
break
;
}
}
if
(
bExists
==
false
)
if
(
!
bExists
)
{
itColl
=
collection
.
iterator
();
while
(
itColl
.
hasNext
())
...
...
@@ -572,7 +572,7 @@ public class InterfaceContainer implements Cloneable
}
}
}
if
(
bExists
==
true
)
if
(
bExists
)
arRetained
[
indexRetained
++]=
curElem
;
}
retVal
=
size
!=
indexRetained
;
...
...
javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -264,7 +264,7 @@ XMultiPropertySet
*/
protected
void
assignPropertyId
(
Property
prop
,
Object
id
)
{
if
(
id
instanceof
String
&&
((
String
)
id
).
equals
(
""
)
==
false
)
if
(
id
instanceof
String
&&
!((
String
)
id
).
equals
(
""
)
)
_propertyToIdMap
.
put
(
prop
,
id
);
}
...
...
javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -109,7 +109,7 @@ public class Bootstrap_Test {
}
}
System
.
exit
(
test
(
args
[
0
],
bootstrap_parameters
)
==
true
?
0
:
-
1
);
System
.
exit
(
test
(
args
[
0
],
bootstrap_parameters
)
?
0
:
-
1
);
}
}
javaunohelper/test/com/sun/star/comp/helper/SharedLibraryLoader_Test.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -142,7 +142,7 @@ public class SharedLibraryLoader_Test {
result
=
SharedLibraryLoader
.
writeRegistryServiceInfo
(
null
,
regKey
);
System
.
out
.
print
(
"Test - "
);
System
.
out
.
println
(
result
==
false
?
"failed"
:
"successful"
);
System
.
out
.
println
(
!
result
?
"failed"
:
"successful"
);
System
.
out
.
println
(
"*******************************************************************"
);
System
.
out
.
println
();
return
result
;
...
...
@@ -163,7 +163,7 @@ public class SharedLibraryLoader_Test {
}
static
public
void
main
(
String
args
[])
throws
java
.
lang
.
Exception
{
System
.
exit
(
test
()
==
true
?
0
:
-
1
);
System
.
exit
(
test
()
?
0
:
-
1
);
}
}
javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -80,7 +80,7 @@ public class ComponentBase_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -114,7 +114,7 @@ public class ComponentBase_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -133,7 +133,7 @@ public class ComponentBase_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Errors occurred!"
);
else
System
.
out
.
println
(
"No errors."
);
...
...
javaunohelper/test/com/sun/star/lib/uno/helper/InterfaceContainer_Test.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -94,7 +94,7 @@ public class InterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -114,7 +114,7 @@ public class InterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -135,7 +135,7 @@ public class InterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -155,7 +155,7 @@ public class InterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -194,7 +194,7 @@ public class InterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -229,7 +229,7 @@ public class InterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -915,7 +915,7 @@ public class InterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -107,7 +107,7 @@ public class MultiTypeInterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -153,7 +153,7 @@ public class MultiTypeInterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -186,7 +186,7 @@ public class MultiTypeInterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -221,7 +221,7 @@ public class MultiTypeInterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -254,7 +254,7 @@ public class MultiTypeInterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -288,7 +288,7 @@ public class MultiTypeInterfaceContainer_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -57,7 +57,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -79,7 +79,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -581,7 +581,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -776,7 +776,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -828,7 +828,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -859,7 +859,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -885,7 +885,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -920,7 +920,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -949,7 +949,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -991,7 +991,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -1025,7 +1025,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -1065,7 +1065,7 @@ public class PropertySet_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Errors occurred!"
);
else
System
.
out
.
println
(
"No errors."
);
...
...
@@ -1503,7 +1503,7 @@ class TestClass2 extends PropertySet
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -1566,7 +1566,7 @@ class TestClass2 extends PropertySet
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -43,7 +43,7 @@ public class ProxyProvider
{
Object
retVal
=
null
;
if
(
obj
==
null
||
iface
==
null
||
iface
.
isInstance
(
obj
)
==
false
)
if
(
obj
==
null
||
iface
==
null
||
!
iface
.
isInstance
(
obj
)
)
return
retVal
;
Type
type
=
new
Type
(
TypeDescription
.
getTypeDescription
(
iface
));
...
...
javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -65,7 +65,7 @@ public class WeakBase_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -99,7 +99,7 @@ public class WeakBase_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -168,7 +168,7 @@ public class WeakBase_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Failed"
);
else
System
.
out
.
println
(
"Ok"
);
...
...
@@ -187,7 +187,7 @@ public class WeakBase_Test
boolean
bOk
=
true
;
for
(
int
c
=
0
;
c
<
i
;
c
++)
bOk
=
bOk
&&
r
[
c
];
if
(
bOk
==
false
)
if
(
!
bOk
)
System
.
out
.
println
(
"Errors occurred!"
);
else
System
.
out
.
println
(
"No errors."
);
...
...
jvmfwk/plugins/sunmajor/pluginlib/JREProperties.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -63,7 +63,7 @@ public class JREProperties
//can be done by providing a sunjavaplugin.ini with
//the bootstrap parameter JFW_PLUGIN_NO_NOT_CHECK_ACCESSIBILITY
//set to "1"
if
(
bNoAccess
==
false
&&
!
bW98
)
if
(
!
bNoAccess
&&
!
bW98
)
{
try
{
//This line is needed to get the accessibility properties
...
...
odk/examples/DevelopersGuide/Drawing/PresentationDemo.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -211,7 +211,7 @@ public class PresentationDemo
// if the com.sun.star.presentation.DrawPage service is supported
XServiceInfo
xInfo
=
UnoRuntime
.
queryInterface
(
XServiceInfo
.
class
,
xPage
);
if
(
xInfo
.
supportsService
(
"com.sun.star.presentation.DrawPage"
)
==
true
)
if
(
xInfo
.
supportsService
(
"com.sun.star.presentation.DrawPage"
)
)
{
try
{
...
...
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -66,10 +66,10 @@ public class Desk
for
(
int
i
=
0
;
i
<
lArguments
.
length
;
++
i
)
{
lArguments
[
i
]
=
lArguments
[
i
].
toLowerCase
();
if
(
lArguments
[
i
].
startsWith
(
"mode="
)
==
true
)
if
(
lArguments
[
i
].
startsWith
(
"mode="
))
sMode
=
lArguments
[
i
].
substring
(
5
);
else
if
(
lArguments
[
i
].
startsWith
(
"file="
)
==
true
)
if
(
lArguments
[
i
].
startsWith
(
"file="
))
sFile
=
lArguments
[
i
].
substring
(
5
);
}
...
...
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -167,7 +167,7 @@ public class DocumentView extends JFrame
JScrollPane
paScroll
=
new
JScrollPane
();
paScroll
.
getViewport
().
add
(
paTest
,
null
);
if
(
ViewContainer
.
mbInplace
==
true
)
if
(
ViewContainer
.
mbInplace
)
{
// create view to show opened documents
// This special view is necessary for inplace mode only!
...
...
@@ -209,7 +209,7 @@ public class DocumentView extends JFrame
// create view frame (as a XFrame!) here
// Look for right view mode setted by user command line parameter.
// First try to get a new unambigous frame name from our global ViewContainer.
if
(
ViewContainer
.
mbInplace
==
true
)
if
(
ViewContainer
.
mbInplace
)
{
// inplace document view can't be initialized without a visible parent window hierarchy!
// So make sure that we are visible in every case!
...
...
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -608,7 +608,7 @@ public class FunctionHelper
com
.
sun
.
star
.
util
.
XModifiable
xModified
=
UnoRuntime
.
queryInterface
(
com
.
sun
.
star
.
util
.
XModifiable
.
class
,
xModel
);
if
(
xModified
.
isModified
()
==
true
)
if
(
xModified
.
isModified
())
{
com
.
sun
.
star
.
frame
.
XStorable
xStore
=
UnoRuntime
.
queryInterface
(
com
.
sun
.
star
.
frame
.
XStorable
.
class
,
...
...
@@ -667,13 +667,13 @@ public class FunctionHelper
{
// Find out possible filter name.
String
sFilter
=
null
;
if
(
xInfo
.
supportsService
(
"com.sun.star.text.TextDocument"
)
==
true
)
if
(
xInfo
.
supportsService
(
"com.sun.star.text.TextDocument"
))
sFilter
=
"HTML (StarWriter)"
;
else
if
(
xInfo
.
supportsService
(
"com.sun.star.text.WebDocument"
)
==
true
)
if
(
xInfo
.
supportsService
(
"com.sun.star.text.WebDocument"
))
sFilter
=
"HTML"
;
else
if
(
xInfo
.
supportsService
(
"com.sun.star.sheet.SpreadsheetDocument"
)
==
true
)
if
(
xInfo
.
supportsService
(
"com.sun.star.sheet.SpreadsheetDocument"
))
sFilter
=
"HTML (StarCalc)"
;
// Check for existing state of this filter.
...
...
@@ -688,7 +688,7 @@ public class FunctionHelper
xCtx
.
getServiceManager
().
createInstanceWithContext
(
"com.sun.star.document.FilterFactory"
,
xCtx
));
if
(
xFilterContainer
.
hasByName
(
sFilter
)==
false
)
if
(
!
xFilterContainer
.
hasByName
(
sFilter
)
)
sFilter
=
null
;
}
...
...
@@ -890,7 +890,7 @@ public class FunctionHelper
aChooser
=
new
JFileChooser
(
maLastDir
);
// decide between file open/save dialog
if
(
bOpen
==
true
)
if
(
bOpen
)
nDecision
=
aChooser
.
showOpenDialog
(
aParent
);
else
nDecision
=
aChooser
.
showSaveDialog
(
aParent
);
...
...
@@ -914,8 +914,8 @@ public class FunctionHelper
// => correct this problem first, otherwise office can't use these URL's
if
(
(
sFileURL
!=
null
)
&&
(
sFileURL
.
startsWith
(
"file:/"
)
==
true
)
&&
(
sFileURL
.
startsWith
(
"file://"
)==
false
)
(
sFileURL
.
startsWith
(
"file:/"
)
)
&&
(
!
sFileURL
.
startsWith
(
"file://"
)
)
)
{
StringBuffer
sWorkBuffer
=
new
StringBuffer
(
sFileURL
);
...
...
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
Dosyayı görüntüle @
60f152ca
...
...
@@ -128,7 +128,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
return
;
if
(
m_xFrame
==
null
)
return
;
if
(
m_bIsActionListener
==
true
)
if
(
m_bIsActionListener
)
return
;
xFrame
=
m_xFrame
;
}
...
...
@@ -423,7 +423,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
// intercept loading empty documents into new created frames
if
(
(
sTarget
.
compareTo
(
"_blank"
)
==
0
)
&&
(
aURL
.
Complete
.
startsWith
(
"private:factory"
)
==
true
)
(
aURL
.
Complete
.
startsWith
(
"private:factory"
))
)
{
System
.
out
.
println
(
"intercept private:factory"
);
...
...
@@ -431,7 +431,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
}
// intercept opening the SaveAs dialog
if
(
aURL
.
Complete
.
startsWith
(
".uno:SaveAs"
)
==
true
)
if
(
aURL
.
Complete
.
startsWith
(
".uno:SaveAs"
))
{
System
.
out
.
println
(
"intercept SaveAs by returning null!"
);
return
null
;
...
...
@@ -439,8 +439,8 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
// intercept "File->Exit" inside the menu
if
(
(
aURL
.
Complete
.
startsWith
(
"slot:5300"
)
==
true
)
||
(
aURL
.
Complete
.
startsWith
(
".uno:Quit"
)
==
true
)
(
aURL
.
Complete
.
startsWith
(
"slot:5300"
))
||
(
aURL
.
Complete
.
startsWith
(
".uno:Quit"
))
)
{
System
.
out
.
println
(
"intercept File->Exit"
);
...
...
@@ -500,14 +500,14 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
}
if
(
(
aURL
.
Complete
.
startsWith
(
"slot:5300"
)
==
true
)
||
(
aURL
.
Complete
.
startsWith
(
".uno:Quit"
)
==
true
)
(
aURL
.
Complete
.
startsWith
(
"slot:5300"
))
||
(
aURL
.
Complete
.
startsWith
(
".uno:Quit"
))
)
{
System
.
exit
(
0
);
}
else
if
(
aURL
.
Complete
.
startsWith
(
"private:factory"
)
==
true
)
if
(
aURL
.
Complete
.
startsWith
(
"private:factory"
))
{
// Create view frame for showing loaded documents on demand.