This repository has been archived by the owner on Nov 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbed337
commit a7941dc
Showing
3 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
15 changes: 10 additions & 5 deletions
15
test-manual/src/main/java/de/plushnikov/bug/issue634/LinkedListImpl.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,10 +1,15 @@ | ||
package de.plushnikov.bug.issue634; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public class LinkedListImpl { | ||
|
||
private Node first; | ||
private Node last; | ||
public void add(Object o) { | ||
Node node = new Node(o, first); | ||
} | ||
private Node first; | ||
private Node.NodeBuilder last; | ||
|
||
public void add(Node o1) { | ||
Node node = new Node(o1, last); | ||
} | ||
|
||
} |
19 changes: 10 additions & 9 deletions
19
test-manual/src/main/java/de/plushnikov/bug/issue634/Node.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,16 +1,17 @@ | ||
package de.plushnikov.bug.issue634; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.Setter; | ||
import lombok.*; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@RequiredArgsConstructor | ||
public class Node { | ||
@Setter | ||
private Node next; | ||
@AllArgsConstructor | ||
@Builder | ||
class Node { | ||
|
||
private final Object element; | ||
@Setter | ||
@NonNull | ||
private NodeBuilder next; | ||
@NonNull | ||
@Getter | ||
private final Node element; | ||
} |
23 changes: 23 additions & 0 deletions
23
test-manual/src/main/java/de/plushnikov/bug/issue634/SomeBoxClass.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package de.plushnikov.bug.issue634; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NonNull; | ||
import lombok.Setter; | ||
|
||
@Builder | ||
@Getter | ||
@Setter | ||
public class SomeBoxClass { | ||
|
||
private Node.NodeBuilder intField; | ||
|
||
@NonNull | ||
private String someString; | ||
|
||
@NonNull | ||
private Node node; | ||
|
||
@NonNull | ||
private LinkedListImpl someImpl; | ||
} |