aboutsummaryrefslogtreecommitdiffstats
path: root/ajdoc/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary interface modifiersLars Grefer2020-08-171-15/+15
| | | | Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* Merge branch 'master' into feature/collection-performanceAndy Clement2020-08-154-7/+0
|\
| * Cleanup unused importsLars Grefer2020-08-165-8/+0
| | | | | | | | Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* | Weaken Collection declarationsLars Grefer2020-08-153-3/+4
| | | | | | | | | | | | 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>
* | 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>
* | Manual array copyLars Grefer2020-08-151-9/+3
| | | | | | | | | | | | Reports the manual copying of array contents which may be replaced by calls to System.arraycopy(). Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* | Manual array to collection copyLars Grefer2020-08-151-11/+2
|/ | | | | | 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>
* Merge branch 'master' of github.com:eclipse/org.aspectj into ↵Lars Grefer2020-08-142-89/+4
|\ | | | | | | remove-old-version-checks
| * Merge branch 'feature/simplify-ajdoc' of github.com:larsgrefer/org.aspectj ↵Lars Grefer2020-08-142-91/+4
| |\ | | | | | | | | | | | | | | | into feature/github-actions Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
| | * Always run javadoc using the ToolProvider APILars Grefer2020-08-142-87/+4
| | | | | | | | | | | | | | | | | | `com.sun.tools.javadoc.Main` isn't available in recent Java versions (13+) Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
| * | Fix compilation of JavadocRunner for Java 13+Lars Grefer2020-08-131-5/+7
| |/ | | | | | | Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* / Simplify checks for Java 8 to trueLars Grefer2020-08-142-123/+37
|/ | | | Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* Use the diamond operator where possibleLars Grefer2020-08-134-22/+22
| | | | Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
* 'String.indexOf()' expression is replaceable with 'contains()'Lars Grefer2020-08-083-24/+24
| | | | | | 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>
* 'for' loop replaceable with enhanced 'for' loopLars Grefer2020-08-086-56/+47
| | | | | | 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>
* Java 13 supportAndy Clement2019-11-252-148/+172
|
* Updated with Java12 supportAndy Clement2019-04-034-37/+55
|
* Fix version tagging for info stringsAndy Clement2019-02-112-2/+2
|
* Add module tests back in - but streamlinedAndy Clement2019-01-313-48/+36
|
* mavenizing ajdoc - doneAndy Clement2019-01-306-54/+27
|
* mavenizing ajdoc - wipAndy Clement2019-01-2924-0/+2919
|
* Support Java10Andy Clement2018-04-182-22/+49
|
* Updates to better cope with future JDKsAndy Clement2017-11-094-61/+66
| | | | | | | | | | | | | | The version handling in LangUtil has been overhauled to cope better with post 1.8 releases (JDK9 and JDK10 or 18.3 or whatever they call it). As part of this moved to treating JDK9 as '9' rather than '1.9'. Also removed duplicate version processing logic and had that defer to the one place in LangUtil where we now deal with it. Includes some generics tidyup in ajdoc. More ajdoc work is necessary for Java10 because it removes the standard doclet (old style). However trying to invoke the internal Javadoc handler in Java10 is failing due to module visibility rules.
* 464604: ajdoc SIOOBE on Java7Andy Clement2015-09-041-0/+5
|
* Fix 436653: conditional aspect activation plus various polishAndy Clement2014-10-061-1/+27
| | | | | | | | | | | | | | Modified test expectation system so it is possible to say the test cares about one particular message and the rest do not matter (prefix message string with '*') - crude but quick. Polished many places to exploit generics Upgraded all the tests to work on Java8 - some serious changes regarding ajdoc on Java8. Hopefully it has stayed backwards compatible with earlier JDK versions (e.g. if using AspectJ 1.8.3+ with a JDK less than 8) but no explicit testing done for this.
* add apt testshsestupin2014-08-011-1/+1
| | | | Signed-off-by: hsestupin <stupin.sergey@gmail.com>
* minimalModel ON by default. demotion ON by default (for AJDT as well as LTW)aclement2011-08-051-1/+1
|
* 280783: removed security manager - why is it there?aclement2009-06-181-51/+50
|
* 258206: package declaration support in the modelaclement2009-01-061-1/+3
|
* attempt to commit patch for 256514 again: fixed the patch to be non-windoze onlyaclement2008-12-152-0/+60
|
* backed out changes - break the buildaclement2008-12-082-59/+0
|
* 256514: c1aclement2008-11-272-0/+59
|
* 251277: making asmmanager non-singletonaclement2008-10-205-951/+927
|
* formatter chewedaclement2008-09-171-832/+732
|
* eclipse: unnecessary castaclement2008-08-231-1/+1
|
* 240234, comment 19 - patch for ajdocaclement2008-07-312-4/+17
|
* 230234 comment 10 - ajdoc modifications and testsaclement2008-07-181-6/+7
|
* tests and fixes for 148906: Support -Xlintfile for ajdocaclement2006-10-234-16/+62
|
* change for 160496: refactored ajdoc mainaclement2006-10-231-148/+129
|
* update license to EPLacolyer2006-06-019-19/+27
|
* message fix for 134063aclement2006-03-311-5/+5
|
* test and fix for 134063aclement2006-03-311-10/+18
|
* pr58524 (golden oldie...) - from Helen - removing use of deprecated API in ↵aclement2006-01-165-779/+93
| | | | ajdoc.
* pr121711 - from Helen - comment #19aclement2006-01-161-5/+61
|
* pr121711 - from Helen - removing >1.3 apis that were introduced in previous ↵aclement2006-01-161-2/+10
| | | | patch.
* more ajdoc changes - see pr121711 - from Helen.aclement2006-01-132-35/+183
|
* ajdoc changes - moving to using a sandbox for testing, plus other bits and ↵aclement2006-01-132-27/+67
| | | | pieces - see pr121711 - from Helen.
* fixes for ajdoc crash - bug 122728aclement2006-01-091-1/+3
|
* fix from comment #14 on bug 119453 to do with incorrect results for decp ↵aclement2006-01-091-0/+3
| | | | statements. (from helen)
* ajdoc: fixes from Helen for 119453aclement2005-12-212-12/+130
|