Skip to content

Commit

Permalink
! update after release v0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Apr 11, 2024
1 parent d9c0f77 commit f4c5e12
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,20 +362,20 @@ For `Maven` projects:
<dependency>
<groupId>io.foldright</groupId>
<artifactId>inspectable-wrappers</artifactId>
<version>0.5.3</version>
<version>0.5.4</version>
</dependency>
```

For `Gradle` projects:

```groovy
// Gradle Kotlin DSL
implementation("io.foldright:inspectable-wrappers:0.5.3")
implementation("io.foldright:inspectable-wrappers:0.5.4")
```

```groovy
// Gradle Groovy DSL
implementation 'io.foldright:inspectable-wrappers:0.5.3'
implementation 'io.foldright:inspectable-wrappers:0.5.4'
```

`inspectable-wrappers` has published to maven central, find the latest version at [central.sonatype.com](https://central.sonatype.com/artifact/io.foldright/inspectable-wrappers/0.3.0/versions).
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ public static <W> void verifyWrapperChainContracts(final W wrapper) {
* or the adaptee of {@link WrapperAdapter} is an instance of {@link Wrapper}
* or CYCLIC wrapper chain
*/
public static <W> void verifyWrapperChainContracts(final W wrapper, Class<W> bizInterface) {
public static <W> void verifyWrapperChainContracts(final W wrapper, final Class<W> bizInterface) {
requireNonNull(wrapper, "wrapper is null");
requireNonNull(bizInterface, "bizInterface is null");
forEachOnWrapperChain(wrapper, w -> {
if (!isInstanceOf(w, bizInterface)) {
throw new IllegalStateException("the instance(" + w.getClass().getName() +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ private static <T> void checkTypeRequirements(
if (tagInterfaces != null) for (int i = 0; i < tagInterfaces.length; i++) {
Class<?> tag = tagInterfaces[i];
if (!tag.isInterface()) {
throw new IllegalArgumentException("tagInterfaces[" + (i + 1) + "]" +
"(" + tag.getName() + ") is not an interface");
throw new IllegalArgumentException("tagInterfaces[" + (i + 1) +
"](" + tag.getName() + ") is not an interface");
}
if (tag.getMethods().length > 0) {
throw new IllegalArgumentException("tagInterfaces[" + (i + 1) + "]" +
"(" + tag.getName() + ") is not a tag interface");
throw new IllegalArgumentException("tagInterfaces[" + (i + 1) +
"](" + tag.getName() + ") is not a tag interface");
}
}
}
Expand Down

0 comments on commit f4c5e12

Please sign in to comment.