Kaydet (Commit) a0ff85af authored tarafından Noel Grandin's avatar Noel Grandin

java:simplify boolean return expressions

Change-Id: I18c1573b7237aab88999877eec3cea41ca211c1d
üst 12d343b0
......@@ -123,11 +123,7 @@ public class JavaSystemBackend implements XSingleLayerStratum, XTypeProvider,
* @see com.sun.star.lang.XServiceInfo
*/
public boolean supportsService(String serviceName) {
if (serviceName.equals(__serviceName)) {
return true;
}
return false;
return serviceName.equals(__serviceName);
}
/**
......
......@@ -287,9 +287,7 @@ public class MyPersistObject implements XPersistObject, XTypeProvider,
* @see com.sun.star.lang.XServiceInfo
*/
public boolean supportsService(String serviceName) {
if(serviceName.equals(__serviceName))
return true;
return false;
return serviceName.equals(__serviceName);
}
/**
......
......@@ -181,33 +181,8 @@ public class CheckModuleAPI extends ComplexTestCase
}
private boolean doesQaUnoApiFolderExist(String srcRoot, String _sModul)
{
if (getQaUnoApiPath(srcRoot, _sModul) != null)
{
return true;
}
return false;
}
/*
private boolean doesQaUnoApiFolderExist(File srcRoot)
{
final FolderFilter qaFilter = new FolderFilter("qa");
final File[] qaTree = srcRoot.listFiles(qaFilter);
if (qaTree != null)
{
for (int j = 0; j < qaTree.length; j++)
{
final File qaFolder = qaTree[j];
final FolderFilter apiFilter = new FolderFilter("unoapi");
final File[] apiTree = qaFolder.listFiles(apiFilter);
if (apiTree != null && apiTree.length > 0)
{
return true;
}
}
}
return false;
return getQaUnoApiPath(srcRoot, _sModul) != null;
}
*/
private String[] getAllModuleCommand()
{
......
......@@ -132,13 +132,9 @@ public class _SpreadsheetDocumentSettings extends MultiPropertyTest {
}
public boolean hasForbiddenCharacters(Locale rLocale) {
if (rLocale.Country.equals(locale.Country) &&
return rLocale.Country.equals(locale.Country) &&
rLocale.Language.equals(locale.Language) &&
rLocale.Variant.equals(locale.Variant)) {
return true;
}
return false;
rLocale.Variant.equals(locale.Variant);
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment