From 4da08ce3ccdd94f48856bd77b3dff50a77c150b1 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 18 Oct 2009 17:37:03 +0200 Subject: Removed some warnings. --- src/lombok/core/AST.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/lombok/core') 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, L extends LombokNode, 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> chain, Collection collection, int idx, N newN) throws IllegalAccessException { if (collection instanceof List) { -- cgit