summaryrefslogtreecommitdiffstats
path: root/jvmfwk
Commit message (Collapse)AuthorAgeFilesLines
* cppcheck:redundantAssignmentNoel Grandin2015-06-152-10/+7
| | | | Change-Id: I1167d0ce6b6f6e48309d0551c1d2a283d79546a7
* java:regulatize the order of 'final' and public/privateNoel Grandin2015-06-111-1/+1
| | | | | | | | | | Make the order be 'public static' or 'private static' Just makes the code nicer to read. Change-Id: I182424bda45a2d68642e5d04c6091d268ace1fe2 Reviewed-on: https://gerrit.libreoffice.org/16202 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann2015-06-082-5/+5
| | | | Change-Id: I62a6714749eba8226ba3a5416ee81f2d76cf0afc
* loplugin:cstylecast: deal with those that are (technically) const_castStephan Bergmann2015-06-021-1/+1
| | | | Change-Id: Ie8e3bde0eeeec6cd35a7f73f9a29c28cdd03ad02
* loplugin:loopvartoosmallNoel Grandin2015-06-011-1/+1
| | | | Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
* Support Azul Zulu JRE on Linux and Mac OS X, tooStephan Bergmann2015-05-293-2/+9
| | | | Change-Id: I317506319b91daf006a0ba79874ff265ba6ed4da
* Support Azul Zulu JRE (at least on Windows)Stephan Bergmann2015-05-273-1/+6
| | | | | | | | (<http://www.azulsystems.com/products/zulu/downloads> also offers it for Linux and Mac OS X, so it could be added to more javavendors_*.xml if need be; I only checked it actually works with a Windows 64-bit LO build) Change-Id: If549a0d5bf1459eba2f6ba2bd545cfd55a20cea6
* fprintf -> SAL_INFOStephan Bergmann2015-05-274-51/+29
| | | | Change-Id: I4808e89cf5b90c99df3d4c4474c578a8c8f611a6
* java dir for powepc64 and powepc64le can differDavid Tardon2015-05-121-1/+5
| | | | | | | | | E.g., RHEL >= 7.1 uses ppc64le for reasons listed in https://bugs.openjdk.java.net/browse/JDK-8073139 . This is a follow-up to commit 7a66dbe982623be620ad6ac426fe689a434e5f51. Change-Id: I685f76d51e9775788a7fb225c6a5e2309a45ceb7
* loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann2015-05-111-1/+1
| | | | Change-Id: I21cac03d5100822ef99d4b7fb7c192c0d2adf1b2
* std::ptr_fun became deprecated since C++11Takeshi Abe2015-05-081-2/+2
| | | | | | | Change-Id: If93609d032c9864e0251230bf9ed76e6b6741a62 Reviewed-on: https://gerrit.libreoffice.org/15672 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* More loplugin:simplifyboolStephan Bergmann2015-04-278-18/+17
| | | | Change-Id: I51e7a11149676a8b5396d9eb993a509859cdf725
* Improved loplugin:literaltoboolconversion looking into cond. exprs.Stephan Bergmann2015-04-231-1/+1
| | | | | | ...automatic rewriter fixes Change-Id: I6b04ca80f08f8a71ff94e309fd52f44d736751ee
* Various #include <sal/log.hxx> fixupsStephan Bergmann2015-04-221-0/+1
| | | | | | | | | | | | | | rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
* Clean up C-style casts from pointers to voidStephan Bergmann2015-03-283-10/+10
| | | | Change-Id: I302d313f2d14d908672d4534aad1818e820eaae4
* loplugin:staticfunctionNoel Grandin2015-03-273-3/+3
| | | | Change-Id: I10c30ef28e7321882a720d1e7869a75a89febfc5
* const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann2015-03-261-2/+2
| | | | Change-Id: I81dc70639a866368b9a6c69afffdfd42464e9138
* V805: Decreased performanceCaolán McNamara2015-03-021-1/+1
| | | | Change-Id: I822c5ebc321ebda87c238a1781a31793c1623e34
* loplugin:deletedspecialStephan Bergmann2015-02-072-9/+9
| | | | Change-Id: I6827530316561e600b760a2620f859b28c6c91e6
* Some more loplugin:cstylecast: jvmfwkStephan Bergmann2015-01-207-123/+123
| | | | Change-Id: Iaa1be4b338b75c340555eb4bf0760cadca16713f
* avoid copying of vectorMichael Weghorn2015-01-081-17/+7
| | | | | | | Change-Id: I06ce27f4fa52637bbeaa6d84fdecdf81364e15a7 Reviewed-on: https://gerrit.libreoffice.org/13489 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* jvmfwk: fix Android buildMiklos Vajna2015-01-071-1/+1
| | | | Change-Id: Ib183158e51f7bebbb6add92e460a33fa132c1c9d
* Some cppcheck cleanings: Prefer prefix ++/-- operators for non-primitive typesJulien Nabet2014-12-181-3/+3
| | | | Change-Id: I899164412ad90653b4228423283f9fbd4cb5fccc
* jvmfwk: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-181-2/+2
| | | | Change-Id: I5a16fdd9217f0523212842650d74f504f17848fd
* jvmfwk: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-163-12/+6
| | | | Change-Id: I3e0b70c61c4e92f2cbd27ce7c45e67ae04dfe14c
* Related fdo#83753: Fix JVM_ONE_PATH_CHECK feature againStephan Bergmann2014-12-161-2/+4
| | | | Change-Id: I1dc3b0db6295c43a9d29576b81870b4a293a61aa
* Remove obsolete commentStephan Bergmann2014-12-151-5/+0
| | | | Change-Id: I66dcf6284bd1b7afb1c60c838bbbb2052e06072b
* Check each potential JRE location only onceStephan Bergmann2014-12-156-88/+124
| | | | | | | | | i.e., after recent "fdo#83753: consider JAVA_HOME and PATH when selecting JRE" fix, if jfw_findAndSelectJRE found no suitable JRE in jfw_plugin_getJavaInfoFromJavaHome or jfw_plugin_getJavaInfosFromPath, do not re-check those locations in jfw_plugin_getAllJavaInfos. Change-Id: If4e085b4fceff5b2494c7b7b84ac51691dbc78cc
* Rename getJREInfoByPath overload to getAndAddJREInfoByPathStephan Bergmann2014-12-152-41/+27
| | | | Change-Id: Ib6eac731a4b8193a8d9b9132da78e7961aec22ab
* getJREInfoFromBinPath return value is unusedStephan Bergmann2014-12-152-9/+4
| | | | Change-Id: I360d7cb7c03e78739883db4b989ba5f31bc8e24b
* fdo#83753: consider JAVA_HOME and PATH when selecting JREMichael Weghorn2014-12-155-104/+384
| | | | | | | | | | | | | | | | | | | adapted algorithm that selects the Java runtime to be used so that Java installations associated with the JAVA_HOME and PATH environment variables are preferred over others Java installations are now analysed in the following order: * installation that the JAVA_HOME environment variable refers to (if it is set) * Java installations in PATH * other Java installation (algorithm that was used before) Signed-off-by: Stephan Bergmann <sbergman@redhat.com> Conflicts: jvmfwk/source/framework.cxx Change-Id: I3a3ade25322def0c0432b369848f13a6b82034a1
* Remove unused cModule leftoversStephan Bergmann2014-12-151-8/+4
| | | | Change-Id: Id08194460e9a42896591047e36b3a95e5fbc47be
* java: unused importsNoel Grandin2014-12-101-1/+0
| | | | | | | Change-Id: I05824a6f19a5f3048a52101b96f6bf3d3099df08 Reviewed-on: https://gerrit.libreoffice.org/13403 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* callcatcher: update unused codeCaolán McNamara2014-12-082-16/+0
| | | | Change-Id: I3cd65d112339fa9c67ed462fe39acbbef91d4d8d
* java: remove some unused local variablesNoel Grandin2014-12-051-1/+1
| | | | Change-Id: Ia01528460e2f4b610d123e29cad66520abc6a965
* callcatcher: update unused codeCaolán McNamara2014-12-048-150/+0
| | | | Change-Id: Ia25b857738bb7b6c3baf18c68ef0d1bc0b3e142e
* Fold URE: WindowsStephan Bergmann2014-12-031-1/+1
| | | | | | | | ...assuming the delayLoadHook in cli_ure/source/native/native_bootstrap.cxx is no longer necessary and loading of cppuhelper from the program dir cannot fail regardless in whatever scenario the cli_cppuhelper library itself is loaded. Change-Id: I13f32b327bca4cce9780864f5e57cdad3860afe5
* Fold URE: Linux ure/share/misc/* -> program/Stephan Bergmann2014-12-012-7/+7
| | | | | | ...and remove now unused ure-link symlink Change-Id: Ic958432c1dad4fae213982d0af072187f151620b
* Fold URE: Linux ure/lib/* -> program/Stephan Bergmann2014-11-284-1/+55
| | | | | | | The ../../../program/ links in the URE jar Class-Paths are a temporary kludge (and juh.jar had lacked adaption for Mac OS X). Change-Id: I2542d8a582866485dd61c05df3fc6b4b39a8403d
* fix higher debug level buildCaolán McNamara2014-11-261-0/+1
| | | | Change-Id: Ie61be2bd009b71bbbb7261865d026faf3af706ce
* changed type of parameters from rtl_uString to OUStringMichael Weghorn2014-11-193-75/+58
| | | | | | | | | changed type of several parameters of the functions jfw_plugin_getAllJavaInfos and jfw_plugin_getJavaInfoByPath from rtl_uString to OUString Change-Id: I80feb311542e6ccded9f9924f800c75a7e14a1e7 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Pass by refStephan Bergmann2014-11-181-1/+1
| | | | Change-Id: I88def7e41a31948d1d7205cd5522b63de6be5f80
* sunjavaplugin.cxx: extracted function for Java version checkMichael Weghorn2014-11-181-133/+110
| | | | | | | | | extracted the (duplicate) code which is responsible to check the Java version requirements in the two functions "jfw_plugin_getAllJavaInfos" and "jfw_plugin_getJavaInfoByPath" Change-Id: I8acb198c4b4aaee77dc84bc42ff1fc2e0da2aba7 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* remove duplicate code lineMichael Weghorn2014-11-181-1/+0
| | | | | | | Change-Id: Ia1e9d2b31698db23029e4dd5f0f7659acff5d30f Reviewed-on: https://gerrit.libreoffice.org/12951 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-171-0/+2
| | | | | | | | | Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
* coverity#1247641 Uncaught exceptionCaolán McNamara2014-11-141-51/+49
| | | | Change-Id: I35e1eed91a23d2b993398fb39e47e21ca9c0a055
* fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava2014-11-141-2/+2
| | | | | | | Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Fix common typos. No automatic tools. Handmade…Andrea Gelmini2014-11-125-8/+8
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Revert "use the new OUString::fromUtf8 method"Stephan Bergmann2014-11-062-4/+10
| | | | | | | | This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
* use the new OUString::fromUtf8 methodNoel Grandin2014-11-062-10/+4
| | | | Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77