Commit Graph

10 Commits

Author SHA1 Message Date
da677dfd59 java: reduce scope, make fields private
found by UCDetector

Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
2014-08-13 08:49:22 +02:00
b58c053fed java: remove unnecessary semi-colons
Change-Id: Ibeeefc6e6ee8f7bed97a02f569f239ff035d38c4
2014-08-08 09:48:18 +02:00
dc795cbd2d Make Linguistic SDK example use __getComponentFactory
...instead of legacy __getServiceFactory.  This fixes a subtle bug:  When these
Java extensions are live-deployed, they are offloaded to an additional uno
process.  Their __getServiceFactory methods were called with the uno process
(component context's) service manager, which they stored away for later use in
OneInstanceFactory.createInstance.  So even if later on an instance was created
with the main LO process's component context, the uno process's component
context would be used to instantiate the (C++)
com.sun.star.linguistic2.LinguProperties service (in the uno process!), and that
happens to internally use comphelper::getProcessServiceFactory, which would be
null in the uno process,

comphelper::getProcessServiceFactory
comphelper::getProcessComponentContext
(anonymous namespace)::getConfigurationProvider
utl::ConfigManager::acquireTree
utl::ConfigManager::addConfigItem
utl::ConfigItem::ConfigItem
SvtLinguConfigItem::SvtLinguConfigItem
SvtLinguConfig::GetConfigItem
SvtLinguConfig::GetConfigItem
SvtLinguConfig::GetProperty
LinguProps::getPropertyValue
gcc3::callVirtualMethod
...

Change-Id: Ib6f5a5dd6d0adbbe14d60aaff3a8b6ba24235d11
2014-06-20 18:26:11 +02:00
99e3bd454b Remove visual noise from odk
Change-Id: I5638e2d37827c2d7322b72bf6ce176ac843639f1
Reviewed-on: https://gerrit.libreoffice.org/8285
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 10:02:49 -06:00
8d87758d65 Java cleanup, remove the rest of the unnecessary casts
Change-Id: Ia61d250f6b3711abc29569c5ece38a6f87e38daa
Reviewed-on: https://gerrit.libreoffice.org/3432
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-19 07:52:08 +00:00
6bf09ecf1d Java cleanup, remove unnecessary imports
I guess I missed some last time :-)

Change-Id: I164a8baa07850f783b8cdf2e7f3eeaac53a3d29b
2012-09-10 23:43:38 +02:00
1296914c84 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
a3a1033813 INTEGRATION: CWS sdksample (1.3.124); FILE MERGED
2004/10/20 13:42:03 jsc 1.3.124.1: #i35871# adapt for Java 5.0
2005-01-31 15:47:36 +00:00
324e6b8272 INTEGRATION: CWS sdk04 (1.2.6); FILE MERGED
2003/06/24 13:38:40 jsc 1.2.6.1: #110313# insert source license header
2003-06-30 14:40:13 +00:00
1f1f9bb078 INTEGRATION: CWS sdk02 (1.1.2); FILE ADDED
2003/05/09 11:44:00 jsc 1.1.2.1: #109045# insert new and remove example zip file
2003-06-10 09:36:46 +00:00