mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 20:15:59 +00:00
Removed debug prints
This commit is contained in:
1 parent
e8c706a7b6
commit
a65b7320f2
1 file changed
-3
@@ -23,7 +23,6 @@ public class PatchFixes {
|
||||
}
|
||||
|
||||
public static void setIsGeneratedFlagForSimpleName(SimpleName name, Object internalNode) throws Exception {
|
||||
System.out.println("Setting isGenerated on SimpleName");
|
||||
if (internalNode instanceof org.eclipse.jdt.internal.compiler.ast.ASTNode) {
|
||||
if (internalNode.getClass().getField("$generatedBy").get(internalNode) != null) {
|
||||
name.getClass().getField("$isGenerated").set(name, true);
|
||||
@@ -32,14 +31,12 @@ public class PatchFixes {
|
||||
}
|
||||
|
||||
public static SimpleName[] removeGeneratedSimpleNames(SimpleName[] in) throws Exception {
|
||||
System.out.print("Removing is generated...");
|
||||
Field f = SimpleName.class.getField("$isGenerated");
|
||||
|
||||
int count = 0;
|
||||
for (int i = 0; i < in.length; i++) {
|
||||
if ( in[i] == null || !((Boolean)f.get(in[i])).booleanValue() ) count++;
|
||||
}
|
||||
System.out.println("" + (in.length - count));
|
||||
if (count == in.length) return in;
|
||||
SimpleName[] newSimpleNames = new SimpleName[count];
|
||||
count = 0;
|
||||
|
||||
Reference in new issue
Block a user