Skip to content

Commit

Permalink
removing logging code
Browse files Browse the repository at this point in the history
  • Loading branch information
vicente-romero-oracle committed Jan 4, 2024
1 parent 9738b42 commit db5a9be
Showing 1 changed file with 0 additions and 28 deletions.
Expand Up @@ -1331,10 +1331,6 @@ public ClassSymbol(long flags, Name name, Symbol owner) {
}

public void addPermittedSubclass(ClassSymbol csym, int pos) {
if (name.toString().equals("GradleExecGraphNodeExecutionInfo") ||
fullname.toString().endsWith("GradleExecGraph.Execution")) {
System.err.println("[javac-log]: adding " + csym.name + " to " + fullname);
}
if (isPermittedExplicit) {
// in this case just add the permitted subclasses clause is explicit
permitted.add(new PermittedClassWithPos(csym, pos));
Expand All @@ -1347,17 +1343,6 @@ public void addPermittedSubclass(ClassSymbol csym, int pos) {
}
permitted.add(index, element);
}
if (name.toString().equals("GradleExecGraphNodeExecutionInfo") ||
fullname.toString().endsWith("GradleExecGraph.Execution")) {
List<String> names = permitted.stream().map(s -> s.permittedClass.name.toString()).collect(List.collector());
String allNames = "";
for (String aName : names) {
allNames += aName + ", ";
}
System.err.println("[javac-log]: permitted list is now: " + allNames);
System.err.println("[javac-log]: Stacktrace:");
Thread.dumpStack();
}
}

public boolean isPermittedSubclass(Symbol csym) {
Expand All @@ -1370,23 +1355,10 @@ public boolean isPermittedSubclass(Symbol csym) {
}

public void clearPermittedSubclasses() {
if (name.toString().equals("GradleExecGraphNodeExecutionInfo") ||
fullname.toString().endsWith("GradleExecGraph.Execution")) {
System.err.println("[javac-log]: clearing the permitted subclasses list of " + fullname);
}
permitted.clear();
}

public void setPermittedSubclasses(List<Symbol> permittedSubs) {
if (name.toString().equals("GradleExecGraphNodeExecutionInfo") ||
fullname.toString().endsWith("GradleExecGraph.Execution")) {
List<String> names = permittedSubs.stream().map(s -> s.name.toString()).collect(List.collector());
String allNames = "";
for (String aName : names) {
allNames += aName + ", ";
}
System.err.println("[javac-log]: setting permitted list to " + fullname + " as " + allNames);
}
permitted.clear();
for (Symbol csym : permittedSubs) {
permitted.add(new PermittedClassWithPos(csym, 0));
Expand Down

0 comments on commit db5a9be

Please sign in to comment.