mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 12:15:00 +00:00
Merge pull request #41 from serverperformance/master
#591, #627: Fix for refactoring when @Getter(lazy=true)
This commit is contained in:
commit
69d82faa74
1 file changed
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2009-2013 The Project Lombok Authors.
|
||||
* Copyright (C) 2009-2014 The Project Lombok Authors.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -225,7 +225,7 @@ public class HandleGetter extends JavacAnnotationHandler<Getter> {
|
||||
|
||||
List<JCStatement> statements;
|
||||
JCTree toClearOfMarkers = null;
|
||||
if (lazy) {
|
||||
if (lazy && !inNetbeansEditor(field)) {
|
||||
toClearOfMarkers = fieldNode.init;
|
||||
statements = createLazyGetterBody(treeMaker, field, source);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user