diff options
author | Lakshmi Shanmugam | 2013-12-11 12:23:11 +0000 |
---|---|---|
committer | Lakshmi Shanmugam | 2013-12-11 12:23:11 +0000 |
commit | 157cd3631f69e84d7e46bab5c9d374dfb9722c13 (patch) | |
tree | d32a241ff93ff409b9080efbdfb1d4224b3c0c2b /bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse | |
parent | 6a8e6a9f6f6100d8069f881a37585d1aef908728 (diff) | |
download | eclipse.platform.swt-157cd3631f69e84d7e46bab5c9d374dfb9722c13.tar.gz eclipse.platform.swt-157cd3631f69e84d7e46bab5c9d374dfb9722c13.tar.xz eclipse.platform.swt-157cd3631f69e84d7e46bab5c9d374dfb9722c13.zip |
Bug 423721 - SWT workspace is full of SWT tools errors (Fix SWT tools)
Diffstat (limited to 'bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse')
2 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTClass.java b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTClass.java index 9e6630e284..301027ddcf 100644 --- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTClass.java +++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTClass.java @@ -27,7 +27,6 @@ import org.eclipse.jdt.core.dom.TypeDeclaration; import org.eclipse.jdt.core.dom.VariableDeclarationFragment; import org.eclipse.swt.tools.internal.ASTType.TypeResolver; -@SuppressWarnings("deprecation") public class ASTClass extends ASTItem implements JNIClass { String sourcePath; MetaData metaData; @@ -78,7 +77,7 @@ public ASTClass(String sourcePath, MetaData metaData) { this.metaData = metaData; String source = JNIGenerator.loadFile(sourcePath); - ASTParser parser = ASTParser.newParser(AST.JLS3); + ASTParser parser = ASTParser.newParser(AST.JLS4); parser.setSource(source.toCharArray()); CompilationUnit unit = (CompilationUnit)parser.createAST(null); TypeDeclaration type = (TypeDeclaration)unit.types().get(0); diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ReflectClass.java b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ReflectClass.java index 4b76d5006e..baca28e5d7 100644 --- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ReflectClass.java +++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ReflectClass.java @@ -35,14 +35,13 @@ public ReflectClass(Class<?> clazz, MetaData data, String sourcePath) { this.sourcePath = sourcePath; } -@SuppressWarnings("deprecation") void checkMembers() { if (fields != null) return; String source = null; CompilationUnit unit = null; if (JNIItem.GEN64) { source = JNIGenerator.loadFile(sourcePath); - ASTParser parser = ASTParser.newParser(AST.JLS3); + ASTParser parser = ASTParser.newParser(AST.JLS4); parser.setSource(source.toCharArray()); unit = (CompilationUnit)parser.createAST(null); } |