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
43cc8ad3
Kaydet (Commit)
43cc8ad3
authored
Ara 19, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java: remove dead code
found by UCDetector Change-Id: I6b0f49529379072da566e927b86815f173e7a90b
üst
cfcbe2e4
Hide whitespace changes
Inline
Side-by-side
Showing
149 changed files
with
21 additions
and
4971 deletions
+21
-4971
ScreenComparer.java
bean/qa/complex/bean/ScreenComparer.java
+0
-4
JunitTest_complex.mk
connectivity/JunitTest_complex.mk
+0
-1
StorageAccess.java
...ctivity/com/sun/star/sdbcx/comp/hsqldb/StorageAccess.java
+1
-0
StorageFileAccess.java
...ity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java
+1
-0
FileSystemRuntimeException.java
connectivity/org/hsqldb/lib/FileSystemRuntimeException.java
+0
-21
DatabaseMetaData.java
...vity/qa/complex/connectivity/hsqldb/DatabaseMetaData.java
+0
-98
TestCacheSize.java
...ctivity/qa/complex/connectivity/hsqldb/TestCacheSize.java
+0
-2
CsvDatabase.java
connectivity/qa/connectivity/tools/CsvDatabase.java
+0
-5
DbaseDatabase.java
connectivity/qa/connectivity/tools/DbaseDatabase.java
+0
-4
QueryDefinition.java
connectivity/qa/connectivity/tools/QueryDefinition.java
+0
-16
Connection.java
connectivity/qa/connectivity/tools/sdb/Connection.java
+0
-7
DatabaseApplication.java
dbaccess/qa/complex/dbaccess/DatabaseApplication.java
+0
-10
FormComponent.java
forms/qa/integration/forms/FormComponent.java
+4
-54
SpreadsheetDocument.java
forms/qa/integration/forms/SpreadsheetDocument.java
+0
-70
XMLDocument.java
forms/qa/org/openoffice/xforms/XMLDocument.java
+0
-7
JunitTest_framework_complex.mk
framework/JunitTest_framework_complex.mk
+0
-3
Interceptor.java
framework/qa/complex/dispatches/Interceptor.java
+0
-12
TimeoutThread.java
framework/qa/complex/framework/recovery/TimeoutThread.java
+0
-33
StreamSimulator.java
framework/qa/complex/loadAllDocuments/StreamSimulator.java
+0
-433
TestDocument.java
framework/qa/complex/loadAllDocuments/TestDocument.java
+0
-32
AWeakBase.java
...unohelper/test/com/sun/star/lib/uno/helper/AWeakBase.java
+0
-3
PropertySet_Test.java
...er/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
+0
-3
ProxyProvider.java
...elper/test/com/sun/star/lib/uno/helper/ProxyProvider.java
+0
-2
TestBridge.java
jurt/test/com/sun/star/lib/uno/protocols/urp/TestBridge.java
+0
-2
Jar_EvolutionarySolver.mk
nlpsolver/Jar_EvolutionarySolver.mk
+0
-10
Jar_nlpsolver.mk
nlpsolver/Jar_nlpsolver.mk
+0
-1
EvalStruct.java
...utionarySolver/src/net/adaptivebox/encode/EvalStruct.java
+0
-3
BasicArray.java
...utionarySolver/src/net/adaptivebox/global/BasicArray.java
+0
-31
BasicBound.java
...utionarySolver/src/net/adaptivebox/global/BasicBound.java
+0
-14
BasicTag.java
...olutionarySolver/src/net/adaptivebox/global/BasicTag.java
+0
-21
CompareValue.java
...ionarySolver/src/net/adaptivebox/global/CompareValue.java
+0
-19
GlobalCompare.java
...onarySolver/src/net/adaptivebox/global/GlobalCompare.java
+0
-30
GlobalFile.java
...utionarySolver/src/net/adaptivebox/global/GlobalFile.java
+0
-277
GlobalString.java
...ionarySolver/src/net/adaptivebox/global/GlobalString.java
+0
-48
OutputMethods.java
...onarySolver/src/net/adaptivebox/global/OutputMethods.java
+0
-35
PenaltyComparator.java
...olver/src/net/adaptivebox/goodness/PenaltyComparator.java
+0
-41
SRComparator.java
...narySolver/src/net/adaptivebox/goodness/SRComparator.java
+0
-41
Library.java
...utionarySolver/src/net/adaptivebox/knowledge/Library.java
+0
-4
ProblemEncoder.java
...arySolver/src/net/adaptivebox/problem/ProblemEncoder.java
+0
-4
UnconstrainedProblemEncoder.java
.../net/adaptivebox/problem/UnconstrainedProblemEncoder.java
+0
-40
DesignSpace.java
...utionarySolver/src/net/adaptivebox/space/DesignSpace.java
+0
-5
ModalState.java
.../com/sun/star/comp/Calc/NLPSolver/dialogs/ModalState.java
+0
-38
BaseControl.java
...tar/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java
+0
-4
RunnerService.java
qadevOOo/runner/org/openoffice/RunnerService.java
+0
-51
Job.java
qadevOOo/testdocs/qadevlibs/source/test/Job.java
+0
-2
Jar_reportbuilder.mk
reportbuilder/Jar_reportbuilder.mk
+0
-4
DataSourceException.java
...lder/java/org/libreoffice/report/DataSourceException.java
+0
-29
ReportExpressionMetaData.java
...java/org/libreoffice/report/ReportExpressionMetaData.java
+0
-36
SOImageService.java
...rtbuilder/java/org/libreoffice/report/SOImageService.java
+0
-13
StorageRepository.java
...uilder/java/org/libreoffice/report/StorageRepository.java
+0
-5
PentahoReportAddIn.java
...va/org/libreoffice/report/pentaho/PentahoReportAddIn.java
+0
-45
PentahoReportEngine.java
...a/org/libreoffice/report/pentaho/PentahoReportEngine.java
+0
-5
PentahoReportEngineMetaData.java
...breoffice/report/pentaho/PentahoReportEngineMetaData.java
+0
-34
PentahoReportJob.java
...java/org/libreoffice/report/pentaho/PentahoReportJob.java
+0
-39
StarReportModule.java
...java/org/libreoffice/report/pentaho/StarReportModule.java
+1
-0
SumExpression.java
...libreoffice/report/pentaho/expressions/SumExpression.java
+0
-19
SumExpressionMetaData.java
...ice/report/pentaho/expressions/SumExpressionMetaData.java
+0
-69
ImageElementContext.java
...e/report/pentaho/layoutprocessor/ImageElementContext.java
+0
-14
VariablesCollection.java
...e/report/pentaho/layoutprocessor/VariablesCollection.java
+0
-7
InputRepositoryLoader.java
...reoffice/report/pentaho/loader/InputRepositoryLoader.java
+0
-12
DataStyle.java
.../java/org/libreoffice/report/pentaho/model/DataStyle.java
+0
-4
FontFaceElement.java
...org/libreoffice/report/pentaho/model/FontFaceElement.java
+0
-4
ImageElement.java
...va/org/libreoffice/report/pentaho/model/ImageElement.java
+0
-5
OfficeGroup.java
...ava/org/libreoffice/report/pentaho/model/OfficeGroup.java
+0
-11
OfficeReport.java
...va/org/libreoffice/report/pentaho/model/OfficeReport.java
+0
-10
OfficeStyle.java
...ava/org/libreoffice/report/pentaho/model/OfficeStyle.java
+0
-10
AttributeSpecification.java
...eoffice/report/pentaho/parser/AttributeSpecification.java
+0
-21
OfficeDocumentXmlResourceFactory.java
...port/pentaho/parser/OfficeDocumentXmlResourceFactory.java
+1
-0
OfficeStylesXmlResourceFactory.java
...report/pentaho/parser/OfficeStylesXmlResourceFactory.java
+1
-0
StarStyleXmlFactoryModule.java
...fice/report/pentaho/parser/StarStyleXmlFactoryModule.java
+1
-0
StarXmlFactoryModule.java
...breoffice/report/pentaho/parser/StarXmlFactoryModule.java
+1
-0
FontFaceDeclsReadHandler.java
...eport/pentaho/parser/office/FontFaceDeclsReadHandler.java
+0
-5
MasterStylesReadHandler.java
...report/pentaho/parser/office/MasterStylesReadHandler.java
+0
-5
SubDocumentReadHandler.java
...ice/report/pentaho/parser/rpt/SubDocumentReadHandler.java
+0
-5
TextContentReadHandler.java
...ce/report/pentaho/parser/text/TextContentReadHandler.java
+0
-5
XLinkReadHandler.java
...eoffice/report/pentaho/parser/xlink/XLinkReadHandler.java
+0
-20
StyleMapperKey.java
...org/libreoffice/report/pentaho/styles/StyleMapperKey.java
+0
-20
StyleMapperXmlFactoryModule.java
...ce/report/pentaho/styles/StyleMapperXmlFactoryModule.java
+1
-0
StyleMapperXmlResourceFactory.java
.../report/pentaho/styles/StyleMapperXmlResourceFactory.java
+1
-0
DefaultParameterMap.java
...java/org/libreoffice/report/util/DefaultParameterMap.java
+0
-57
DefaultReportJobDefinition.java
...g/libreoffice/report/util/DefaultReportJobDefinition.java
+0
-54
ManifestWriter.java
...lder/java/org/libreoffice/report/util/ManifestWriter.java
+0
-113
Test01.java
svl/qa/complex/passwordcontainer/Test01.java
+0
-1
Test02.java
svl/qa/complex/passwordcontainer/Test02.java
+0
-1
Test03.java
svl/qa/complex/passwordcontainer/Test03.java
+0
-1
Settings.java
swext/mediawiki/src/com/sun/star/wiki/Settings.java
+0
-17
_XAccessibleExtendedComponent.java
.../toolkit/accessibility/_XAccessibleExtendedComponent.java
+0
-8
GridDataListener.java
toolkit/qa/complex/toolkit/awtgrid/GridDataListener.java
+0
-5
AccTreeNode.java
toolkit/test/accessibility/AccTreeNode.java
+0
-37
AccessibilityTree.java
toolkit/test/accessibility/AccessibilityTree.java
+0
-5
AccessibilityTreeModel.java
toolkit/test/accessibility/AccessibilityTreeModel.java
+0
-21
AccessibleCellHandler.java
toolkit/test/accessibility/AccessibleCellHandler.java
+0
-6
AccessibleContextHandler.java
toolkit/test/accessibility/AccessibleContextHandler.java
+0
-2
AccessibleEditableTextHandler.java
...kit/test/accessibility/AccessibleEditableTextHandler.java
+0
-6
AccessibleHyperlinkHandler.java
toolkit/test/accessibility/AccessibleHyperlinkHandler.java
+0
-8
AccessibleHypertextHandler.java
toolkit/test/accessibility/AccessibleHypertextHandler.java
+0
-8
AccessibleTableHandler.java
toolkit/test/accessibility/AccessibleTableHandler.java
+0
-6
AccessibleTreeCellRenderer.java
toolkit/test/accessibility/AccessibleTreeCellRenderer.java
+0
-108
AccessibleTreeNode.java
toolkit/test/accessibility/AccessibleTreeNode.java
+0
-5
CanvasShape.java
toolkit/test/accessibility/CanvasShape.java
+0
-28
EventLogger.java
toolkit/test/accessibility/EventLogger.java
+0
-47
FrameActionListener.java
toolkit/test/accessibility/FrameActionListener.java
+0
-32
HelpWindow.java
toolkit/test/accessibility/HelpWindow.java
+0
-14
InformationWriter.java
toolkit/test/accessibility/InformationWriter.java
+0
-406
MessageArea.java
toolkit/test/accessibility/MessageArea.java
+0
-11
NodeHandler.java
toolkit/test/accessibility/NodeHandler.java
+0
-10
NodeMap.java
toolkit/test/accessibility/NodeMap.java
+0
-13
OfficeConnection.java
toolkit/test/accessibility/OfficeConnection.java
+0
-8
Options.java
toolkit/test/accessibility/Options.java
+0
-10
SimpleOffice.java
toolkit/test/accessibility/SimpleOffice.java
+1
-250
TextLogger.java
toolkit/test/accessibility/TextLogger.java
+0
-59
TextUpdateListener.java
toolkit/test/accessibility/TextUpdateListener.java
+0
-144
SelectionView.java
toolkit/test/accessibility/ov/SelectionView.java
+0
-244
UnoApiTest.java
unotest/source/java/org/openoffice/test/UnoApiTest.java
+4
-3
DocumentType.java
...t/source/java/org/openoffice/test/tools/DocumentType.java
+0
-18
OfficeDocument.java
...source/java/org/openoffice/test/tools/OfficeDocument.java
+0
-112
OfficeDocumentView.java
...ce/java/org/openoffice/test/tools/OfficeDocumentView.java
+0
-31
SpreadsheetView.java
...ource/java/org/openoffice/test/tools/SpreadsheetView.java
+0
-28
Test01.java
unotools/qa/complex/tempfile/Test01.java
+0
-3
TestHelper.java
unotools/qa/complex/tempfile/TestHelper.java
+0
-10
Jar_commonwizards.mk
wizards/Jar_commonwizards.mk
+0
-3
Properties.java
wizards/com/sun/star/wizards/common/Properties.java
+0
-22
SystemDialog.java
wizards/com/sun/star/wizards/common/SystemDialog.java
+0
-3
TerminateWizardException.java
...com/sun/star/wizards/common/TerminateWizardException.java
+0
-32
CommandMetaData.java
wizards/com/sun/star/wizards/db/CommandMetaData.java
+1
-37
DBMetaData.java
wizards/com/sun/star/wizards/db/DBMetaData.java
+0
-5
FieldColumn.java
wizards/com/sun/star/wizards/db/FieldColumn.java
+0
-10
FormHandler.java
wizards/com/sun/star/wizards/document/FormHandler.java
+0
-20
OfficeDocument.java
wizards/com/sun/star/wizards/document/OfficeDocument.java
+0
-19
FormControlArranger.java
wizards/com/sun/star/wizards/form/FormControlArranger.java
+0
-5
FormDocument.java
wizards/com/sun/star/wizards/form/FormDocument.java
+0
-7
QueryWizard.java
wizards/com/sun/star/wizards/query/QueryWizard.java
+0
-6
ReportFinalizer.java
wizards/com/sun/star/wizards/report/ReportFinalizer.java
+0
-11
ReportTextDocument.java
wizards/com/sun/star/wizards/report/ReportTextDocument.java
+0
-7
ReportWizard.java
wizards/com/sun/star/wizards/report/ReportWizard.java
+0
-11
ReportBuilderImplementation.java
...ar/wizards/reportbuilder/ReportBuilderImplementation.java
+1
-0
DesignTemplate.java
...sun/star/wizards/reportbuilder/layout/DesignTemplate.java
+0
-4
Finalizer.java
wizards/com/sun/star/wizards/table/Finalizer.java
+0
-5
PrimaryKeyHandler.java
wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java
+0
-5
ScenarioSelector.java
wizards/com/sun/star/wizards/table/ScenarioSelector.java
+0
-6
AggregateComponent.java
wizards/com/sun/star/wizards/ui/AggregateComponent.java
+0
-7
ButtonList.java
wizards/com/sun/star/wizards/ui/ButtonList.java
+0
-81
CommandFieldSelection.java
wizards/com/sun/star/wizards/ui/CommandFieldSelection.java
+1
-1
FieldSelection.java
wizards/com/sun/star/wizards/ui/FieldSelection.java
+0
-5
UnoDialog.java
wizards/com/sun/star/wizards/ui/UnoDialog.java
+0
-11
WizardDialog.java
wizards/com/sun/star/wizards/ui/WizardDialog.java
+0
-37
DataAware.java
wizards/com/sun/star/wizards/ui/event/DataAware.java
+0
-170
DataAwareFields.java
wizards/com/sun/star/wizards/ui/event/DataAwareFields.java
+0
-488
Main.java
xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java
+0
-6
No files found.
bean/qa/complex/bean/ScreenComparer.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -61,10 +61,6 @@ class ScreenComparer
m_imgDiff
=
null
;
}
public
Rectangle
getLocation
()
{
return
m_rect
;
}
public
void
grabOne
()
throws
Exception
{
grabOne
(
m_rect
);
...
...
connectivity/JunitTest_complex.mk
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -41,7 +41,6 @@ $(eval $(call gb_JunitTest_add_sourcefiles,connectivity_complex,\
connectivity/qa/complex/connectivity/dbase/DBaseNumericFunctions \
connectivity/qa/complex/connectivity/dbase/DBaseSqlTests \
connectivity/qa/complex/connectivity/dbase/DBaseStringFunctions \
connectivity/qa/complex/connectivity/hsqldb/DatabaseMetaData \
connectivity/qa/complex/connectivity/hsqldb/TestCacheSize \
connectivity/qa/connectivity/tools/AbstractDatabase \
connectivity/qa/connectivity/tools/CRMDatabase \
...
...
connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageAccess.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -18,6 +18,7 @@
package
com
.
sun
.
star
.
sdbcx
.
comp
.
hsqldb
;
@SuppressWarnings
(
"ucd"
)
public
class
StorageAccess
implements
org
.
hsqldb
.
lib
.
Storage
{
String
key
;
String
name
;
...
...
connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -20,6 +20,7 @@ package com.sun.star.sdbcx.comp.hsqldb;
import
org.hsqldb.lib.FileAccess
;
import
org.hsqldb.lib.FileSystemRuntimeException
;
@SuppressWarnings
(
"ucd"
)
public
class
StorageFileAccess
implements
org
.
hsqldb
.
lib
.
FileAccess
{
static
{
NativeLibraries
.
load
();
}
...
...
connectivity/org/hsqldb/lib/FileSystemRuntimeException.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -34,29 +34,8 @@ public class FileSystemRuntimeException extends java.lang.RuntimeException {
public
static
final
int
fileAccessRemoveElementFailed
=
1
;
public
static
final
int
fileAccessRenameElementFailed
=
2
;
private
final
int
errorCode
;
public
FileSystemRuntimeException
(
int
_errorCode
)
{
super
();
errorCode
=
_errorCode
;
}
public
FileSystemRuntimeException
(
String
_message
,
int
_errorCode
)
{
super
(
_message
);
errorCode
=
_errorCode
;
}
public
FileSystemRuntimeException
(
String
_message
,
java
.
lang
.
Throwable
_cause
,
int
_errorCode
)
{
super
(
_message
,
_cause
);
errorCode
=
_errorCode
;
}
public
FileSystemRuntimeException
(
java
.
lang
.
Throwable
_cause
,
int
_errorCode
)
{
super
(
_cause
);
errorCode
=
_errorCode
;
}
public
final
int
getErrorCode
()
{
return
errorCode
;
}
}
connectivity/qa/complex/connectivity/hsqldb/DatabaseMetaData.java
deleted
100644 → 0
Dosyayı görüntüle @
cfcbe2e4
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
package
complex
.
connectivity
.
hsqldb
;
import
complex.connectivity.HsqlDriverTest
;
import
java.sql.*
;
import
java.lang.reflect.Method
;
public
class
DatabaseMetaData
{
private
final
java
.
sql
.
DatabaseMetaData
m_xMD
;
private
final
HsqlDriverTest
m_TestCase
;
/** Creates a new instance of DatabaseMetaData */
public
DatabaseMetaData
(
HsqlDriverTest
_testCase
,
java
.
sql
.
DatabaseMetaData
_xmd
)
{
m_TestCase
=
_testCase
;
m_xMD
=
_xmd
;
}
protected
void
assure
(
String
_sText
,
boolean
btest
){
m_TestCase
.
assurePublic
(
_sText
,
btest
);
}
protected
void
testMethod
(
String
sName
,
Class
<?>[]
params
,
Object
[]
objParams
,
int
nCount
){
try
{
System
.
out
.
println
(
"test method "
+
sName
);
Method
aGet
=
((
Object
)
m_xMD
).
getClass
().
getDeclaredMethod
(
sName
,
params
);
if
(
aGet
!=
null
){
ResultSet
rs
=
(
ResultSet
)
aGet
.
invoke
(
m_xMD
,
objParams
);
ResultSetMetaData
rsMD
=
rs
.
getMetaData
();
assure
(
sName
+
" returns wrong column count"
,
rsMD
.
getColumnCount
()
==
nCount
);
rs
.
close
();
}
else
assure
(
sName
+
" returns wrong column count"
,
false
);
}
catch
(
java
.
lang
.
NoSuchMethodException
ex
)
{
assure
(
"Method "
+
sName
+
" could not be found!"
,
false
);
}
catch
(
java
.
lang
.
IllegalAccessException
ex
)
{
assure
(
"IllegalAccessException!"
,
false
);
}
catch
(
SQLException
ex
)
{
assure
(
"SQLException occurred: "
+
ex
.
getMessage
()
,
false
);
}
catch
(
java
.
lang
.
reflect
.
InvocationTargetException
ex
)
{
assure
(
"IllegalAccessException!"
,
false
);
}
}
public
void
test
()
{
try
{
ResultSet
rs
=
m_xMD
.
getTables
(
null
,
null
,
"TESTCASE"
,
null
);
while
(
rs
.
next
())
{
String
catalog
=
rs
.
getString
(
1
);
if
(
rs
.
wasNull
())
catalog
=
null
;
String
schema
=
rs
.
getString
(
2
);
if
(
rs
.
wasNull
())
schema
=
null
;
String
table
=
rs
.
getString
(
3
);
String
type
=
rs
.
getString
(
4
);
System
.
out
.
println
(
"Catalog: "
+
catalog
+
" Schema: "
+
schema
+
" Table: "
+
table
+
" Type: "
+
type
);
System
.
out
.
println
(
"------------------ Columns ------------------"
);
ResultSet
rsColumns
=
m_xMD
.
getColumns
(
catalog
,
schema
,
table
,
"%"
);
while
(
rsColumns
.
next
())
{
System
.
out
.
println
(
"Column: "
+
rsColumns
.
getString
(
4
)
+
" Type: "
+
rsColumns
.
getInt
(
5
)
+
" TypeName: "
+
rsColumns
.
getString
(
6
));
}
}
rs
.
close
();
}
catch
(
Exception
e
)
{
}
}
}
connectivity/qa/complex/connectivity/hsqldb/TestCacheSize.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -82,7 +82,6 @@ public class TestCacheSize {
// type of the big table {MEMORY | CACHED | TEXT}
private
String
tableType
=
"CACHED"
;
private
int
cacheScale
=
17
;
int
cacheSizeScale
=
8
;
// script format {TEXT, BINARY, COMPRESSED}
private
String
logType
=
"TEXT"
;
...
...
@@ -109,7 +108,6 @@ public class TestCacheSize {
private
XStatement
sStatement
;
private
XConnection
cConnection
;
XDataSource
ds
;
private
XDriver
drv
;
private
com
.
sun
.
star
.
beans
.
PropertyValue
[]
info
;
...
...
connectivity/qa/connectivity/tools/CsvDatabase.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -28,9 +28,4 @@ public class CsvDatabase extends FlatFileDatabase
super
(
i_orb
,
"flat"
);
}
protected
CsvDatabase
(
final
XMultiServiceFactory
i_orb
,
final
String
i_existingDocumentURL
)
throws
Exception
{
super
(
i_orb
,
i_existingDocumentURL
,
"flat"
);
}
}
connectivity/qa/connectivity/tools/DbaseDatabase.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -29,8 +29,4 @@ public class DbaseDatabase extends FlatFileDatabase
}
protected
DbaseDatabase
(
final
XMultiServiceFactory
i_orb
,
final
String
i_existingDocumentURL
)
throws
Exception
{
super
(
i_orb
,
i_existingDocumentURL
,
"dbase"
);
}
}
connectivity/qa/connectivity/tools/QueryDefinition.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -18,11 +18,9 @@
package
connectivity
.
tools
;
import
com.sun.star.beans.PropertyVetoException
;
import
com.sun.star.beans.UnknownPropertyException
;
import
com.sun.star.beans.XPropertySet
;
import
com.sun.star.lang.WrappedTargetException
;
import
com.sun.star.lang.IllegalArgumentException
;
public
class
QueryDefinition
{
...
...
@@ -48,18 +46,4 @@ public class QueryDefinition
return
command
;
}
/** retrieves the command underlying the query definition
*
* This method is a mere wrapped around the <code>getPropertyValue( "Command" )</code> call
*/
public
void
setCommand
(
String
_command
)
throws
WrappedTargetException
{
try
{
m_queryDef
.
setPropertyValue
(
"Command"
,
_command
);
}
catch
(
UnknownPropertyException
e
)
{
}
catch
(
PropertyVetoException
e
)
{
}
catch
(
IllegalArgumentException
e
)
{
}
}
}
connectivity/qa/connectivity/tools/sdb/Connection.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -22,7 +22,6 @@ import com.sun.star.lang.XMultiServiceFactory;
import
com.sun.star.sdb.XSingleSelectQueryComposer
;
import
com.sun.star.sdbc.SQLException
;
import
com.sun.star.sdbc.XConnection
;
import
com.sun.star.sdbc.XDatabaseMetaData
;
import
com.sun.star.sdbc.XPreparedStatement
;
import
com.sun.star.sdbc.XStatement
;
import
com.sun.star.sdbcx.XTablesSupplier
;
...
...
@@ -73,12 +72,6 @@ public class Connection
return
m_connection
.
prepareStatement
(
_sql
);
}
public
XDatabaseMetaData
getMetaData
()
throws
SQLException
{
return
m_connection
.
getMetaData
();
}
public
void
close
()
throws
SQLException
{
...
...
dbaccess/qa/complex/dbaccess/DatabaseApplication.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -52,21 +52,11 @@ public class DatabaseApplication
documentUI
.
connect
();
}
public
XOfficeDatabaseDocument
getDatabaseDocument
()
{
return
databaseDocument
;
}
public
XDatabaseDocumentUI
getDocumentUI
()
{
return
documentUI
;
}
public
DatabaseAccess
getDb
()
{
return
db
;
}
public
void
store
()
{
// store the doc in a new location
...
...
forms/qa/integration/forms/FormComponent.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -24,15 +24,12 @@ import com.sun.star.container.XIndexAccess;
import
com.sun.star.container.XChild
;
import
com.sun.star.container.XNamed
;
import
com.sun.star.drawing.XDrawPage
;
import
com.sun.star.lang.XServiceInfo
;
public
class
FormComponent
{
private
final
Object
m_component
;
private
final
XNameAccess
m_nameAccess
;
private
final
XIndexAccess
m_indexAccess
;
private
final
XChild
m_child
;
private
final
XNamed
m_named
;
/* ------------------------------------------------------------------ */
private
FormComponent
()
...
...
@@ -40,8 +37,6 @@ public class FormComponent
m_component
=
null
;
m_nameAccess
=
null
;
m_indexAccess
=
null
;
m_child
=
null
;
m_named
=
null
;
}
/* ------------------------------------------------------------------ */
...
...
@@ -54,9 +49,9 @@ public class FormComponent
m_nameAccess
=
(
XNameAccess
)
m_component
;
m_indexAccess
=
UnoRuntime
.
queryInterface
(
XIndexAccess
.
class
,
m_component
);
m_child
=
UnoRuntime
.
queryInterface
(
UnoRuntime
.
queryInterface
(
XChild
.
class
,
m_component
);
m_named
=
UnoRuntime
.
queryInterface
(
UnoRuntime
.
queryInterface
(
XNamed
.
class
,
m_component
);
}
...
...
@@ -68,9 +63,9 @@ public class FormComponent
XNameAccess
.
class
,
m_component
);
m_indexAccess
=
UnoRuntime
.
queryInterface
(
XIndexAccess
.
class
,
m_component
);
m_child
=
UnoRuntime
.
queryInterface
(
UnoRuntime
.
queryInterface
(
XChild
.
class
,
m_component
);
m_named
=
UnoRuntime
.
queryInterface
(
UnoRuntime
.
queryInterface
(
XNamed
.
class
,
m_component
);
}
...
...
@@ -100,20 +95,6 @@ public class FormComponent
return
new
FormComponent
();
}
/* ------------------------------------------------------------------ */
public
String
[]
getElementNames
()
{
return
(
m_nameAccess
!=
null
)
?
m_nameAccess
.
getElementNames
()
:
new
String
[]{};
}
/* ------------------------------------------------------------------ */
public
int
getCount
()
{
return
(
m_indexAccess
!=
null
)
?
m_indexAccess
.
getCount
()
:
0
;
}
/* ------------------------------------------------------------------ */
public
FormComponent
getByIndex
(
int
index
)
{
...
...
@@ -130,35 +111,4 @@ public class FormComponent
return
new
FormComponent
();
}
/* ------------------------------------------------------------------ */
public
com
.
sun
.
star
.
uno
.
Type
getElementType
(
)
{
if
(
m_indexAccess
!=
null
)
return
m_indexAccess
.
getElementType
();
else
if
(
m_nameAccess
!=
null
)
return
m_nameAccess
.
getElementType
();
return
new
com
.
sun
.
star
.
uno
.
Type
(
String
.
class
);
}
/* ------------------------------------------------------------------ */
public
FormComponent
getParent
()
{
return
(
m_child
!=
null
)
?
new
FormComponent
(
m_child
.
getParent
()
)
:
new
FormComponent
();
}
/* ------------------------------------------------------------------ */
public
String
getName
()
{
return
(
m_named
!=
null
)
?
m_named
.
getName
()
:
""
;
}
/* ------------------------------------------------------------------ */
public
String
getImplementationName
()
{
XServiceInfo
si
=
UnoRuntime
.
queryInterface
(
XServiceInfo
.
class
,
m_component
);
return
(
si
!=
null
)
?
si
.
getImplementationName
()
:
""
;
}
}
forms/qa/integration/forms/SpreadsheetDocument.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -22,12 +22,9 @@ import com.sun.star.uno.*;
import
com.sun.star.lang.XMultiServiceFactory
;
import
com.sun.star.lang.XComponent
;
import
com.sun.star.table.XCellRange
;
import
com.sun.star.table.CellAddress
;
import
com.sun.star.table.CellRangeAddress
;
import
com.sun.star.container.XIndexAccess
;
import
com.sun.star.sheet.XSpreadsheetDocument
;
import
com.sun.star.sheet.XSpreadsheets
;
import
com.sun.star.beans.NamedValue
;
public
class
SpreadsheetDocument
extends
DocumentHelper
{
...
...
@@ -68,71 +65,4 @@ public class SpreadsheetDocument extends DocumentHelper
);
}
/* ------------------------------------------------------------------ */
/** creates a value binding for a given cell
*/
public
com
.
sun
.
star
.
form
.
binding
.
XValueBinding
createCellBinding
(
short
sheet
,
short
column
,
short
row
)
{
return
createCellBinding
(
sheet
,
column
,
row
,
false
);
}
/* ------------------------------------------------------------------ */
/** creates a value binding which can be used to exchange a list box selection <em>index</em> with a cell
*/
public
com
.
sun
.
star
.
form
.
binding
.
XValueBinding
createListIndexBinding
(
short
sheet
,
short
column
,
short
row
)
{
return
createCellBinding
(
sheet
,
column
,
row
,
true
);
}
/* ------------------------------------------------------------------ */
/** creates a value binding for a given cell, with or without support for integer value exchange
*/
private
com
.
sun
.
star
.
form
.
binding
.
XValueBinding
createCellBinding
(
short
sheet
,
short
column
,
short
row
,
boolean
supportIntegerValues
)
{
com
.
sun
.
star
.
form
.
binding
.
XValueBinding
cellBinding
=
null
;
try
{
CellAddress
address
=
new
CellAddress
(
sheet
,
column
,
row
);
Object
[]
initParam
=
new
Object
[]
{
new
NamedValue
(
"BoundCell"
,
address
)
};
cellBinding
=
UnoRuntime
.
queryInterface
(
com
.
sun
.
star
.
form
.
binding
.
XValueBinding
.
class
,
createInstanceWithArguments
(
supportIntegerValues
?
"com.sun.star.table.ListPositionCellBinding"
:
"com.sun.star.table.CellValueBinding"
,
initParam
)
);
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
{
System
.
err
.
println
(
e
);
e
.
printStackTrace
(
System
.
err
);
}
return
cellBinding
;
}
/* ------------------------------------------------------------------ */
/** creates a source of list entries associated with a (one-column) cell range
*/
public
com
.
sun
.
star
.
form
.
binding
.
XListEntrySource
createListEntrySource
(
short
sheet
,
short
column
,
short
topRow
,
short
bottomRow
)
{
com
.
sun
.
star
.
form
.
binding
.
XListEntrySource
entrySource
=
null
;
try
{
CellRangeAddress
rangeAddress
=
new
CellRangeAddress
(
sheet
,
column
,
topRow
,
column
,
bottomRow
);
Object
[]
initParam
=
new
Object
[]
{
new
NamedValue
(
"CellRange"
,
rangeAddress
)
};
entrySource
=
UnoRuntime
.
queryInterface
(
com
.
sun
.
star
.
form
.
binding
.
XListEntrySource
.
class
,
createInstanceWithArguments
(
"com.sun.star.table.CellRangeListSource"
,
initParam
)
);
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
{
System
.
err
.
println
(
e
);
e
.
printStackTrace
(
System
.
err
);
}
return
entrySource
;
}
}
forms/qa/org/openoffice/xforms/XMLDocument.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -41,13 +41,6 @@ public class XMLDocument extends integration.forms.DocumentHelper
impl_initialize
(
getDocument
()
);
}
/* ------------------------------------------------------------------ */
public
XMLDocument
(
XMultiServiceFactory
_orb
,
XComponent
_document
)
{
super
(
_orb
,
_document
);
impl_initialize
(
_document
);
}
/* ------------------------------------------------------------------ */
private
void
impl_initialize
(
XComponent
_document
)
{
...
...
framework/JunitTest_framework_complex.mk
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -36,8 +36,6 @@ $(eval $(call gb_JunitTest_add_sourcefiles,framework_complex,\
framework/qa/complex/disposing/GetServiceWhileDisposingOffice \
framework/qa/complex/path_substitution/PathSubstitutionTest \
framework/qa/complex/loadAllDocuments/InteractionHandler \
framework/qa/complex/loadAllDocuments/StreamSimulator \
framework/qa/complex/loadAllDocuments/TestDocument \
framework/qa/complex/loadAllDocuments/CheckXComponentLoader \
framework/qa/complex/loadAllDocuments/StatusIndicator \
framework/qa/complex/broken_document/TestDocument \
...
...
@@ -46,7 +44,6 @@ $(eval $(call gb_JunitTest_add_sourcefiles,framework_complex,\
framework/qa/complex/framework/autosave/AutoSave \
framework/qa/complex/framework/autosave/Protocol \
framework/qa/complex/framework/autosave/ConfigHelper \
framework/qa/complex/framework/recovery/TimeoutThread \
framework/qa/complex/framework/recovery/KlickButtonThread \
framework/qa/complex/framework/recovery/RecoveryTools \
framework/qa/complex/framework/recovery/RecoveryTest \
...
...
framework/qa/complex/dispatches/Interceptor.java
Dosyayı görüntüle @
43cc8ad3
...
...
@@ -240,18 +240,6 @@ public class Interceptor implements XDispatch,
}
/** set a new list of URL's, which should be used on registration time
(that's why it's necessary to call this impl-method before the interceptor
is used at the OOo API!) to optimize the interception chain.
*/
public
synchronized
void
setURLs4InterceptionInfo
(
String
[]
lURLs
)
{
m_lURLs4InterceptionInfo
=
lURLs
;
}
/** set a new list of URL's, which should be blocked by this interceptor.
(that's why it's necessary to call this impl-method before the interceptor
is used at the OOo API!)
...
...
framework/qa/complex/framework/recovery/TimeoutThread.java
deleted
100644 → 0
Dosyayı görüntüle @
cfcbe2e4
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
package
complex
.
framework
.
recovery
;
public
class
TimeoutThread
extends
Thread
{
public
int
timeOut
=
0
;
/** Creates a new instance of TimeoutThread */
public
TimeoutThread
(
int
timeOut
)
{
this
.
timeOut
=
timeOut
;
}
@Override
public
void
run
(){
util
.
utils
.
shortWait
(
timeOut
);
}
}
framework/qa/complex/loadAllDocuments/StreamSimulator.java
deleted
100644 → 0
Dosyayı görüntüle @
cfcbe2e4
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
package
complex
.
loadAllDocuments
;
import
com.sun.star.uno.UnoRuntime
;
import
com.sun.star.ucb.XSimpleFileAccess
;
import
com.sun.star.lang.XMultiServiceFactory
;
/**
* Simulates an input and output stream and
* implements the interfaces XInputStream, XOutputStream.
* So it can be used for testing loading/saving of documents
* using streams instead of URLs.
*/
public
class
StreamSimulator
implements
com
.
sun
.
star
.
io
.
XInputStream
,
com
.
sun
.
star
.
io
.
XOutputStream
,
com
.
sun
.
star
.
io
.
XSeekable
{
/**
* the internal input stream for reading
*/
private
com
.
sun
.
star
.
io
.
XInputStream
m_xInStream
;
/**
* the internal input stream for writing
*/
private
com
.
sun
.
star
.
io
.
XOutputStream
m_xOutStream
;
/**
* points at runtime to m_xInStream or m_xOutStream and make it seekable
*/
private
com
.
sun
.
star
.
io
.
XSeekable
m_xSeek
;
/**
* indicates, that the input stream interface was used
*/
public
boolean
m_bInWasUsed
;
/**
* indicates, that the output stream interface was used
*/
public
boolean
m_bOutWasUsed
;
/**
* construct a new instance of this class
* It set the name of the correspojnding file on disk, which
* should be source or target for the following operations on
* this object. And it regulate if it should function as
* input or output stream.
*
* @param sFileName
* name of the file on disk
* Will be used as source (if param bInput==true)
* or as target (if param bInput==false).
*
* @param bInput
* it specify, which interface should work at this object.
* <TRUE/> => we simulate an input stream
* <FALSE/> => we simulate an output stream
*
* @throw com.sun.star.io.NotConnectedException
* in case the internal streams to the file on disk couldn't
* be established.
* They are necessary. Otherwhise this simulator can't
* really work.
*/
public
StreamSimulator
(
XMultiServiceFactory
xMSF
,
String
sFileName
,
boolean
bInput
)
throws
com
.
sun
.
star
.
io
.
NotConnectedException
{
m_bInWasUsed
=
false
;
m_bOutWasUsed
=
false
;