From 36f24731b0f90ff75a6bf5f2f0042baf6dbd9000 Mon Sep 17 00:00:00 2001 From: Speiger Date: Sat, 28 May 2022 23:34:37 +0200 Subject: [PATCH] Script Cleanup, Changelog Update and Version Bump. Added a lot of Unit Tests (Roughly 7 Million) to Primitive Collections (look Debug Branch) and found some really big bugs. The Coverage was moved from 1.9% to 34.7% so far. So there were a lot bugs found and at this point I need a break so this is the first fixpatch until new tests are added. --- .github/workflows/coverage.yml | 30 ------------------------------ Changelog.md | 21 +++++++++++++++++++++ README.md | 5 +++-- build.gradle | 9 +-------- 4 files changed, 25 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index 9f06c32..0000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Measure coverage - -on: - push: - branches: [ master ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Run Coverage - run: | - chmod +x gradlew - ./gradlew build jacocoTestCoverage - - name: Upload Report - uses: 'actions/upload-artifact@v2' - with: - name: report.xml - paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml - - name: Add coverage to PR - id: jacoco - uses: madrapps/jacoco-report@v1.2 - with: - paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/Changelog.md b/Changelog.md index 1334c9a..e645f43 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,26 @@ # Changelog of versions +### Version 0.6.2 +- Added: Array only sorting function return the inputed array. This was done to allow for static final references to use the method in one go without having to make lambda wrappers. Cleaner code. +- Added: Iterator Wrappers are now a bit more in Compliance with Java Standards. +- Added: AsyncBuilders now Support Array Inputs to create cleaner code. +- Changed: LinkedList.addBulk variable definition was triggering a false positive. +- Fixed: TreeMap.subMap().entrySet().remove() wouldn't check primitives properly. +- Fixed: SortedMap.sub/tail/headMap were looping into themselves. +- Fixed: AbstractCollection.retainAll didn't push removed values through the consumer. +- Fixed: AbstractCollection.toArray wouldn't reset the last entry if the input array was larger then the elements in the collection. +- Fixed: SubList didn't check for ranges properly or didn't use parent list to validate changes. +- Fixed: ArrayList.addElements didn't check input array fully and used the wrong variable to move the elements around. +- Fixed: LinkedList.addElements(EmptyInput) would crash. +- Fixed: LinkedList.swapRemove didn't account for if the removed element was the prelast one. +- Fixed: LinkedList.removeElements would break the implementation if the list was almost empty and the middle element was removed. +- Fixed: LinkedHashSet.addAndMoveToFirst wouldn't move elements to the first place. +- Fixed: ArrayList/LinkedList extractElements crashing when 0 or less elements are desired. +- Fixed: TreeMap pollFirst/LastKey should return the defaultMin/max value instead of a Empty value. +- Fixed: TreeMap keySet implementation was missing the class type implementations to pass keySet tests. +- Fixed: TreeMap.SubMap Iterator (primitive Keys) was crashing because a Null was set on to a primitive. + + ### Version 0.6.1 - Fixed: FIFO queue crashing when the last index is before the first index when peek is called. - Fixed: FIFO queue only clears the array if it was in use. diff --git a/README.md b/README.md index 4316114..915e329 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ repositories { } } dependencies { - implementation 'com.github.Speiger:Primitive-Collections:0.6.1' + implementation 'com.github.Speiger:Primitive-Collections:0.6.2' } ``` Using Custom Gradle: @@ -53,7 +53,7 @@ repositories { } } dependencies { - implementation 'de.speiger:Primitive-Collections:0.6.1' + implementation 'de.speiger:Primitive-Collections:0.6.2' } ``` @@ -63,6 +63,7 @@ dependencies { | Version | Jar | Sources | Java Doc | |--------- |------------------------------------------------------------------------------------------------------------------------------ |-------------------------------------------------------------------------------------------------------------------------------------- |-------------------------------------------------------------------------------------------------------------------------------------- | +| 0.6.2 | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.6.2/Primitive-Collections-0.6.2.jar) | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.6.2/Primitive-Collections-0.6.2-sources.jar) | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.6.2/Primitive-Collections-0.6.2-javadoc.jar) | | 0.6.1 | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.6.1/Primitive-Collections-0.6.1.jar) | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.6.1/Primitive-Collections-0.6.1-sources.jar) | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.6.1/Primitive-Collections-0.6.1-javadoc.jar) | | 0.6.0 | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.6.0/Primitive-Collections-0.6.0.jar) | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.6.0/Primitive-Collections-0.6.0-sources.jar) | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.6.0/Primitive-Collections-0.6.0-javadoc.jar) | | 0.5.3 | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.5.3/Primitive-Collections-0.5.3.jar) | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.5.3/Primitive-Collections-0.5.3-sources.jar) | [Download](https://maven.speiger.com/repository/main/de/speiger/Primitive-Collections/0.5.3/Primitive-Collections-0.5.3-javadoc.jar) | diff --git a/build.gradle b/build.gradle index ea836c7..9ff3dc2 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,5 @@ plugins { id 'java-library' - id 'jacoco' } tasks.withType(JavaCompile) { @@ -19,7 +18,7 @@ repositories { } archivesBaseName = 'Primitive Collections' -version = '0.6.1.18-SNAPSHOT'; +version = '0.6.2'; sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaVersion.current(); @@ -99,12 +98,6 @@ test { useJUnit() } -jacocoTestReport { - reports { - xml.enabled true - } -} - publishing { Properties props = new Properties() if(file("$buildDir/credentials.properties").exists()) {