Skip to content

Commit bf04bab

Browse files
committed
Merge pull request #22040 from Konrado85
* pr/22040: Polish 'Fix infinite loop in FieldValues' Fix infinite loop in FieldValues Closes gh-22040
2 parents 97af782 + 3b3a49d commit bf04bab

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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 UnknownElementType[] unknownArray = new UnknownElementType[] { new UnknownElementType() };
112112

113113
private Duration durationNone;
114114

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright 2012-2020 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.boot.configurationsample.fieldvalues;
18+
19+
/**
20+
* Type used to check unknown array element types.
21+
*
22+
* @author Phillip Webb
23+
*/
24+
public class UnknownElementType {
25+
26+
}

0 commit comments

Comments
 (0)