aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/core
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-10-18 17:37:03 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-10-18 17:37:03 +0200
commit4da08ce3ccdd94f48856bd77b3dff50a77c150b1 (patch)
tree20f61c2a5eb73a0fa6cf47db744bb932c1eff28e /src/lombok/core
parentbd3966af0e5d2ce948bf22dcb99227e0df5c6f13 (diff)
downloadlombok-4da08ce3ccdd94f48856bd77b3dff50a77c150b1.tar.gz
lombok-4da08ce3ccdd94f48856bd77b3dff50a77c150b1.tar.bz2
lombok-4da08ce3ccdd94f48856bd77b3dff50a77c150b1.zip
Removed some warnings.
Diffstat (limited to 'src/lombok/core')
-rw-r--r--src/lombok/core/AST.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lombok/core/AST.java b/src/lombok/core/AST.java
index b1b5f3be..6d786d1e 100644
--- a/src/lombok/core/AST.java
+++ b/src/lombok/core/AST.java
@@ -286,7 +286,15 @@ public abstract class AST<A extends AST<A, L, N>, L extends LombokNode<A, L, N>,
return false;
}
- /** Override if your AST collection does not support the set method. Javac's for example, does not. */
+ /**
+ * Override if your AST collection does not support the set method. Javac's for example, does not.
+ *
+ * @param field The field that contains the array or list of AST nodes.
+ * @param fieldRef The object that you can supply to the field's {@code get} method.
+ * @param chain If the collection is immutable, you need to update the pointer to the collection in each element in the chain.
+ *
+ * @throws IllegalAccessException This exception won't happen, but we allow you to throw it so you can avoid having to catch it.
+ */
@SuppressWarnings("unchecked")
protected void setElementInASTCollection(Field field, Object fieldRef, List<Collection<?>> chain, Collection<?> collection, int idx, N newN) throws IllegalAccessException {
if (collection instanceof List<?>) {