]> source.dussan.org Git - aspectj.git/log
aspectj.git
3 years agoFix MultiProjectIncrementalTests.testAspectPath_pr265693, 2nd try
Alexander Kriegisch [Thu, 11 Mar 2021 10:57:58 +0000 (17:57 +0700)]
Fix MultiProjectIncrementalTests.testAspectPath_pr265693, 2nd try

Do not assume a certain element order for tree nodes if there can be
more than one.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoTry to fix MultiProjectIncrementalTests.testAspectPath_pr265693
Alexander Kriegisch [Thu, 11 Mar 2021 08:57:23 +0000 (15:57 +0700)]
Try to fix MultiProjectIncrementalTests.testAspectPath_pr265693

Check if path vs. package name discrepancy makes test fail on Linux. On
Windows it passes. So let's find out if file p/Asp.java vs. pkg.Asp
causes the problems.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoAjcTestCase cosmetics: surround command in failure report by quotes
Alexander Kriegisch [Thu, 11 Mar 2021 01:16:28 +0000 (08:16 +0700)]
AjcTestCase cosmetics: surround command in failure report by quotes

This is the same for successful tests in class CompilationResult.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoFix resource leak in FileUtil
Alexander Kriegisch [Thu, 11 Mar 2021 06:23:29 +0000 (13:23 +0700)]
Fix resource leak in FileUtil

This made ModuleTests.testBuildModuleAndApplyAspectsFromAspectPath fail
because a file delete job for a module JAR failed after a previous
compile job had called FileUtil.isZipFile(File) in which the opened zip
file was never closed. A try with resources fixes that.

Maybe the corresponding test worked on Linux before, I did not try. I
just know that Linux is more forgiving about deleting open files while
on Windows they are being locked, which makes Windows the better system
to search for open file leaks.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoAjBuildManager: use try with resources in 2 places
Alexander Kriegisch [Thu, 11 Mar 2021 06:16:46 +0000 (13:16 +0700)]
AjBuildManager: use try with resources in 2 places

I was debugging something in ModuleTests, trying to find out if there
are resource leaks. They were not in this class but in FileUtil - see
next commit. However, the little refactoring here does not hurt either.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoFix path separators in ajc190.xml, make tests run on Windows
Alexander Kriegisch [Thu, 11 Mar 2021 06:13:11 +0000 (13:13 +0700)]
Fix path separators in ajc190.xml, make tests run on Windows

Replace ':' by ";" which will be replaced to the platform
separator automatically. A fixed value of ':' does not work on Windows.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoMerge pull request #32 from kriegaex/installer-windows_10-windows_server
Andy Clement [Fri, 5 Mar 2021 20:59:48 +0000 (12:59 -0800)]
Merge pull request #32 from kriegaex/installer-windows_10-windows_server

Support Windows 10 and Windows Server 2016/2019 in installer

3 years agoSupport Windows 10 and Windows Server 2016/2019 in installer 32/head
Alexander Kriegisch [Thu, 4 Mar 2021 09:43:15 +0000 (16:43 +0700)]
Support Windows 10 and Windows Server 2016/2019 in installer

Those versions were not detected until now, which lead to bogus Windows
batch files forwarding only 9 Ajc parameters to the Java process via
"%1 %2 %3 %4 %5 %6 %7 %8 %9" instead of "%*".

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years agoMerge pull request #29 from ebourg/patch-1
Andy Clement [Fri, 8 Jan 2021 00:16:27 +0000 (16:16 -0800)]
Merge pull request #29 from ebourg/patch-1

Update the URL of BCEL

3 years agoUpdate the URL of BCEL 29/head
Emmanuel Bourg [Thu, 7 Jan 2021 14:03:26 +0000 (15:03 +0100)]
Update the URL of BCEL

3 years agoMerge pull request #23 from larsgrefer/feature/java15
Andy Clement [Wed, 2 Dec 2020 23:31:40 +0000 (15:31 -0800)]
Merge pull request #23 from larsgrefer/feature/java15

Update GitHub Actions from Java 14 to 15

3 years agoMerge pull request #27 from capgen628/patch-1
Andy Clement [Wed, 2 Dec 2020 23:31:15 +0000 (15:31 -0800)]
Merge pull request #27 from capgen628/patch-1

Remove call to System.out

3 years agoRemove call to System.out 27/head
Anuj Dodhia [Wed, 2 Dec 2020 22:27:26 +0000 (22:27 +0000)]
Remove call to System.out

4 years agoUpdate GitHub Action from Java 14 to 15 23/head
Lars Grefer [Sun, 20 Sep 2020 19:00:11 +0000 (21:00 +0200)]
Update GitHub Action from Java 14 to 15

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoMerge pull request #22 from jamesjer/master
Andy Clement [Wed, 16 Sep 2020 17:50:55 +0000 (10:50 -0700)]
Merge pull request #22 from jamesjer/master

Fix apostrophe in the license

4 years agoFix apostrophe in the license 22/head
Jerry James [Tue, 15 Sep 2020 22:10:30 +0000 (16:10 -0600)]
Fix apostrophe in the license

4 years agoMerge pull request #21 from jamesjer/master
Andy Clement [Mon, 14 Sep 2020 16:42:04 +0000 (09:42 -0700)]
Merge pull request #21 from jamesjer/master

Fix javadoc errors

4 years agoTypo fixes 21/head
Jerry James [Mon, 14 Sep 2020 14:29:53 +0000 (08:29 -0600)]
Typo fixes

4 years agoFix javadoc references to nonexistent fields, classes, or packages
Jerry James [Mon, 14 Sep 2020 14:28:28 +0000 (08:28 -0600)]
Fix javadoc references to nonexistent fields, classes, or packages

4 years agoFix misplaced or incorrect javadoc tags
Jerry James [Mon, 14 Sep 2020 14:27:01 +0000 (08:27 -0600)]
Fix misplaced or incorrect javadoc tags

4 years agoFix misplaced or incorrectly nested HTML tags
Jerry James [Mon, 14 Sep 2020 14:25:20 +0000 (08:25 -0600)]
Fix misplaced or incorrectly nested HTML tags

4 years agoFix incorrect HTML entities in javadoc comments
Jerry James [Mon, 14 Sep 2020 14:23:26 +0000 (08:23 -0600)]
Fix incorrect HTML entities in javadoc comments

4 years agoMerge pull request #19 from jamesjer/master
Andy Clement [Wed, 9 Sep 2020 21:38:15 +0000 (14:38 -0700)]
Merge pull request #19 from jamesjer/master

Give docbook IDs unique names

4 years agoGive docbook IDs unique names 19/head
Jerry James [Wed, 9 Sep 2020 19:50:13 +0000 (13:50 -0600)]
Give docbook IDs unique names

4 years agoRevert to 1.9.7.BUILD-SNAPSHOT
Andy Clement [Fri, 21 Aug 2020 19:40:34 +0000 (12:40 -0700)]
Revert to 1.9.7.BUILD-SNAPSHOT

4 years ago1.9.7 milestone 1 published
Andy Clement [Fri, 21 Aug 2020 19:16:30 +0000 (12:16 -0700)]
1.9.7 milestone 1 published

4 years agoMerge pull request #18 from larsgrefer/feature/github-actions V1_9_7M1
Andy Clement [Mon, 17 Aug 2020 04:41:46 +0000 (21:41 -0700)]
Merge pull request #18 from larsgrefer/feature/github-actions

Split tests in a separate step on GitHub Actions

4 years agoSplit tests in a separate step on GitHub Actions 18/head
Lars Grefer [Mon, 17 Aug 2020 01:17:14 +0000 (03:17 +0200)]
Split tests in a separate step on GitHub Actions

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agodebug for test failure under github action
Andy Clement [Mon, 17 Aug 2020 00:27:48 +0000 (17:27 -0700)]
debug for test failure under github action

4 years agoUpdate to JUnit Jupiter 5.6.2
Lars Grefer [Sun, 16 Aug 2020 23:48:58 +0000 (01:48 +0200)]
Update to JUnit Jupiter 5.6.2

The "old" JUnit-3-style tests will be executed by the vintage-engine

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoMerge pull request #16 from larsgrefer/cleanup/modifiers
Andy Clement [Mon, 17 Aug 2020 00:03:37 +0000 (17:03 -0700)]
Merge pull request #16 from larsgrefer/cleanup/modifiers

Cleanup unnecessary modifiers

4 years agodebug for test failure under github action
Andy Clement [Sun, 16 Aug 2020 23:43:41 +0000 (16:43 -0700)]
debug for test failure under github action

4 years agoRemove unnecessary interface modifiers 16/head
Lars Grefer [Sun, 16 Aug 2020 23:19:52 +0000 (01:19 +0200)]
Remove unnecessary interface modifiers

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoRemove unnecessary enum modifiers
Lars Grefer [Sun, 16 Aug 2020 23:08:18 +0000 (01:08 +0200)]
Remove unnecessary enum modifiers

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agodebug for test failure under github action
Andy Clement [Sun, 16 Aug 2020 20:45:32 +0000 (13:45 -0700)]
debug for test failure under github action

4 years agopolish
Andy Clement [Sun, 16 Aug 2020 18:31:18 +0000 (11:31 -0700)]
polish

4 years agoMerge pull request #10 from larsgrefer/cleanup/pom
Andy Clement [Sun, 16 Aug 2020 18:14:43 +0000 (11:14 -0700)]
Merge pull request #10 from larsgrefer/cleanup/pom

Cleanup the Maven pom.xml files

4 years agoReduce test output for incremental comp tests
Andy Clement [Sun, 16 Aug 2020 06:08:40 +0000 (23:08 -0700)]
Reduce test output for incremental comp tests

4 years agoMerge pull request #13 from larsgrefer/feature/collection-performance
Andy Clement [Sun, 16 Aug 2020 05:39:09 +0000 (22:39 -0700)]
Merge pull request #13 from larsgrefer/feature/collection-performance

Improve performance and readability of collection handling

4 years agoMerge branch 'master' into feature/collection-performance 13/head
Andy Clement [Sun, 16 Aug 2020 05:38:51 +0000 (22:38 -0700)]
Merge branch 'master' into feature/collection-performance

4 years agoMerge pull request #15 from larsgrefer/update/maven/3.6.3
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

4 years agoMerge pull request #12 from larsgrefer/cleanup/unused-code
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

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

4 years agoCleanup unused imports 12/head
Lars Grefer [Sun, 16 Aug 2020 02:04:28 +0000 (04:04 +0200)]
Cleanup unused imports

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoUpdate to Maven 3.6.3 15/head
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>
4 years agoUpdate to JUnit 4.13
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>
4 years agoMerge pull request #7 from larsgrefer/patch-2
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

4 years agoReduce test output for incremental comp tests
Andy Clement [Sat, 15 Aug 2020 15:28:46 +0000 (08:28 -0700)]
Reduce test output for incremental comp tests

4 years agoWeaken Collection declarations
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>
4 years agoFix test on J14
Andy Clement [Sat, 15 Aug 2020 14:56:48 +0000 (07:56 -0700)]
Fix test on J14

4 years agoRedundant Collection.addAll() call
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>
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 agoRemove non-existing dependency 10/head
Lars Grefer [Fri, 14 Aug 2020 23:22:45 +0000 (01:22 +0200)]
Remove non-existing dependency

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
4 years agoRemove project.parent.relative path as ../pom.xml is already the default
Lars Grefer [Fri, 14 Aug 2020 23:07:29 +0000 (01:07 +0200)]
Remove project.parent.relative path as ../pom.xml is already the default

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 agoUse the Maven Wrapper for GitHub Actions 7/head
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>
4 years agoAdd a basic .editorconfig file 11/head
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>
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>