diff --git a/src/core/lombok/core/AST.java b/src/core/lombok/core/AST.java
index 07d6ec6c..7e71b248 100644
--- a/src/core/lombok/core/AST.java
+++ b/src/core/lombok/core/AST.java
@@ -147,7 +147,7 @@ public abstract class AST, L extends LombokNode,
return nodeMap.get(node);
}
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({"unchecked", "rawtypes"})
L replaceNewWithExistingOld(Map oldNodes, L newNode) {
L oldNode = oldNodes.get(newNode.get());
L targetNode = oldNode == null ? newNode : oldNode;
@@ -317,7 +317,7 @@ public abstract class AST, L extends LombokNode,
*
* @throws IllegalAccessException This exception won't happen, but we allow you to throw it so you can avoid having to catch it.
*/
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({"rawtypes", "unchecked"})
protected void setElementInASTCollection(Field field, Object fieldRef, List> chain, Collection> collection, int idx, N newN) throws IllegalAccessException {
if (collection instanceof List>) {
((List)collection).set(idx, newN);
diff --git a/src/core/lombok/core/LombokNode.java b/src/core/lombok/core/LombokNode.java
index 95c5a0cb..c58eadf3 100644
--- a/src/core/lombok/core/LombokNode.java
+++ b/src/core/lombok/core/LombokNode.java
@@ -124,7 +124,7 @@ public abstract class LombokNode, L extends LombokNode, L extends LombokNode handler : SpiLoadUtil.findServices(EclipseAnnotationHandler.class, EclipseAnnotationHandler.class.getClassLoader())) {
try {
diff --git a/src/core/lombok/javac/HandlerLibrary.java b/src/core/lombok/javac/HandlerLibrary.java
index 76fbb8ab..bbbdacd0 100644
--- a/src/core/lombok/javac/HandlerLibrary.java
+++ b/src/core/lombok/javac/HandlerLibrary.java
@@ -94,7 +94,7 @@ public class HandlerLibrary {
}
/** Uses SPI Discovery to find implementations of {@link JavacAnnotationHandler}. */
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({"rawtypes", "unchecked"})
private static void loadAnnotationHandlers(HandlerLibrary lib) throws IOException {
//No, that seemingly superfluous reference to JavacAnnotationHandler's classloader is not in fact superfluous!
for (JavacAnnotationHandler handler : SpiLoadUtil.findServices(JavacAnnotationHandler.class, JavacAnnotationHandler.class.getClassLoader())) {