aboutsummaryrefslogtreecommitdiffstats
path: root/taskdefs/src
Commit message (Collapse)AuthorAgeFilesLines
* Prepare code, tests and docs for Java 18Alexander Kriegisch2022-03-211-3/+12
| | | | | | | | | | | | | | | | | | | | - JDT Core dependency in pom.xml - Constants.java - LangUtil.java - AjcTask.java - messages_aspectj.properties - XMLBasedAjcTestCaseForJava17Only.java - XMLBasedAjcTestCaseForJava18*.java - tests/bugs199 - tests/features199 - JavaVersionCompatibility.md - README-199.html - GitHub CI build Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* Cleanup redundant type casts, due to too weak variable type declarationAndrey Turbanov2022-02-262-6/+5
|
* Update 'taskdefs' code to use genericsAndrey Turbanov2022-01-146-27/+27
|
* Use StringBuilder/StringJoiner for concatenation String's in loopAndrey Turbanov2021-12-181-6/+5
|
* Merge pull request #101 from turbanoff/use_StringBuilder_instead_of_StringBufferAndy Clement2021-11-303-5/+5
|\ | | | | Replace uses of StringBuffer with StringBuilder.
| * Replace uses of StringBuffer with StringBuilder.Andrey Turbanov2021-11-203-5/+5
| | | | | | | | StringBuffer is a legacy synchronized class. StringBuilder is a direct replacement to StringBuffer which generally have better performance.
* | Merge pull request #100 from ↵Andy Clement2021-11-291-1/+1
|\ \ | | | | | | | | | | | | turbanoff/File.exists_before_File.isDirectory_is_redundant Remove redundant File.exists() check before File.isDirectory()
| * | According to javadoc File.isDirectory 'true' if and only if the file denoted ↵Andrey Turbanov2021-11-201-1/+1
| |/ | | | | | | | | | | by this abstract pathname exists and is a directory. It means that separate File.exists() check before File.isDirectory() check is redundant.
* / Make AspectJ Ant task compatible with Java 16, 17Alexander Kriegisch2021-11-151-3/+3
|/ | | | | | Closes #97 Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* Upgrade license from CPLv1/EPLv1 to EPLv2Alexander Kriegisch2021-06-0412-162/+162
| | | | | | | This was required by the Eclipse team as one precondition for the next release. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* Improve 2 tests do delete temporary filesAlexander Kriegisch2021-04-091-12/+13
| | | | | | | | | There were some problems in file handling: One file in was not deleted in case an exception was thrown during the test. Another case was a JarFile which was not closed before deletion, which might work on Linux, but not on Windows where the open file is still locked after usage. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* Fix AjcTaskTest regarding Ajc outputAlexander Kriegisch2021-03-211-3/+3
| | | | | | Another follow-up commit on @31b2d60b Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* Fix some deprecated Java and JUnit warnings by using newer API callsAlexander Kriegisch2021-03-212-4/+4
| | | | Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* Add Java 15 class vile version to BCEL constants, adjust test tools etc.Alexander Kriegisch2021-03-161-3/+3
| | | | Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* Fix javadoc references to nonexistent fields, classes, or packagesJerry James2020-09-143-7/+6
|
* Fix misplaced or incorrect javadoc tagsJerry James2020-09-142-6/+3
|
* Fix misplaced or incorrectly nested HTML tagsJerry James2020-09-143-4/+5
|
* Fix incorrect HTML entities in javadoc commentsJerry James2020-09-141-1/+1
|
* Remove unnecessary interface modifiersLars Grefer2020-08-171-30/+30
| | | | Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* Merge branch 'master' into feature/collection-performanceAndy Clement2020-08-153-4/+0
|\
| * Cleanup unused importsLars Grefer2020-08-164-5/+0
| | | | | | | | Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* | Weaken Collection declarationsLars Grefer2020-08-152-2/+3
| | | | | | | | | | | | Reports on declarations of Collection variables made by using the collection class as the type, rather than an appropriate interface. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* | Redundant Collection.addAll() callLars Grefer2020-08-152-4/+2
| | | | | | | | | | | | Reports Collection.addAll() and Map.putAll() calls after instantiation of a collection using a constructor call without arguments. Such constructs can be replaced with a single call to a parametrized constructor which simplifies code. Also for some collections the replacement might be more performant. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* | Collection.toArray() call styleLars Grefer2020-08-151-1/+1
|/ | | | | | | There are two styles to convert a collection to an array: either using a pre-sized array (like c.toArray(new String[c.size()])) or using an empty array (like c.toArray(new String[0]). In older Java versions using pre-sized array was recommended, as the reflection call which is necessary to create an array of proper size was quite slow. However since late updates of OpenJDK 6 this call was intrinsified, making the performance of the empty array version the same and sometimes even better, compared to the pre-sized version. Also passing pre-sized array is dangerous for a concurrent or synchronized collection as a data race is possible between the size and toArray call which may result in extra nulls at the end of the array, if the collection was concurrently shrunk during the operation. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* Use the diamond operator where possibleLars Grefer2020-08-133-12/+12
| | | | Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* Unnecessary unboxingLars Grefer2020-08-082-6/+6
| | | | | | Reports "unboxing", e.g. explicit unwrapping of wrapped primitive values. Unboxing is unnecessary under Java 5 and newer, and can be safely removed. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* 'String.indexOf()' expression is replaceable with 'contains()'Lars Grefer2020-08-083-8/+8
| | | | | | Reports any String.indexOf() expressions which can be replaced with a call to the String.contains() method available in Java 5 and newer. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* 'while' loop replaceable with enhanced 'for' loopLars Grefer2020-08-081-9/+7
| | | | | | Reports while loops which iterate over collections, and can be replaced with an enhanced for loop (i.e. foreach iteration syntax). Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* 'for' loop replaceable with enhanced 'for' loopLars Grefer2020-08-088-156/+154
| | | | | | Reports for loops which iterate over collections or arrays, and can be replaced with an enhanced for loop (i.e. the foreach iteration syntax). Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* Include JDTCore for Java14Andy Clement2020-04-201-105/+105
|
* Java 13 supportAndy Clement2019-11-252-94/+93
|
* Updated with Java12 supportAndy Clement2019-04-031-3/+3
|
* 1.9.3.RC1 final bitsV1_9_3RC1Andy Clement2019-03-071-0/+3
|
* move aspectjTaskdefs.properties into src/main/resourcesAndy Clement2019-02-071-0/+0
|
* Add module tests back in - but streamlinedAndy Clement2019-02-011-0/+28
|
* mavenizing taskdefs - doneAndy Clement2019-01-302-64/+0
|
* mavenizing taskdefs - wipAndy Clement2019-01-3015-0/+1345
|
* 1.9.2.RC1 changesV1_9_2_RC1Andy Clement2018-09-291-3/+3
|
* Support Java10Andy Clement2018-04-181-3/+3
|
* Fix Bug 531179 - Add compiler arg support to iajc taskAndy Clement2018-02-142-15/+59
|
* add genericsAndy Clement2018-02-141-13/+15
|
* JDT Upgrade for 1.9.0.rc3Andy Clement2018-02-051-25/+22
|
* Improved Java9 option handlingAndy Clement2017-09-271-3/+3
|
* Merged post 1.8.5 changes into Java9 branchAndy Clement2017-09-201-0/+4
|\
| * 462146: -parameters option on iajcAndy Clement2015-03-261-0/+4
| |
* | Further 1.9 changes: better handling of source/targetV1_9_0_BETA5Andy Clement2016-07-261-3/+3
|/
* Use genericsAndy Clement2014-10-081-41/+38
|
* add apt args when calling from ant (AjcTask)hsestupin2014-08-111-0/+42
| | | | Signed-off-by: hsestupin <stupin.sergey@gmail.com>
* ASM 5.0.1 plus polish/formattingAndy Clement2014-04-011-3/+3
|
* 376990: iajc does not support source compliance level 1.7Andy Clement2012-04-171-3/+3
|