Skip to content

Commit 39a853c

Browse files
Konrado85philwebb
authored andcommitted
Fix infinite loop in FieldValues
Update `FieldValues` test object so that it doesn't cause an infinite loop if it is actually created. See gh-22040
1 parent 97af782 commit 39a853c

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/fieldvalues

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/fieldvalues/FieldValues.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public class FieldValues {
108108

109109
private Integer[] integerArray = new Integer[] { 42, 24 };
110110

111-
private FieldValues[] unknownArray = new FieldValues[] { new FieldValues() };
111+
private FieldValues[] unknownArray;
112112

113113
private Duration durationNone;
114114

0 commit comments

Comments
 (0)