Skip to content

Commit 68af0bb

Browse files
committed
Move runtime hints from sample to core
- Relates #490
1 parent 146f916 commit 68af0bb

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.shell.samples.config;
16+
package org.springframework.shell;
1717

1818
import java.util.List;
1919
import java.util.stream.Collectors;
@@ -28,7 +28,7 @@
2828
import org.springframework.aot.hint.TypeHint;
2929
import org.springframework.aot.hint.TypeReference;
3030

31-
public class SamplesRuntimeHints implements RuntimeHintsRegistrar {
31+
public class JnaRuntimeHints implements RuntimeHintsRegistrar {
3232

3333
@Override
3434
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
org.springframework.aot.hint.RuntimeHintsRegistrar=\
2-
org.springframework.shell.CoreResourcesRuntimeHints
2+
org.springframework.shell.CoreResourcesRuntimeHints,\
3+
org.springframework.shell.JnaRuntimeHints
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.springframework.shell.samples.config;
1+
package org.springframework.shell;
22

33
import java.util.Arrays;
44
import java.util.Set;
@@ -14,7 +14,7 @@
1414

1515
import static org.assertj.core.api.Assertions.assertThat;
1616

17-
public class SamplesRuntimeHintsTests {
17+
public class JnaRuntimeHintsTests {
1818

1919
@Test
2020
void test() {
@@ -35,7 +35,7 @@ void test() {
3535

3636
private ReflectionHints registerHints() {
3737
RuntimeHints hints = new RuntimeHints();
38-
new SamplesRuntimeHints().registerHints(hints, getClass().getClassLoader());
38+
new JnaRuntimeHints().registerHints(hints, getClass().getClassLoader());
3939
return hints.reflection();
4040
}
4141

spring-shell-samples/src/main/resources/META-INF/spring/aot.factories

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)