Skip to content

Commit 3d619da

Browse files
committed
Polish
1 parent 71601c3 commit 3d619da

File tree

5 files changed

+58
-3
lines changed

5 files changed

+58
-3
lines changed

spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/SpringBootPluginExtension.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,11 @@ enum LayoutType {
304304

305305
DIR(new Layouts.Expanded()),
306306

307-
@SuppressWarnings("deprecation") MODULE(new Layouts.Module()),
307+
/**
308+
* Module Layout.
309+
* @deprecated as of 1.5 in favor of a custom {@link LayoutFactory}
310+
*/
311+
@Deprecated MODULE(new Layouts.Module()),
308312

309313
NONE(new Layouts.None());
310314

spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Layouts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public boolean isExecutable() {
158158

159159
/**
160160
* Module layout (designed to be used as a "plug-in").
161-
* @deprecated since 1.5 in favour of a custom {@link LayoutFactory}
161+
* @deprecated as of 1.5 in favor of a custom {@link LayoutFactory}
162162
*/
163163
@Deprecated
164164
public static class Module implements Layout {

spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public enum LayoutType {
348348

349349
/**
350350
* Module Layout.
351-
* @deprecated since 1.5 in favour of a custom {@link LayoutFactory}
351+
* @deprecated as of 1.5 in favor of a custom {@link LayoutFactory}
352352
*/
353353
@Deprecated MODULE(new Layouts.Module()),
354354

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright 2012-2017 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+
* http://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.env;
18+
/**
19+
* @author pwebb
20+
*/
21+
public interface DunnoEnumerablePropertySource {
22+
23+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright 2012-2017 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+
* http://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.env;
18+
19+
/**
20+
* @author pwebb
21+
*/
22+
public interface DunnoPropertySource {
23+
24+
boolean containsProperty(String name);
25+
26+
Object getProperty(String name);
27+
28+
}

0 commit comments

Comments
 (0)