aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.matcher/src/test/java/org/aspectj/weaver/TestUtils.java
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade license from CPLv1/EPLv1 to EPLv2Alexander Kriegisch2021-06-041-29/+29
| | | | | | | This was required by the Eclipse team as one precondition for the next release. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
* 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-131-1/+1
| | | | Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* mavenized org.aspectj.matcher module - wipAndy Clement2019-01-231-0/+304