-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Removed the Maven plugin and code generator. * The code generator was causing a "split package" issue because code was always being generated into the same package. * This caused a “split package” error since only one module is allowed to export a package. 2. Removed the use of native binaries. Colored DIFFs are still supported, but Windows requires the use of Windows Terminal (free download in Windows 10, built-in feature in Windows 11). 3. Improved performance by reducing memory usage and the frequency of GC runs. 4. Renamed `validateThat()` to `checkIf()`. 5. Renamed `assertThat()` to `assumeThat()`. 6. Added support for the built-in `assert` mechanism. - Asserts can be used with any type of validator, but are typically used with `assumeThat().orElseThrow()` and `checkIf().orElseThrow()`. 7. Use consistent parameter ordering across the entire API: `(value, name)` - Adding contextual information now looks like this: `requireThat().context(value, name)` 8. Added `Validator.apply(Consumer)` to nest validations, and `Validator.and(Validator)` to combine validation results. 9. Added support for primitive types to avoid boxing when possible. 10. Dropped the `isOneOf()` and `isNotOneOf()` functionality yet again. I haven't figured out a good design for this yet. 11. Added `ObjectValidator.isX()` methods to downcast to known types. * Bugfixes: * `StringValidator/Verifier.asShort()`, `asInteger()` and `asLong()` were not handling the case where a string could not be converted to a number. * Validators were only returning the first failure.
- Loading branch information
Showing
449 changed files
with
41,338 additions
and
28,617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
20 changes: 10 additions & 10 deletions
20
annotations/src/main/java/module-info.java → annotation/src/main/java/module-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
/* | ||
* Copyright 2019 Gili Tzabari. | ||
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
/** | ||
* Annotations used by the library. | ||
*/ | ||
module com.github.cowwoc.requirements.annotation | ||
{ | ||
exports com.github.cowwoc.requirements.annotation; | ||
/* | ||
* Copyright 2019 Gili Tzabari. | ||
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
/** | ||
* Annotations used by the library. | ||
*/ | ||
module com.github.cowwoc.requirements.annotation | ||
{ | ||
exports com.github.cowwoc.requirements.annotation; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.github.cowwoc.requirements</groupId> | ||
<artifactId>benchmark</artifactId> | ||
<version>9.0.0-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>benchmark.assertj</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.assertj</groupId> | ||
<artifactId>assertj-core</artifactId> | ||
<version>3.25.3</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
Oops, something went wrong.