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
a753a458
Kaydet (Commit)
a753a458
authored
Agu 13, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java: avoid if..else when returning boolean values
Change-Id: Iab52762a9abfe8735223372b09638ce9d8d44318
üst
60f152ca
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
16 additions
and
71 deletions
+16
-71
ProxyProvider.java
...elper/test/com/sun/star/lib/uno/helper/ProxyProvider.java
+2
-8
ParameterHelper.java
qadevOOo/runner/graphical/ParameterHelper.java
+2
-9
ScriptPanel.java
scripting/java/org/openoffice/idesupport/ui/ScriptPanel.java
+1
-4
ParcelSupport.java
...office/netbeans/modules/office/actions/ParcelSupport.java
+1
-4
NagDialog.java
...g/openoffice/netbeans/modules/office/utils/NagDialog.java
+1
-4
_XFunctionProvider.java
scripting/workben/ifc/scripting/_XFunctionProvider.java
+1
-4
_XScriptInfoAccess.java
scripting/workben/ifc/scripting/_XScriptInfoAccess.java
+3
-12
_XScriptInvocation.java
scripting/workben/ifc/scripting/_XScriptInvocation.java
+1
-4
_XScriptNameResolver.java
scripting/workben/ifc/scripting/_XScriptNameResolver.java
+1
-4
_XScriptSecurity.java
scripting/workben/ifc/scripting/_XScriptSecurity.java
+1
-8
IdeVersion.java
scripting/workben/installer/IdeVersion.java
+1
-5
Version.java
scripting/workben/installer/Version.java
+1
-5
No files found.
javaunohelper/test/com/sun/star/lib/uno/helper/ProxyProvider.java
Dosyayı görüntüle @
a753a458
...
@@ -80,17 +80,11 @@ class Proxy implements IQueryInterface, XEventListener
...
@@ -80,17 +80,11 @@ class Proxy implements IQueryInterface, XEventListener
if
(
object
instanceof
IQueryInterface
)
if
(
object
instanceof
IQueryInterface
)
{
{
IQueryInterface
iquery
=
(
IQueryInterface
)
object
;
IQueryInterface
iquery
=
(
IQueryInterface
)
object
;
if
(
iquery
.
getOid
().
equals
(
oid
))
return
(
iquery
.
getOid
().
equals
(
oid
));
return
true
;
else
return
false
;
}
}
String
oidObj
=
UnoRuntime
.
generateOid
(
object
);
String
oidObj
=
UnoRuntime
.
generateOid
(
object
);
if
(
oidObj
.
equals
(
oid
))
return
(
oidObj
.
equals
(
oid
));
return
true
;
else
return
false
;
}
}
public
Object
queryInterface
(
Type
type
)
{
public
Object
queryInterface
(
Type
type
)
{
...
...
qadevOOo/runner/graphical/ParameterHelper.java
Dosyayı görüntüle @
a753a458
...
@@ -244,15 +244,8 @@ public class ParameterHelper
...
@@ -244,15 +244,8 @@ public class ParameterHelper
String
sOfficeViewable
=
(
String
)
m_aCurrentParams
.
get
(
PropertyName
.
OFFICE_VIEWABLE
);
String
sOfficeViewable
=
(
String
)
m_aCurrentParams
.
get
(
PropertyName
.
OFFICE_VIEWABLE
);
if
(
sOfficeViewable
!=
null
)
if
(
sOfficeViewable
!=
null
)
{
{
if
(
sOfficeViewable
.
toLowerCase
().
equals
(
"yes"
)
||
return
!(
sOfficeViewable
.
toLowerCase
().
equals
(
"yes"
)
||
sOfficeViewable
.
toLowerCase
().
equals
(
"true"
))
sOfficeViewable
.
toLowerCase
().
equals
(
"true"
));
{
return
false
;
// setViewable();
}
else
{
return
true
;
// setHidden();
}
}
}
return
true
;
/* default: hidden */
return
true
;
/* default: hidden */
}
}
...
...
scripting/java/org/openoffice/idesupport/ui/ScriptPanel.java
Dosyayı görüntüle @
a753a458
...
@@ -182,10 +182,7 @@ public class ScriptPanel extends JPanel {
...
@@ -182,10 +182,7 @@ public class ScriptPanel extends JPanel {
@Override
@Override
public
boolean
isCellEditable
(
int
row
,
int
col
)
{
public
boolean
isCellEditable
(
int
row
,
int
col
)
{
if
(
col
==
0
)
return
(
col
!=
0
);
return
false
;
else
return
true
;
}
}
@Override
@Override
...
...
scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelSupport.java
Dosyayı görüntüle @
a753a458
...
@@ -174,9 +174,6 @@ public class ParcelSupport implements ParcelCookie
...
@@ -174,9 +174,6 @@ public class ParcelSupport implements ParcelCookie
message
,
NotifyDescriptor
.
OK_CANCEL_OPTION
);
message
,
NotifyDescriptor
.
OK_CANCEL_OPTION
);
TopManager
.
getDefault
().
notify
(
d
);
TopManager
.
getDefault
().
notify
(
d
);
if
(
d
.
getValue
()
==
NotifyDescriptor
.
CANCEL_OPTION
)
return
(
d
.
getValue
()
!=
NotifyDescriptor
.
CANCEL_OPTION
);
return
false
;
else
return
true
;
}
}
}
}
scripting/java/org/openoffice/netbeans/modules/office/utils/NagDialog.java
Dosyayı görüntüle @
a753a458
...
@@ -66,10 +66,7 @@ public class NagDialog {
...
@@ -66,10 +66,7 @@ public class NagDialog {
public
boolean
show
()
{
public
boolean
show
()
{
TopManager
.
getDefault
().
notify
(
descriptor
);
TopManager
.
getDefault
().
notify
(
descriptor
);
if
(
descriptor
.
getValue
()
==
NotifyDescriptor
.
OK_OPTION
)
return
(
descriptor
.
getValue
()
==
NotifyDescriptor
.
OK_OPTION
);
return
true
;
else
return
false
;
}
}
public
boolean
getState
()
{
public
boolean
getState
()
{
...
...
scripting/workben/ifc/scripting/_XFunctionProvider.java
Dosyayı görüntüle @
a753a458
...
@@ -77,9 +77,6 @@ public class _XFunctionProvider extends MultiMethodTest {
...
@@ -77,9 +77,6 @@ public class _XFunctionProvider extends MultiMethodTest {
output
=
"XFunction.class"
;
output
=
"XFunction.class"
;
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
if
(
output
.
equals
(
expected
))
return
(
output
.
equals
(
expected
));
return
true
;
else
return
false
;
}
}
}
}
scripting/workben/ifc/scripting/_XScriptInfoAccess.java
Dosyayı görüntüle @
a753a458
...
@@ -86,10 +86,7 @@ public class _XScriptInfoAccess extends MultiMethodTest {
...
@@ -86,10 +86,7 @@ public class _XScriptInfoAccess extends MultiMethodTest {
}
}
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
if
(
output
.
equals
(
expected
))
return
(
output
.
equals
(
expected
));
return
true
;
else
return
false
;
}
}
public
void
_getImplementations
()
{
public
void
_getImplementations
()
{
...
@@ -143,10 +140,7 @@ public class _XScriptInfoAccess extends MultiMethodTest {
...
@@ -143,10 +140,7 @@ public class _XScriptInfoAccess extends MultiMethodTest {
}
}
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
if
(
output
.
equals
(
expected
))
return
(
output
.
equals
(
expected
));
return
true
;
else
return
false
;
}
}
public
void
_getAllImplementations
()
{
public
void
_getAllImplementations
()
{
...
@@ -196,9 +190,6 @@ public class _XScriptInfoAccess extends MultiMethodTest {
...
@@ -196,9 +190,6 @@ public class _XScriptInfoAccess extends MultiMethodTest {
}
}
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
if
(
output
.
equals
(
expected
))
return
(
output
.
equals
(
expected
));
return
true
;
else
return
false
;
}
}
}
}
scripting/workben/ifc/scripting/_XScriptInvocation.java
Dosyayı görüntüle @
a753a458
...
@@ -133,10 +133,7 @@ public class _XScriptInvocation extends MultiMethodTest {
...
@@ -133,10 +133,7 @@ public class _XScriptInvocation extends MultiMethodTest {
ctx
.
dispose
();
ctx
.
dispose
();
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
if
(
output
.
equals
(
expected
))
return
(
output
.
equals
(
expected
));
return
true
;
else
return
false
;
}
}
private
int
getStorageId
(
String
location
)
{
private
int
getStorageId
(
String
location
)
{
...
...
scripting/workben/ifc/scripting/_XScriptNameResolver.java
Dosyayı görüntüle @
a753a458
...
@@ -112,10 +112,7 @@ public class _XScriptNameResolver extends MultiMethodTest {
...
@@ -112,10 +112,7 @@ public class _XScriptNameResolver extends MultiMethodTest {
}
}
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
log
.
println
(
"expected: "
+
expected
+
", output: "
+
output
);
if
(
output
.
equals
(
expected
))
return
(
output
.
equals
(
expected
));
return
true
;
else
return
false
;
}
}
private
int
getStorageId
(
String
location
)
{
private
int
getStorageId
(
String
location
)
{
...
...
scripting/workben/ifc/scripting/_XScriptSecurity.java
Dosyayı görüntüle @
a753a458
...
@@ -181,14 +181,7 @@ public class _XScriptSecurity extends MultiMethodTest {
...
@@ -181,14 +181,7 @@ public class _XScriptSecurity extends MultiMethodTest {
expectedPath
=
uri
.
substring
(
0
,
uri
.
lastIndexOf
(
'/'
));
expectedPath
=
uri
.
substring
(
0
,
uri
.
lastIndexOf
(
'/'
));
}
}
log
.
println
(
"pathlist: expected: "
+
expectedPath
+
", output: "
+
setPath
);
log
.
println
(
"pathlist: expected: "
+
expectedPath
+
", output: "
+
setPath
);
if
(
setPath
.
equals
(
expectedPath
)
)
return
setPath
.
equals
(
expectedPath
);
{
return
true
;
}
else
{
return
false
;
}
}
}
return
true
;
return
true
;
}
}
...
...
scripting/workben/installer/IdeVersion.java
Dosyayı görüntüle @
a753a458
...
@@ -299,11 +299,7 @@ class MyTableModelIDE extends AbstractTableModel {
...
@@ -299,11 +299,7 @@ class MyTableModelIDE extends AbstractTableModel {
@Override
@Override
public
boolean
isCellEditable
(
int
row
,
int
col
)
{
public
boolean
isCellEditable
(
int
row
,
int
col
)
{
if
(
col
==
0
)
{
return
(
col
==
0
);
return
true
;
}
else
{
return
false
;
}
}
}
@Override
@Override
...
...
scripting/workben/installer/Version.java
Dosyayı görüntüle @
a753a458
...
@@ -314,11 +314,7 @@ class MyTableModel extends AbstractTableModel {
...
@@ -314,11 +314,7 @@ class MyTableModel extends AbstractTableModel {
@Override
@Override
public
boolean
isCellEditable
(
int
row
,
int
col
)
{
public
boolean
isCellEditable
(
int
row
,
int
col
)
{
if
(
col
==
0
)
{
return
(
col
==
0
);
return
true
;
}
else
{
return
false
;
}
}
}
@Override
@Override
...
...
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