Skip to content

Commit

Permalink
! update after release v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Mar 30, 2024
1 parent 17df0f6 commit 1f00156
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,20 +297,20 @@ For `Maven` projects:
<dependency>
<groupId>io.foldright</groupId>
<artifactId>inspectable-wrappers</artifactId>
<version>0.5.0</version>
<version>0.5.1</version>
</dependency>
```

For `Gradle` projects:

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

```groovy
// Gradle Groovy DSL
implementation 'io.foldright:inspectable-wrappers:0.5.0'
implementation 'io.foldright:inspectable-wrappers:0.5.1'
```

`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).
4 changes: 2 additions & 2 deletions src/main/java/io/foldright/inspectablewrappers/Wrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* <ul>
* <li>The wrapper chain consists of wrapper itself, followed by the wrappers
* obtained by repeatedly calling {@link Wrapper#unwrap()}<br>
* <img src="https://github.com/foldright/inspectable-wrappers/assets/1063891/7beeb043-0210-4964-8108-7200ac6a7ef9"
* alt="Wrapper Chain">
* <img src="https://github.com/foldright/inspectable-wrappers/assets/1063891/c638c7d0-c529-4208-86b3-a761dfb22a13"
* width="400" alt="Wrapper Chain">
* <li>The last instance of wrapper chain is NEVER type {@link Wrapper}
* <li>Uses the static methods of {@link Inspector} to inspect the wrapper chain
* </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* <p>
* The wrapper chain contained {@code WrapperAdapter} looks like:
* <p>
* <img src="https://github.com/foldright/inspectable-wrappers/assets/1063891/07093502-2f7a-4bfd-887f-d953e8e31bc8"
* alt="Wrapper Chain contains WrapperAdapter">
* <img src="https://github.com/foldright/inspectable-wrappers/assets/1063891/31f9e604-5864-4312-b280-cc732e84df07"
* width="400" alt="Wrapper Chain contains WrapperAdapter">
*
* @param <T> the type of instances that be wrapped
* @author Jerry Lee (oldratlee at gmail dot com)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* <ul>
* <li>{@link io.foldright.inspectablewrappers.Wrapper} interface is used to be implemented
* by wrapper classes, make an <strong>inspectable wrapper chain</strong>(linked list).
* <li>{@link io.foldright.inspectablewrappers.Attachable} interface interface is used to
* <li>{@link io.foldright.inspectablewrappers.Attachable} interface is used to
* enhance the wrapper instances with the attachment storage ability
* <li>{@link io.foldright.inspectablewrappers.WrapperAdapter} interface is used to adapt
* an existed wrapper instance to type {@link io.foldright.inspectablewrappers.Wrapper} without modifying it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public static void main(String[] args) {

private static Executor buildExecutorChain() {
final Executor base = Runnable::run;
final ExistedExecutorWrapperAdapter adapter = createExistedExecutorWrapperAdapter(base);
final Executor adapter = createExistedExecutorWrapperAdapter(base);
return new ChattyExecutorWrapper(adapter);
}

private static ExistedExecutorWrapperAdapter createExistedExecutorWrapperAdapter(Executor base) {
final ExistedExecutorWrapper existed = new ExistedExecutorWrapper(base);
private static Executor createExistedExecutorWrapperAdapter(Executor base) {
final Executor existed = new ExistedExecutorWrapper(base);
final ExistedExecutorWrapperAdapter adapter = new ExistedExecutorWrapperAdapter(base, existed);
adapter.setAttachment("adapted-existed-executor-wrapper-msg", "I'm an adapter of an existed executor which have nothing to do with ~inspectable~wrappers~.");
return adapter;
Expand Down

0 comments on commit 1f00156

Please sign in to comment.