Commit Graph

24 Commits

Author SHA1 Message Date
Noel Grandin
4bf4e3d407 java: no need to instantiate the AccessibilityTools object
since all of it's methods and fields are static.

Change-Id: Ia2b652969489c5a21e01a35cda65c6e84346aac0
2015-01-12 08:36:17 +02:00
Noel Grandin
0477e6c39b java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
2014-08-12 09:41:28 +02:00
Noel Grandin
dfd4b94a52 java: remove some unused import statements
Change-Id: Id6342be66221c81b05aee9af519c800e51a286b3
2014-08-04 13:38:31 +02:00
Noel Grandin
9658b27b69 java: remove some unused variables
Change-Id: Ia9405d3e34e710059ff68bf850de91c36f4e1e1b
2014-08-04 13:38:30 +02:00
Noel Grandin
f493555623 java: remove some casting in lib.TestParameters#getMSF
where the return value is always cast to XMultiServiceFactory,
so just do the cast in the method and avoid noise at the call sites.

Change-Id: I3a2e06ac6edb3c6021eda6442032db57aaa22e13
2014-08-04 13:38:30 +02:00
Stephan Bergmann
89fbed7e29 Revert "Java cleanup, AccessibilityTools.."
This reverts commit d702dd4396, which reproducibly
broke JunitTest_sc_unoapi:

java.lang.NullPointerException
 at util.AccessibilityTools.getAccessibleObjectForRole_(AccessibilityTools.java:177)
 at util.AccessibilityTools.getAccessibleObjectForRole(AccessibilityTools.java:95)
 at mod._sc.AccessibleEditableTextPara_PreviewCell.createTestEnvironment(AccessibleEditableTextPara_PreviewCell.java:149)
 at lib.TestCase.getTestEnvironment(TestCase.java:121)
 at base.java_fat.getTestEnvironment(java_fat.java:319)
 at base.java_fat.executeTest(java_fat.java:167)
 at org.openoffice.Runner.run(Runner.java:234)
 at org.openoffice.test.UnoApiTest.test(UnoApiTest.java:38)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
 at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
 at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
 at org.junit.runners.Suite.runChild(Suite.java:128)
 at org.junit.runners.Suite.runChild(Suite.java:24)
 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
 at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
 at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
 at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
 at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
 at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
 at org.junit.runner.JUnitCore.main(JUnitCore.java:45)

Change-Id: I3601fe24db21bd63f7dc6cdf0a1eb69f447d962a
2013-05-21 16:56:30 +02:00
Noel Grandin
d702dd4396 Java cleanup, AccessibilityTools..
was using a global variable. Yuck.
Fix it to use a local variable. Not perfect, but better.

Change-Id: I27bbbb2ddc89402da53be7f19d2cd963b03b1a83
2013-05-20 09:21:20 +02:00
Noel Grandin
6f17a2f66f Java cleanup, access static methods using correct syntax
Change-Id: I8443aef43d82de33ac7cb47d40cc5b544f7c9c87
2013-04-26 08:36:04 +02:00
Noel Grandin
2caf5d1937 Java cleanup - remove unnecessary semi-colons
Change-Id: I20a79d3d8f71dc48fc2662563f9c890dd3d94aac
2012-08-28 16:15:42 +02:00
Noel Grandin
b65017a2a7 Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
2012-06-29 22:03:01 +02:00
Michael Meeks
b6db3e3acc re-base on ALv2 code.
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21 13:11:06 +01:00
Jens-Heiner Rechtien
7d8d20ca7e changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Rüdiger Timm
0806abe73d INTEGRATION: CWS changefileheader (1.11.58); FILE MERGED
2008/03/31 16:51:18 rt 1.11.58.1: #i87441# Change license header to LPGL v3.
2008-04-10 18:46:52 +00:00
Kurt Zenker
1b90f12faa INTEGRATION: CWS qadev24 (1.9.12); FILE MERGED
2005/09/19 17:20:33 cn 1.9.12.2: RESYNC: (1.9-1.10); FILE MERGED
2005/08/19 07:39:51 cn 1.9.12.1: #i52213# declare instance variables as 'privte static'
2005-11-02 17:16:42 +00:00
Rüdiger Timm
95af3748e0 INTEGRATION: CWS ooo19126 (1.9.16); FILE MERGED
2005/09/05 15:47:46 rt 1.9.16.1: #i54170# Change license header: remove SISSL
2005-09-09 03:20:18 +00:00
Kurt Zenker
9e9060b1e3 INTEGRATION: CWS removedrafts (1.8.22); FILE MERGED
2005/02/18 12:51:06 sw 1.8.22.1: #i43060#
2005-03-01 19:38:22 +00:00
Pascal Junck
0c01b40634 INTEGRATION: CWS qadev19 (1.7.70); FILE MERGED
2004/10/21 12:09:22 cn 1.7.70.1: #i35923# at.printAccessibleTree(log, xRoot,tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)) added
2004-11-02 11:14:04 +00:00
Oliver Bolte
bd6083f596 INTEGRATION: CWS qadev15 (1.6.18); FILE MERGED
2003/12/18 17:20:04 sw 1.6.18.2: #114449#
2003/12/18 14:44:28 sw 1.6.18.1: #114449#
2004-01-05 19:34:58 +00:00
Rüdiger Timm
9df637c975 INTEGRATION: CWS qadev11 (1.5.14); FILE MERGED
2003/09/03 15:29:45 sw 1.5.14.1: #112049#
2003-09-08 12:00:01 +00:00
Vladimir Glazounov
95fc23239d INTEGRATION: CWS qadev6 (1.4.2); FILE MERGED
2003/05/21 10:58:58 sg 1.4.2.1: #109819# prepare devide of runner
2003-05-27 12:58:18 +00:00
Vladimir Glazounov
8475506aad #100000# no drafts anymore 2003-04-28 10:27:42 +00:00
Stephan Wunderlich
adf024b3b6 CHG: changed Role 2003-02-28 13:41:00 +00:00
Stephan Wunderlich
5a2821e00b CHG: changed Role 2003-02-14 11:31:28 +00:00
Stephan Wunderlich
26ebdfc472 NEW: initial version 2003-01-27 17:20:08 +00:00