mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 18:15:55 +00:00
Little cleanup
This commit is contained in:
1 parent
2f202525af
commit
d4ae32fd79
1 file changed
+2
-3
@@ -163,7 +163,7 @@ public class PatchFixes {
|
||||
} else return;
|
||||
|
||||
try {
|
||||
LocalDeclaration.class.getDeclaredField("$initCopy").set(variableDecl, init);
|
||||
if (initCopyField != null) initCopyField.set(variableDecl, init);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace(System.out);
|
||||
// In ecj mode this field isn't there and we don't need the copy anyway, so, we ignore the exception.
|
||||
@@ -176,7 +176,7 @@ public class PatchFixes {
|
||||
try {
|
||||
initCopyField = LocalDeclaration.class.getDeclaredField("$initCopy");
|
||||
} catch (Throwable t) {
|
||||
//ignore - no $generatedBy exists when running in ecj.
|
||||
//ignore - no $initCopy exists when running in ecj.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,7 +191,6 @@ public class PatchFixes {
|
||||
if (init == null && initCopyField != null) {
|
||||
try {
|
||||
init = (Expression) initCopyField.get(local);
|
||||
System.out.println("copy = " + init);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user