Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
updated manual test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mplushnikov committed Dec 1, 2019
1 parent cbed337 commit a7941dc
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 14 deletions.
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 test-manual/src/main/java/de/plushnikov/bug/issue634/Node.java
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;
}
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;
}

0 comments on commit a7941dc

Please sign in to comment.