Skip to content

Commit 2ff1e26

Browse files
committed
Add Helper that is always true and returns no data
1 parent 6d369a8 commit 2ff1e26

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright 2021 - 2022 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+
package org.springframework.sbm.boot.upgrade_27_30.report.helper;
17+
18+
import org.springframework.sbm.boot.upgrade_27_30.report.SpringBootUpgradeReportSection;
19+
import org.springframework.sbm.boot.upgrade_27_30.report.SpringBootUpgradeReportSectionHelper;
20+
import org.springframework.sbm.engine.context.ProjectContext;
21+
22+
import java.util.Map;
23+
24+
/**
25+
* @author Fabian Krüger
26+
*/
27+
public class DoNothingAlwaysTrueHelper extends SpringBootUpgradeReportSectionHelper {
28+
@Override
29+
public boolean evaluate(ProjectContext context) {
30+
return true;
31+
}
32+
33+
@Override
34+
public Map getData() {
35+
return Map.of();
36+
}
37+
}

0 commit comments

Comments
 (0)