]>
source.dussan.org Git - aspectj.git/log
Andy Clement [Sun, 16 Aug 2020 05:38:51 +0000 (22:38 -0700)]
Merge branch 'master' into feature/collection-performance
Andy Clement [Sun, 16 Aug 2020 05:30:45 +0000 (22:30 -0700)]
Merge pull request #15 from larsgrefer/update/maven/3.6.3
Update to Maven 3.6.3
Andy Clement [Sun, 16 Aug 2020 05:30:29 +0000 (22:30 -0700)]
Merge pull request #12 from larsgrefer/cleanup/unused-code
Cleanup unused imports
Andy Clement [Sun, 16 Aug 2020 05:29:59 +0000 (22:29 -0700)]
Merge pull request #11 from larsgrefer/feature/editorconfig
Add a basic .editorconfig file
Lars Grefer [Sun, 16 Aug 2020 02:04:28 +0000 (04:04 +0200)]
Cleanup unused imports
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Sat, 15 Aug 2020 18:29:23 +0000 (20:29 +0200)]
Update to Maven 3.6.3
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Fri, 14 Aug 2020 22:59:58 +0000 (00:59 +0200)]
Update to JUnit 4.13
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Andy Clement [Sat, 15 Aug 2020 16:19:02 +0000 (09:19 -0700)]
Merge pull request #7 from larsgrefer/patch-2
Use the Maven Wrapper for GitHub Actions
Andy Clement [Sat, 15 Aug 2020 15:28:46 +0000 (08:28 -0700)]
Reduce test output for incremental comp tests
Lars Grefer [Sat, 15 Aug 2020 15:01:46 +0000 (17:01 +0200)]
Weaken Collection declarations
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>
Andy Clement [Sat, 15 Aug 2020 14:56:48 +0000 (07:56 -0700)]
Fix test on J14
Lars Grefer [Sat, 15 Aug 2020 14:33:00 +0000 (16:33 +0200)]
Redundant Collection.addAll() call
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>
Lars Grefer [Sat, 15 Aug 2020 14:30:09 +0000 (16:30 +0200)]
Collection.toArray() call style
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>
Lars Grefer [Sat, 15 Aug 2020 14:25:42 +0000 (16:25 +0200)]
Single Map method can be used
Reports common usage patterns of java.util.Map that could be replaced with Java 8 methods: getOrDefault(), computeIfAbsent(), putIfAbsent(), merge(), or replaceAll().
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Sat, 15 Aug 2020 14:35:54 +0000 (16:35 +0200)]
Manual array copy
Reports the manual copying of array contents which may be replaced by calls to System.arraycopy().
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Sat, 15 Aug 2020 14:13:00 +0000 (16:13 +0200)]
Collections.sort() can be replaced with List.sort()
Reports calls to Collections.sort(list, comparator) which could be replaced with list.sort(comparator).
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Sat, 15 Aug 2020 14:09:05 +0000 (16:09 +0200)]
Replace List.indexOf() with List.contains()
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Sat, 15 Aug 2020 14:06:32 +0000 (16:06 +0200)]
Manual array to collection copy
Reports the copying of array contents to a collection where each element is added individually using a for loop. Such constructs may be replaced by a call to Collection.addAll(Arrays.asList()) or Collections.addAll().
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Andy Clement [Sat, 15 Aug 2020 06:34:43 +0000 (23:34 -0700)]
Fix the serial version UID contribution to work properly
Andy Clement [Sat, 15 Aug 2020 05:45:11 +0000 (22:45 -0700)]
lets have maven fail if those tests fail...
Lars Grefer [Fri, 14 Aug 2020 23:36:53 +0000 (01:36 +0200)]
Use the Maven Wrapper for GitHub Actions
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Fri, 14 Aug 2020 23:27:18 +0000 (01:27 +0200)]
Add a basic .editorconfig file
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Andy Clement [Fri, 14 Aug 2020 22:50:39 +0000 (15:50 -0700)]
typo
Andy Clement [Fri, 14 Aug 2020 22:00:44 +0000 (15:00 -0700)]
Merge pull request #5 from larsgrefer/remove-old-version-checks
Remove checks for old Java Versions
Lars Grefer [Fri, 14 Aug 2020 21:02:52 +0000 (23:02 +0200)]
Merge branch 'master' of github.com:eclipse/org.aspectj into remove-old-version-checks
Andy Clement [Fri, 14 Aug 2020 21:01:22 +0000 (14:01 -0700)]
Test on LTS versions and most recent non LTS
Lars Grefer [Fri, 14 Aug 2020 21:00:48 +0000 (23:00 +0200)]
Merge branch 'master' of github.com:eclipse/org.aspectj into remove-old-version-checks
Andy Clement [Fri, 14 Aug 2020 20:59:47 +0000 (13:59 -0700)]
Merge pull request #4 from larsgrefer/feature/github-actions
Fix and improve the CI Jobs
Lars Grefer [Fri, 14 Aug 2020 20:58:34 +0000 (22:58 +0200)]
Merge branch 'master' of github.com:eclipse/org.aspectj into feature/github-actions
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Andy Clement [Fri, 14 Aug 2020 17:56:10 +0000 (10:56 -0700)]
Fix up tests and reduce verbosity on J11
Andy Clement [Fri, 14 Aug 2020 04:58:17 +0000 (21:58 -0700)]
Attempting to get J11 build happy at github
Andy Clement [Thu, 13 Aug 2020 23:06:08 +0000 (16:06 -0700)]
Making tests behave on 11
Lars Grefer [Thu, 13 Aug 2020 22:28:34 +0000 (00:28 +0200)]
Merge branch 'feature/simplify-ajdoc' of github.com:larsgrefer/org.aspectj into feature/github-actions
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Thu, 13 Aug 2020 22:25:54 +0000 (00:25 +0200)]
Simplify checks for Java 8 to true
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Thu, 13 Aug 2020 22:22:30 +0000 (00:22 +0200)]
Always run javadoc using the ToolProvider API
`com.sun.tools.javadoc.Main` isn't available in recent Java versions (13+)
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Andy Clement [Thu, 13 Aug 2020 21:24:40 +0000 (14:24 -0700)]
Trying to reduce test verbosity
Lars Grefer [Thu, 13 Aug 2020 21:21:11 +0000 (23:21 +0200)]
Remove checks for old Java Versions
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Andy Clement [Thu, 13 Aug 2020 20:40:06 +0000 (13:40 -0700)]
Adjust ASM version number used to work properly with Records (J14)
Lars Grefer [Thu, 13 Aug 2020 19:47:19 +0000 (21:47 +0200)]
Fix compilation of JavadocRunner for Java 13+
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Thu, 13 Aug 2020 19:32:03 +0000 (21:32 +0200)]
Fix JRockitAgentTest for Java 9 and 10
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Thu, 13 Aug 2020 16:31:20 +0000 (18:31 +0200)]
Test more Java versions
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Thu, 13 Aug 2020 16:27:03 +0000 (18:27 +0200)]
Print used tool versions
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Thu, 13 Aug 2020 16:15:28 +0000 (18:15 +0200)]
Fix compilation on Java 11
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Andy Clement [Thu, 13 Aug 2020 15:32:30 +0000 (08:32 -0700)]
Merge pull request #3 from larsgrefer/feature/github-actions
Create a simple CI Job using GitHub Actions
Andy Clement [Thu, 13 Aug 2020 15:28:27 +0000 (08:28 -0700)]
Merge pull request #2 from larsgrefer/feature/diamond-operator
Use the diamond operator where possible
Lars Grefer [Thu, 13 Aug 2020 01:58:56 +0000 (03:58 +0200)]
Fix Javadoc generation on Java 11
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Thu, 13 Aug 2020 01:32:01 +0000 (03:32 +0200)]
Fix Testcase
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Wed, 12 Aug 2020 23:25:24 +0000 (01:25 +0200)]
Create maven.yml
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Wed, 12 Aug 2020 23:01:58 +0000 (01:01 +0200)]
Use the diamond operator where possible
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Andy Clement [Wed, 12 Aug 2020 22:20:45 +0000 (15:20 -0700)]
Merge pull request #1 from larsgrefer/feature/java5
Update the code to Java 5 features
Andy Clement [Wed, 12 Aug 2020 22:20:29 +0000 (15:20 -0700)]
Merge branch 'master' into feature/java5
Andy Clement [Mon, 10 Aug 2020 23:13:20 +0000 (16:13 -0700)]
Add a debug flag to workaround issue until we can sort it (565713)
Lars Grefer [Sat, 8 Aug 2020 01:16:40 +0000 (03:16 +0200)]
Unnecessary unboxing
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>
Lars Grefer [Sat, 8 Aug 2020 01:14:13 +0000 (03:14 +0200)]
Unnecessary boxing
Reports explicit boxing, i.e. wrapping of primitive values in objects. Explicit manual boxing is unnecessary under Java 5 and newer, and can be safely removed.
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Lars Grefer [Sat, 8 Aug 2020 01:11:12 +0000 (03:11 +0200)]
'String.indexOf()' expression is replaceable with 'contains()'
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>
Lars Grefer [Sat, 8 Aug 2020 01:09:01 +0000 (03:09 +0200)]
'while' loop replaceable with enhanced 'for' loop
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>
Lars Grefer [Sat, 8 Aug 2020 01:06:37 +0000 (03:06 +0200)]
'for' loop replaceable with enhanced 'for' loop
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>
Andy Clement [Wed, 22 Jul 2020 21:09:06 +0000 (14:09 -0700)]
Polish
eli-fin [Sun, 19 May 2019 11:10:35 +0000 (14:10 +0300)]
Fix serialVersionUID initialization for java9+
Move initialization of static final serialVersionUID field to clinit, since as of java9+, the runtime won't allow setting final fields outside clinit
Signed-off-by: Eli Finkel <eyfinkel@gmail.com>
Andy Clement [Wed, 22 Jul 2020 20:23:05 +0000 (13:23 -0700)]
Rev to 1.9.7.BUILD-SNAPSHOT
Emmanuel Bourg [Thu, 23 Oct 2014 13:55:56 +0000 (15:55 +0200)]
Fixed a misplaced <para> element in the Docbook documentation for ajc
Andy Clement [Wed, 22 Jul 2020 19:34:07 +0000 (12:34 -0700)]
AspectJ 1.9.6 final bits
Andy Clement [Sat, 18 Jul 2020 00:29:08 +0000 (17:29 -0700)]
Update ASM and fix packaging for matcher artifact
Andy Clement [Fri, 1 May 2020 19:08:11 +0000 (12:08 -0700)]
polish and new test for 550705
Andy Clement [Wed, 29 Apr 2020 22:14:34 +0000 (15:14 -0700)]
558995 testcode
Andy Clement [Wed, 29 Apr 2020 21:19:51 +0000 (14:19 -0700)]
Fix 550705: tricky intermittent verify error
Andy Clement [Wed, 22 Apr 2020 18:02:57 +0000 (11:02 -0700)]
Polish
Andy Clement [Wed, 22 Apr 2020 18:02:28 +0000 (11:02 -0700)]
Added basic ThreadLocalAwareRepository - groundwork for 561819
Andy Clement [Wed, 22 Apr 2020 17:42:51 +0000 (10:42 -0700)]
Fix for 558995: NullPointerException at org.aspectj.weaver.ReferenceType.getWeaverState
Andy Clement [Wed, 22 Apr 2020 00:36:55 +0000 (17:36 -0700)]
few more bits to ignore
Alexander Kriegisch [Sun, 10 Mar 2019 03:07:03 +0000 (10:07 +0700)]
Reorganise + comment .gitignore, ignore IntelliJ IDEA projects
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
eli-fin [Sat, 17 Aug 2019 19:06:21 +0000 (22:06 +0300)]
fix tests running on windows
This caused checkRtJar to return an error, which led to some tests to fail
Signed-off-by: Eli Finkel <eyfinkel@gmail.com>
Andy Clement [Wed, 22 Apr 2020 00:27:47 +0000 (17:27 -0700)]
Exclude some linux created debug files
Andy Clement [Tue, 21 Apr 2020 20:19:24 +0000 (13:19 -0700)]
Fix support for -14 on command line - was missing from JDT
Andy Clement [Tue, 21 Apr 2020 04:39:31 +0000 (21:39 -0700)]
Corrected links inside poms
Andy Clement [Tue, 21 Apr 2020 00:49:01 +0000 (17:49 -0700)]
polish
Andy Clement [Mon, 20 Apr 2020 23:24:02 +0000 (16:24 -0700)]
Include JDTCore for Java14
Andy Clement [Fri, 29 Nov 2019 19:36:58 +0000 (11:36 -0800)]
polish
Andy Clement [Fri, 29 Nov 2019 15:51:50 +0000 (07:51 -0800)]
polish
Andy Clement [Fri, 29 Nov 2019 05:22:23 +0000 (21:22 -0800)]
polish
Andy Clement [Thu, 28 Nov 2019 23:56:46 +0000 (15:56 -0800)]
Move to 1.9.6.BUILD-SNAPSHOT version
Andy Clement [Thu, 28 Nov 2019 19:25:49 +0000 (11:25 -0800)]
1.9.5 release versions in poms
Andy Clement [Thu, 28 Nov 2019 18:36:06 +0000 (10:36 -0800)]
polish
Andy Clement [Thu, 28 Nov 2019 18:35:04 +0000 (10:35 -0800)]
1.9.5 readme
Andy Clement [Thu, 28 Nov 2019 18:34:51 +0000 (10:34 -0800)]
polish
Andy Clement [Thu, 28 Nov 2019 18:26:14 +0000 (10:26 -0800)]
organize imports
Andy Clement [Thu, 28 Nov 2019 18:25:54 +0000 (10:25 -0800)]
Debug for 551732
Andy Clement [Thu, 28 Nov 2019 18:25:12 +0000 (10:25 -0800)]
fix comment
Andy Clement [Thu, 28 Nov 2019 03:03:07 +0000 (19:03 -0800)]
Fix 550494
Andy Clement [Mon, 25 Nov 2019 20:26:06 +0000 (12:26 -0800)]
552724: fix typo
Andy Clement [Mon, 25 Nov 2019 19:05:45 +0000 (11:05 -0800)]
first textblock test for Java13
Andy Clement [Mon, 25 Nov 2019 18:40:44 +0000 (10:40 -0800)]
Java 13 support
Andy Clement [Mon, 25 Nov 2019 17:59:15 +0000 (09:59 -0800)]
Update to an ASM for Java13
Andy Clement [Mon, 16 Sep 2019 20:13:20 +0000 (13:13 -0700)]
Fix Bug 551084 - NullPointerException at org.aspectj.ajdt.internal.core.builder.AjBuildManager.checkRtJar
Andy Clement [Thu, 12 Sep 2019 18:45:37 +0000 (11:45 -0700)]
Fix Bug 387122 - threadlocal in weavingadaptor is potential memory leak
Andy Clement [Wed, 11 Sep 2019 16:04:15 +0000 (09:04 -0700)]
543657: tweak to use current data rather than last known packed data
Andy Clement [Wed, 11 Sep 2019 15:35:17 +0000 (08:35 -0700)]
Moved tests around for avoiding weaving switch infrastructure method
Semyon Danilov [Wed, 24 Jul 2019 20:57:17 +0000 (23:57 +0300)]
- dont't weave synthetic enum helper method for switch
- add test for switch on enum with around all advice
Signed-off-by: Semyon Danilov <samvimes@yandex.ru>
Andy Clement [Tue, 10 Sep 2019 00:33:16 +0000 (17:33 -0700)]
make test a bit more reliable
Andy Clement [Mon, 9 Sep 2019 23:58:48 +0000 (16:58 -0700)]
Fix Bug 550290 - Lack of TypeSafeEnum#hashCode may lead to non-deterministic bytecode