summaryrefslogtreecommitdiff
path: root/jurt
AgeCommit message (Collapse)Author
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-12java: last statement in finalize() method should be call to super.finalize()Noel Grandin
Change-Id: I1785c6cef1fe7c1990207a76c263cff388cbb7e1 Reviewed-on: https://gerrit.libreoffice.org/12375 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-12java: reduce excessive code indentation levelsNoel Grandin
by using early return in some methods Change-Id: I3611c8c89b3a94ef7e1772d178acf065fd7fcdc7 Reviewed-on: https://gerrit.libreoffice.org/12374 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-30Fixed typos. No automatic tools (sed, and so on).Andrea Gelmini
Change-Id: Ia43976d84eede6f699381bc4f3daf89b95e4cb4f Reviewed-on: https://gerrit.libreoffice.org/12150 Reviewed-by: Bryan Quigley <gquigs@gmail.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-10-27Fix indentationStephan Bergmann
Change-Id: Ic058759782f95e330d8c581911aeb163340a7c4b
2014-10-16java: when rethrowing, store the original exceptionNoel Grandin
Change-Id: I34ce000c48d2d79bfec854c8dd55d12f2bee29c7
2014-10-16java: always use braces for while loopsNoel Grandin
Change-Id: Iff896b0cace8b8305528b3b0140004ea856169ce
2014-10-16java: reduce the depth of some deeply nested if blocksNoel Grandin
Change-Id: I3c0c7f08d4d8ea594e72fc0d9b93d085d4ab4bf5
2014-10-14jurt: print an array with java.util.Arrays.toStringRobert Antoni Buj i Gelonch
Change-Id: I76431b67f9f6fdde2906d6d8082457ef0847108e Reviewed-on: https://gerrit.libreoffice.org/11964 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-13java: import from the same packageRobert Antoni Buj i Gelonch
Change-Id: I1bb0999783f365e20b682c3707e73c65724265c9 Reviewed-on: https://gerrit.libreoffice.org/11955 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-10jurt: use new exception constructorsRobert Antoni Buj i Gelonch
Change-Id: I58e7ebdd5c48094142f93f47271bcc0cc8b97981 Reviewed-on: https://gerrit.libreoffice.org/11892 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-08jurt: remove unused importRobert Antoni Buj i Gelonch
Change-Id: I597dac3cae7eafef75982789ab1b0d3d8d6999d2 Reviewed-on: https://gerrit.libreoffice.org/11863 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-10-07java: no need to check for null before calling instanceofNoel Grandin
the instanceof check returns false when passed a null value Change-Id: I7742d0d9cf25ef23d9adee7328f701c7efeea8b5
2014-10-01sal/osl/unx/thread.c -> .cxxStephan Bergmann
Change-Id: I6cb46a51dda3fda51a3b6413656da15fc5bdb04d
2014-09-29Precise, platform-specific Class-Path path for NativeLibraryLoader useStephan Bergmann
Change-Id: I01a521f5d5104bf2e6046330e2d667155c27a604
2014-09-29fix Java1.5 incompatibilityNoel Grandin
the java.io.IOException(Throwable) constructor was only introduced in 1.6 Change-Id: Icd40e91cce7a2e89e4a70ad55f31baaa86eebfe2
2014-09-28jurt: remove constructor in AnyConverter_Test (JUnit)Robert Antoni Buj i Gelonch
Change-Id: I4393b59d7d3a285160d6090847d9a16676f41f4d Reviewed-on: https://gerrit.libreoffice.org/11677 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: David Ostrovsky <david@ostrovsky.org>
2014-09-25java: when rethrowing exceptions, store the original causeNoel Grandin
so that we get a nice complete stacktrace when it hits the final handler Change-Id: Iec4fcc15a2a25c55f591b5e069dce3d010197a90
2014-09-15jurt: encode(String) in URLEncoder has been deprecatedrbuj
Change-Id: I914985aa73653e0fb08200ddd06ad5b914087e3a Reviewed-on: https://gerrit.libreoffice.org/11446 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-09Make the "Mac-like" or "canonical" app bundle structure always used on OS XTor Lillqvist
In other words, only executable files go in the MacOS folder. Dynamic libraries and bundled frameworks (i.e., LibreOfficePython), and nothing else, go in the Frameworks folder, and all other files go in the Resources folder. Especially, note that Java class files and rc (.ini) files also go in Resources. Such an app bundle structure is what Apple strongly suggests one should use, and it has been hinted that future versions of code signing and/or Gatekeeper will require such a structure. There is still some ugliness thanks to traces of the historical separation of URE from "the office". Like there are two separate "unorc" files, one for URE, one for the LibreOffice application. IMHO, this should be cleaned up, but is probably controversial. (Eek! I now see there are actually *three* unorc files in the app bundle. Not intentional. Need to fix that later.) Change-Id: Idcf235038deb5b8e1d061734993e9f31869b7606
2014-09-08set names on some Java threadsMichael Stahl
Change-Id: I611821d5f84b440ba542a8d62a374df7b505de15
2014-09-04Fix conditionStephan Bergmann
Change-Id: I8e70a62959dbeecd571c15c5b6fac1a41511a3f6
2014-09-04Poor hack for libjpipe.so under Clang -fsanitize=*Stephan Bergmann
Change-Id: I5c1036448cfc543f55cf1aa303abcfda6a64f64e
2014-09-02jurt: fix javadoc error: unexpected end tag: </p>rbuj
Change-Id: Ie8eb163793dc575558149320dceffcd92bdcfdd4 Reviewed-on: https://gerrit.libreoffice.org/11245 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-08-30jurt: fix some javadoc errors for JDK 8rbuj
Change-Id: I998f5796d7a5f10f790a1e861b741c54d0f62c19 Reviewed-on: https://gerrit.libreoffice.org/11191 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-08-20java: remove unnecessary constructor declarationsNoel Grandin
in the absence of any other constructors, the compiler will automatically generate a public no-arg constructor Change-Id: I70eca507cd8e16e33580b3398d41d70690bc2909
2014-08-20java: remove modifiers implied by the contextNoel Grandin
found by PMD Change-Id: I04cbf986ddbcffff987784f381b8a9f52f1b3f31
2014-08-20jurt: Throwable.getCause() instead of Throwable.getTargetException()rbuj
As of the JDK 1.4, Throwable.getCause() is the preferred method for getting thrown target exception. Change-Id: I14f3f9ae52869d1149f92b32562e7fb3293109b5 Reviewed-on: https://gerrit.libreoffice.org/11027 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-08-19java: no need to instantiate String objects directlyNoel Grandin
Change-Id: I7610774c94bf673ed3b574ffce04c4ee6ca93c03
2014-08-19java: use 'Byte.valueOf' instead of 'new Byte'Noel Grandin
Change-Id: Ia99765a6226317ee41ffb02a1b0dd7e6fd944a90
2014-08-19java: use 'Short.valueOf' instead of 'new Short'Noel Grandin
Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
2014-08-19java: use 'Long.valueOf' instead of 'new Long'Noel Grandin
Change-Id: If4fff3dd37326fbcdd01b743355a16591d71fa69
2014-08-19java: use 'Integer.valueOf' instead of 'new Integer'Noel Grandin
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
2014-08-19java: use Boolean.valueOf instead of instantiating Boolean objectsNoel Grandin
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
2014-08-19java: classes in java.lang package do not need to be fully qualifiedNoel Grandin
Change-Id: I7b18f62336c3a8ca4c538b30ce04c99f202a4756
2014-08-14java: remove commented out codeNoel Grandin
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
2014-08-12java: fix broken javadoc tagsNoel Grandin
Change-Id: I43d25ba49b758739ee8dc891b0db3e527004ec8b
2014-08-12java: add @Override annotation to overriding methodsNoel Grandin
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
2014-08-10jurt: Use <T> T[] toArray(T[] a)rbuj
http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Set.html#toArray%28T%5b%5d%29 Change-Id: I601e77db3cc978d81aebddfe6abba1c020671913 Reviewed-on: https://gerrit.libreoffice.org/10853 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-10Make this work better in the ENABLE_MACOSX_MACLIKE_APP_STRUCTURE caseTor Lillqvist
In that case the dylibs won't be in the parent directory of where the jars are (Resources), but in Frameworks. Change-Id: I628d828ca820d07724947050f54f9f5f9148e159
2014-08-09jurt: Number parsingrbuj
Change-Id: I40721bdaae62f063c188546fedb4037e40f890fa Reviewed-on: https://gerrit.libreoffice.org/10845 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-08java: redundant assignment, variable can only be nullNoel Grandin
Change-Id: I91209c5c185cf097a1609244419d73d4757d7d18
2014-08-08java: variable cannot be nullNoel Grandin
remove null check where null-analyis reveals the variable cannot be null Change-Id: Ied0a24665514bbf68c2ed5f15af9e5c2232a8033
2014-08-08java: remove redundant super-interfacesNoel Grandin
Change-Id: Iaf671ef87057362c804999a5154d8e8277bbc4b8
2014-08-08java: remove dead methodsNoel Grandin
Change-Id: I9f2e705fd603a7c8832c0f0772bee9f395380a0d
2014-08-05java: remove commented out codeNoel Grandin
Change-Id: I44e2043e5da23bc9421c03e550ef1d8b7ebaad36
2014-08-05java: remove unused fieldsNoel Grandin
Change-Id: I6c93864f501f646a8940eac221a88c87b3f75525
2014-08-05java: remove various unused variablesNoel Grandin
Change-Id: Id9f30938f594cb6fe73bf40adfffa65ec1b42cd1
2014-08-04java: remove pre Java 1.5 workaround in UrlToFileMapperNoel Grandin
Since we now require Java 1.5 Note that I tried to remove more code and use URL#toURI as the comment suggests, but that results in errors during make check. Change-Id: If283ee60f272b18920dcf8fc1be8766c0bed6ea5
2014-08-04java: remove workarounds for missing functionality pre java 1.5Noel Grandin
Since we now require java 1.5 Change-Id: I9e195f77c81bd9447f8e29c1862c68a57846c8a3