Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 618555c

Browse files
committed
Polish - reducing verbosity
1 parent 971785a commit 618555c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

spring-graalvm-native-feature/src/main/java/org/springframework/graalvm/support/ResourcesHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ private boolean processType(Type type, Set<String> visited, int depth, ReachedBy
12881288
*/
12891289
private void configureMethodAccess(Type type, RequestedConfigurationManager accessRequestor,
12901290
String[][] validMethodsSubset) {
1291-
SpringFeature.log("computing full method list for "+type.getDottedName());
1291+
SpringFeature.log("computing full reflective method access list for "+type.getDottedName());
12921292
// boolean onlyPublicMethods = (accessRequestor.getTypeAccessRequestedFor(type.getDottedName())&AccessBits.PUBLIC_METHODS)!=0;
12931293
boolean onlyNonPrivateMethods = true;
12941294
List<String> toMatchAgainst = new ArrayList<>();
@@ -1299,7 +1299,6 @@ private void configureMethodAccess(Type type, RequestedConfigurationManager acce
12991299
}
13001300
List<String[]> allRelevantMethods = new ArrayList<>();
13011301
for (Method method : type.getMethods()) {
1302-
System.out.println("Checking "+method);
13031302
if (!method.getName().equals("<init>") && !method.getName().equals("<clinit>")) { // ignore constructors
13041303
if (onlyNonPrivateMethods && method.isPrivate()) {
13051304
SpringFeature.log("checking '"+method.getName()+method.getDesc()+"' -> private - skipping");

spring-graalvm-native-feature/src/main/java/org/springframework/graalvm/type/Type.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 the original author or authors.
2+
* Copyright 2019-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.
@@ -1905,6 +1905,7 @@ public static int inferAccessRequired(Type t) {
19051905
if (!isFunctionalMode()) {
19061906
return AccessBits.CLASS | AccessBits.DECLARED_METHODS | AccessBits.DECLARED_CONSTRUCTORS;
19071907
} else {
1908+
SpringFeature.log("Skipping registration of reflective access to configuration properties: "+t.getDottedName());
19081909
return AccessBits.NONE;
19091910
}
19101911
} else if (t.isCondition()) {

spring-graalvm-native-substitutions/src/main/java/org/springframework/graalvm/substitutions/FunctionalMode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.util.function.Predicate;
44

55
import org.springframework.graalvm.support.Mode;
6+
import org.springframework.graalvm.support.SpringFeature;
67

78
public class FunctionalMode implements Predicate<String> {
89

@@ -18,7 +19,6 @@ public boolean test(String type) {
1819
if (modeSet != null) {
1920
isFunctionalMode = modeSet.equalsIgnoreCase(Mode.FUNCTIONAL.name());
2021
} else {
21-
System.out.println("FM: mode not set, searching for resources...");
2222
if (exists("org.springframework.init.func.InfrastructureInitializer")
2323
|| exists("org.springframework.fu.kofu.KofuApplication")
2424
|| exists("org.springframework.fu.jafu.JafuApplication")) {

0 commit comments

Comments
 (0)