aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-07-16 02:20:17 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-07-16 02:20:17 +0200
commitbc8d7d131ea0680c2d2e844b2150d4a44062cf4b (patch)
tree7e0a1fa94c8cfc8071b40223c277cdc2ba6b8b88 /src/core
parentd5ba04ca59f9e36ff1606d3520f6b90834da3cc9 (diff)
downloadlombok-bc8d7d131ea0680c2d2e844b2150d4a44062cf4b.tar.gz
lombok-bc8d7d131ea0680c2d2e844b2150d4a44062cf4b.tar.bz2
lombok-bc8d7d131ea0680c2d2e844b2150d4a44062cf4b.zip
Updated to helios. A few new warnings popped up; handled those.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lombok/core/AST.java4
-rw-r--r--src/core/lombok/core/LombokNode.java4
-rw-r--r--src/core/lombok/eclipse/HandlerLibrary.java3
-rw-r--r--src/core/lombok/javac/HandlerLibrary.java2
4 files changed, 7 insertions, 6 deletions
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<A extends AST<A, L, N>, L extends LombokNode<A, L, N>,
return nodeMap.get(node);
}
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({"unchecked", "rawtypes"})
L replaceNewWithExistingOld(Map<N, L> oldNodes, L newNode) {
L oldNode = oldNodes.get(newNode.get());
L targetNode = oldNode == null ? newNode : oldNode;
@@ -317,7 +317,7 @@ public abstract class AST<A extends AST<A, L, N>, L extends LombokNode<A, L, N>,
*
* @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<Collection<?>> 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<A extends AST<A, L, N>, L extends LombokNode<A,
*
* Also affects the underlying (Eclipse/javac) AST.
*/
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({"rawtypes", "unchecked"})
public L replaceWith(N newN, Kind newNodeKind) {
ast.setChanged();
L newNode = ast.buildTree(newN, newNodeKind);
@@ -228,7 +228,7 @@ public abstract class LombokNode<A extends AST<A, L, N>, L extends LombokNode<A,
*
* Does not change the underlying (javac/Eclipse) AST, only the wrapped view.
*/
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({"rawtypes", "unchecked"})
public L add(N newChild, Kind newChildKind) {
ast.setChanged();
L n = ast.buildTree(newChild, newChildKind);
diff --git a/src/core/lombok/eclipse/HandlerLibrary.java b/src/core/lombok/eclipse/HandlerLibrary.java
index 1be01459..df4681f0 100644
--- a/src/core/lombok/eclipse/HandlerLibrary.java
+++ b/src/core/lombok/eclipse/HandlerLibrary.java
@@ -94,7 +94,8 @@ public class HandlerLibrary {
}
/** Uses SPI Discovery to find implementations of {@link EclipseAnnotationHandler}. */
- @SuppressWarnings("unchecked") private static void loadAnnotationHandlers(HandlerLibrary lib) {
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ private static void loadAnnotationHandlers(HandlerLibrary lib) {
try {
for (EclipseAnnotationHandler<?> 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())) {