Skip to content

Commit 9cd3034

Browse files
author
Pete West
committed
Added example of a cyclical structure
1 parent 5537d4f commit 9cd3034

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.diffblue.javatest;
2+
3+
public class CyclicalStructure {
4+
public CyclicalStructure createCyclicalStructure() {
5+
CyclicalStructure object = new CyclicalStructure();
6+
object.contents = object;
7+
return object;
8+
}
9+
10+
public CyclicalStructure contents;
11+
}

0 commit comments

Comments
 (0)