]> source.dussan.org Git - aspectj.git/log
aspectj.git
4 years agoCollection.toArray() call style
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>
4 years agoSingle Map method can be used
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>
4 years agoManual array copy
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>
4 years agoCollections.sort() can be replaced with List.sort()
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>
4 years agoReplace List.indexOf() with List.contains()
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>
4 years agoManual array to collection copy
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>
4 years agoFix the serial version UID contribution to work properly
Andy Clement [Sat, 15 Aug 2020 06:34:43 +0000 (23:34 -0700)]
Fix the serial version UID contribution to work properly

4 years agolets have maven fail if those tests fail...
Andy Clement [Sat, 15 Aug 2020 05:45:11 +0000 (22:45 -0700)]
lets have maven fail if those tests fail...

4 years agotypo
Andy Clement [Fri, 14 Aug 2020 22:50:39 +0000 (15:50 -0700)]
typo

4 years agoMerge pull request #5 from larsgrefer/remove-old-version-checks
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

4 years agoMerge branch 'master' of github.com:eclipse/org.aspectj into remove-old-version-checks 5/head
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

4 years agoTest on LTS versions and most recent non LTS
Andy Clement [Fri, 14 Aug 2020 21:01:22 +0000 (14:01 -0700)]
Test on LTS versions and most recent non LTS

4 years agoMerge branch 'master' of github.com:eclipse/org.aspectj into remove-old-version-checks
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

4 years agoMerge pull request #4 from larsgrefer/feature/github-actions
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

4 years agoMerge branch 'master' of github.com:eclipse/org.aspectj into feature/github-actions 4/head
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>
4 years agoFix up tests and reduce verbosity on J11
Andy Clement [Fri, 14 Aug 2020 17:56:10 +0000 (10:56 -0700)]
Fix up tests and reduce verbosity on J11

4 years agoAttempting to get J11 build happy at github
Andy Clement [Fri, 14 Aug 2020 04:58:17 +0000 (21:58 -0700)]
Attempting to get J11 build happy at github

4 years agoMaking tests behave on 11
Andy Clement [Thu, 13 Aug 2020 23:06:08 +0000 (16:06 -0700)]
Making tests behave on 11

4 years agoMerge branch 'feature/simplify-ajdoc' of github.com:larsgrefer/org.aspectj into featu...
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>
4 years agoSimplify checks for Java 8 to true
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>
4 years agoAlways run javadoc using the ToolProvider API 6/head
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>
4 years agoTrying to reduce test verbosity
Andy Clement [Thu, 13 Aug 2020 21:24:40 +0000 (14:24 -0700)]
Trying to reduce test verbosity

4 years agoRemove checks for old Java Versions
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>
4 years agoAdjust ASM version number used to work properly with Records (J14)
Andy Clement [Thu, 13 Aug 2020 20:40:06 +0000 (13:40 -0700)]
Adjust ASM version number used to work properly with Records (J14)

4 years agoFix compilation of JavadocRunner for Java 13+
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>
4 years agoFix JRockitAgentTest for Java 9 and 10
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>
4 years agoTest more Java versions
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>
4 years agoPrint used tool versions
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>
4 years agoFix compilation on Java 11
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>
4 years agoMerge pull request #3 from larsgrefer/feature/github-actions
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

4 years agoMerge pull request #2 from larsgrefer/feature/diamond-operator
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

4 years agoFix Javadoc generation on Java 11 3/head
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>
4 years agoFix Testcase
Lars Grefer [Thu, 13 Aug 2020 01:32:01 +0000 (03:32 +0200)]
Fix Testcase

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoCreate maven.yml
Lars Grefer [Wed, 12 Aug 2020 23:25:24 +0000 (01:25 +0200)]
Create maven.yml

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoUse the diamond operator where possible 2/head
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>
4 years agoMerge pull request #1 from larsgrefer/feature/java5
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

4 years agoMerge branch 'master' into feature/java5 1/head
Andy Clement [Wed, 12 Aug 2020 22:20:29 +0000 (15:20 -0700)]
Merge branch 'master' into feature/java5

4 years agoAdd a debug flag to workaround issue until we can sort it (565713)
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)

4 years agoUnnecessary unboxing
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>
4 years agoUnnecessary boxing
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>
4 years ago'String.indexOf()' expression is replaceable with 'contains()'
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>
4 years ago'while' loop replaceable with enhanced 'for' loop
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>
4 years ago'for' loop replaceable with enhanced 'for' loop
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>
4 years agoPolish
Andy Clement [Wed, 22 Jul 2020 21:09:06 +0000 (14:09 -0700)]
Polish

4 years agoFix serialVersionUID initialization for java9+
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>
4 years agoRev to 1.9.7.BUILD-SNAPSHOT
Andy Clement [Wed, 22 Jul 2020 20:23:05 +0000 (13:23 -0700)]
Rev to 1.9.7.BUILD-SNAPSHOT

4 years agoFixed a misplaced <para> element in the Docbook documentation for ajc
Emmanuel Bourg [Thu, 23 Oct 2014 13:55:56 +0000 (15:55 +0200)]
Fixed a misplaced <para> element in the Docbook documentation for ajc

4 years agoAspectJ 1.9.6 final bits V1_9_6
Andy Clement [Wed, 22 Jul 2020 19:34:07 +0000 (12:34 -0700)]
AspectJ 1.9.6 final bits

4 years agoUpdate ASM and fix packaging for matcher artifact
Andy Clement [Sat, 18 Jul 2020 00:29:08 +0000 (17:29 -0700)]
Update ASM and fix packaging for matcher artifact

4 years agopolish and new test for 550705
Andy Clement [Fri, 1 May 2020 19:08:11 +0000 (12:08 -0700)]
polish and new test for 550705

4 years ago558995 testcode
Andy Clement [Wed, 29 Apr 2020 22:14:34 +0000 (15:14 -0700)]
558995 testcode

4 years agoFix 550705: tricky intermittent verify error
Andy Clement [Wed, 29 Apr 2020 21:19:51 +0000 (14:19 -0700)]
Fix 550705: tricky intermittent verify error

4 years agoPolish
Andy Clement [Wed, 22 Apr 2020 18:02:57 +0000 (11:02 -0700)]
Polish

4 years agoAdded basic ThreadLocalAwareRepository - groundwork for 561819
Andy Clement [Wed, 22 Apr 2020 18:02:28 +0000 (11:02 -0700)]
Added basic ThreadLocalAwareRepository - groundwork for 561819

4 years agoFix for 558995: NullPointerException at org.aspectj.weaver.ReferenceType.getWeaverState
Andy Clement [Wed, 22 Apr 2020 17:42:51 +0000 (10:42 -0700)]
Fix for 558995: NullPointerException at org.aspectj.weaver.ReferenceType.getWeaverState

4 years agofew more bits to ignore
Andy Clement [Wed, 22 Apr 2020 00:36:55 +0000 (17:36 -0700)]
few more bits to ignore

4 years agoReorganise + comment .gitignore, ignore IntelliJ IDEA projects
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>
4 years agofix tests running on windows
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>
4 years agoExclude some linux created debug files
Andy Clement [Wed, 22 Apr 2020 00:27:47 +0000 (17:27 -0700)]
Exclude some linux created debug files

4 years agoFix support for -14 on command line - was missing from JDT
Andy Clement [Tue, 21 Apr 2020 20:19:24 +0000 (13:19 -0700)]
Fix support for -14 on command line - was missing from JDT

4 years agoCorrected links inside poms
Andy Clement [Tue, 21 Apr 2020 04:39:31 +0000 (21:39 -0700)]
Corrected links inside poms

4 years agopolish
Andy Clement [Tue, 21 Apr 2020 00:49:01 +0000 (17:49 -0700)]
polish

4 years agoInclude JDTCore for Java14
Andy Clement [Mon, 20 Apr 2020 23:24:02 +0000 (16:24 -0700)]
Include JDTCore for Java14

4 years agopolish
Andy Clement [Fri, 29 Nov 2019 19:36:58 +0000 (11:36 -0800)]
polish

4 years agopolish
Andy Clement [Fri, 29 Nov 2019 15:51:50 +0000 (07:51 -0800)]
polish

4 years agopolish
Andy Clement [Fri, 29 Nov 2019 05:22:23 +0000 (21:22 -0800)]
polish

4 years agoMove to 1.9.6.BUILD-SNAPSHOT version
Andy Clement [Thu, 28 Nov 2019 23:56:46 +0000 (15:56 -0800)]
Move to 1.9.6.BUILD-SNAPSHOT version

4 years ago1.9.5 release versions in poms V1_9_5
Andy Clement [Thu, 28 Nov 2019 19:25:49 +0000 (11:25 -0800)]
1.9.5 release versions in poms

4 years agopolish
Andy Clement [Thu, 28 Nov 2019 18:36:06 +0000 (10:36 -0800)]
polish

4 years ago1.9.5 readme
Andy Clement [Thu, 28 Nov 2019 18:35:04 +0000 (10:35 -0800)]
1.9.5 readme

4 years agopolish
Andy Clement [Thu, 28 Nov 2019 18:34:51 +0000 (10:34 -0800)]
polish

4 years agoorganize imports
Andy Clement [Thu, 28 Nov 2019 18:26:14 +0000 (10:26 -0800)]
organize imports

4 years agoDebug for 551732
Andy Clement [Thu, 28 Nov 2019 18:25:54 +0000 (10:25 -0800)]
Debug for 551732

4 years agofix comment
Andy Clement [Thu, 28 Nov 2019 18:25:12 +0000 (10:25 -0800)]
fix comment

4 years agoFix 550494
Andy Clement [Thu, 28 Nov 2019 03:03:07 +0000 (19:03 -0800)]
Fix 550494

4 years ago552724: fix typo
Andy Clement [Mon, 25 Nov 2019 20:26:06 +0000 (12:26 -0800)]
552724: fix typo

4 years agofirst textblock test for Java13
Andy Clement [Mon, 25 Nov 2019 19:05:45 +0000 (11:05 -0800)]
first textblock test for Java13

4 years agoJava 13 support
Andy Clement [Mon, 25 Nov 2019 18:40:44 +0000 (10:40 -0800)]
Java 13 support

4 years agoUpdate to an ASM for Java13
Andy Clement [Mon, 25 Nov 2019 17:59:15 +0000 (09:59 -0800)]
Update to an ASM for Java13

5 years agoFix Bug 551084 - NullPointerException at org.aspectj.ajdt.internal.core.builder.AjBui...
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

5 years agoFix Bug 387122 - threadlocal in weavingadaptor is potential memory leak
Andy Clement [Thu, 12 Sep 2019 18:45:37 +0000 (11:45 -0700)]
Fix Bug 387122 - threadlocal in weavingadaptor is potential memory leak

5 years ago543657: tweak to use current data rather than last known packed data
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

5 years agoMoved tests around for avoiding weaving switch infrastructure method
Andy Clement [Wed, 11 Sep 2019 15:35:17 +0000 (08:35 -0700)]
Moved tests around for avoiding weaving switch infrastructure method

5 years ago- dont't weave synthetic enum helper method for switch
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>
5 years agomake test a bit more reliable
Andy Clement [Tue, 10 Sep 2019 00:33:16 +0000 (17:33 -0700)]
make test a bit more reliable

5 years agoFix Bug 550290 - Lack of TypeSafeEnum#hashCode may lead to non-deterministic bytecode
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

5 years agoFix Bug 550696 - ClassCastException during load time weaving: InstructionHandle canno...
Andy Clement [Mon, 9 Sep 2019 20:38:21 +0000 (13:38 -0700)]
Fix Bug 550696 - ClassCastException during load time weaving: InstructionHandle cannot be cast to BranchHandle

5 years agopolish
Andy Clement [Tue, 2 Jul 2019 23:31:58 +0000 (16:31 -0700)]
polish

5 years agopolish
Andy Clement [Tue, 2 Jul 2019 23:31:32 +0000 (16:31 -0700)]
polish

5 years agoFix 548785: Check level is >=1.8 when looking to skip inlining around advice lambdas
Andy Clement [Tue, 2 Jul 2019 23:31:10 +0000 (16:31 -0700)]
Fix 548785: Check level is >=1.8 when looking to skip inlining around advice lambdas

5 years agoFix 548860: don't pass lowercased string through
Andy Clement [Tue, 2 Jul 2019 23:30:30 +0000 (16:30 -0700)]
Fix 548860: don't pass lowercased string through

5 years agoFix 547808: npe regression for multi @Around
Andy Clement [Mon, 3 Jun 2019 17:06:59 +0000 (10:06 -0700)]
Fix 547808: npe regression for multi @Around

5 years agoUpdate to 1.9.5.BUILD-SNAPSHOT in poms
Andy Clement [Mon, 3 Jun 2019 17:03:51 +0000 (10:03 -0700)]
Update to 1.9.5.BUILD-SNAPSHOT in poms

5 years agopolish 1.9.4 V1_9_4
Andy Clement [Fri, 10 May 2019 20:01:43 +0000 (13:01 -0700)]
polish 1.9.4

5 years ago1.9.4 POMS
Andy Clement [Fri, 10 May 2019 15:42:56 +0000 (08:42 -0700)]
1.9.4 POMS

5 years agoFinal bits of AspectJ 1.9.4
Andy Clement [Fri, 10 May 2019 15:39:28 +0000 (08:39 -0700)]
Final bits of AspectJ 1.9.4

5 years agoFix 546303: correct entries in weaver manifest for ltw
Andy Clement [Thu, 9 May 2019 16:41:01 +0000 (09:41 -0700)]
Fix 546303: correct entries in weaver manifest for ltw

5 years agopushed versions to 1.9.4.BUILD-SNAPSHOT
Andy Clement [Thu, 18 Apr 2019 00:22:02 +0000 (17:22 -0700)]
pushed versions to 1.9.4.BUILD-SNAPSHOT

5 years agopolish for 1.9.3 V1_9_3
Andy Clement [Thu, 4 Apr 2019 19:55:58 +0000 (12:55 -0700)]
polish for 1.9.3

5 years agoUpdated with Java12 support
Andy Clement [Wed, 3 Apr 2019 17:23:44 +0000 (10:23 -0700)]
Updated with Java12 support