Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2017-10-03 07:01:15 +0000
committerJay Arthanareeswaran2017-10-03 15:28:48 +0000
commit5b9d3bfdf448b9f84d3d3df39faad391b1a33a8a (patch)
tree7b9fa79cc8853f4ceae5db523fe94e48cbc062cb /org.eclipse.jdt.compiler.apt
parente8be8e68e371c3b95ffeea9b0c58eeb8b130af7d (diff)
downloadeclipse.jdt.core-5b9d3bfdf448b9f84d3d3df39faad391b1a33a8a.tar.gz
eclipse.jdt.core-5b9d3bfdf448b9f84d3d3df39faad391b1a33a8a.tar.xz
eclipse.jdt.core-5b9d3bfdf448b9f84d3d3df39faad391b1a33a8a.zip
Bug 525432: Fix compile warnings in official build
Change-Id: Ic6c20302a0cd61f9398a8229c9e11f41d18602e2 Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
Diffstat (limited to 'org.eclipse.jdt.compiler.apt')
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/AnnotationMemberValue.java14
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/AnnotationValueImpl.java5
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementImpl.java3
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ModuleElementImpl.java3
4 files changed, 9 insertions, 16 deletions
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/AnnotationMemberValue.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/AnnotationMemberValue.java
index 9a90b3357b..00de87e46d 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/AnnotationMemberValue.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/AnnotationMemberValue.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Vladimir Piskarev and others.
+ * Copyright (c) 2009, 2017 Vladimir Piskarev and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,11 +11,7 @@
package org.eclipse.jdt.internal.compiler.apt.model;
import org.eclipse.jdt.internal.compiler.apt.dispatch.BaseProcessingEnvImpl;
-import org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding;
-import org.eclipse.jdt.internal.compiler.lookup.ElementValuePair;
-import org.eclipse.jdt.internal.compiler.lookup.FieldBinding;
import org.eclipse.jdt.internal.compiler.lookup.MethodBinding;
-import org.eclipse.jdt.internal.compiler.lookup.TypeBinding;
public class AnnotationMemberValue extends AnnotationValueImpl {
@@ -24,14 +20,14 @@ public class AnnotationMemberValue extends AnnotationValueImpl {
/**
* @param value
* The JDT representation of a compile-time constant. See
- * {@link ElementValuePair#getValue()} for possible object types:
+ * {@link org.eclipse.jdt.internal.compiler.lookup.ElementValuePair#getValue()} for possible object types:
* <ul>
* <li>{@link org.eclipse.jdt.internal.compiler.impl.Constant} for member
* of primitive type or String</li>
- * <li>{@link TypeBinding} for a member value of type
+ * <li>{@link org.eclipse.jdt.internal.compiler.lookup.TypeBinding} for a member value of type
* {@link java.lang.Class}</li>
- * <li>{@link FieldBinding} for an enum constant</li>
- * <li>{@link AnnotationBinding} for an annotation instance</li>
+ * <li>{@link org.eclipse.jdt.internal.compiler.lookup.FieldBinding} for an enum constant</li>
+ * <li>{@link org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding} for an annotation instance</li>
* <li><code>Object[]</code> for a member value of array type, where the
* array entries are one of the above</li>
* </ul>
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/AnnotationValueImpl.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/AnnotationValueImpl.java
index 4a2831a6d1..3d7352b193 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/AnnotationValueImpl.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/AnnotationValueImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2015 IBM Corporation and others.
+ * Copyright (c) 2005, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -30,7 +30,6 @@ import org.eclipse.jdt.internal.compiler.impl.LongConstant;
import org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding;
import org.eclipse.jdt.internal.compiler.lookup.ArrayBinding;
import org.eclipse.jdt.internal.compiler.lookup.BaseTypeBinding;
-import org.eclipse.jdt.internal.compiler.lookup.ElementValuePair;
import org.eclipse.jdt.internal.compiler.lookup.FieldBinding;
import org.eclipse.jdt.internal.compiler.lookup.TypeBinding;
import org.eclipse.jdt.internal.compiler.lookup.TypeIds;
@@ -66,7 +65,7 @@ public class AnnotationValueImpl implements AnnotationValue, TypeIds {
/**
* @param value
* The JDT representation of a compile-time constant. See
- * {@link ElementValuePair#getValue()} for possible object types:
+ * {@link org.eclipse.jdt.internal.compiler.lookup.ElementValuePair#getValue()} for possible object types:
* <ul>
* <li>{@link org.eclipse.jdt.internal.compiler.impl.Constant} for member
* of primitive type or String</li>
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementImpl.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementImpl.java
index b2e7c4c40a..99a7c6786a 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementImpl.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ElementImpl.java
@@ -23,7 +23,6 @@ import javax.lang.model.element.Modifier;
import javax.lang.model.element.Name;
import javax.lang.model.element.PackageElement;
import javax.lang.model.type.TypeMirror;
-import javax.lang.model.util.Elements;
import org.eclipse.jdt.internal.compiler.apt.dispatch.BaseProcessingEnvImpl;
import org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding;
@@ -146,7 +145,7 @@ public abstract class ElementImpl
/**
* Subclassed by VariableElementImpl, TypeElementImpl, and ExecutableElementImpl.
* This base implementation suffices for other types.
- * @see Elements#hides
+ * @see javax.lang.model.util.Elements#hides
* @return true if this element hides {@code hidden}
*/
public boolean hides(Element hidden)
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ModuleElementImpl.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ModuleElementImpl.java
index fea5484b32..de3e371739 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ModuleElementImpl.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/model/ModuleElementImpl.java
@@ -31,7 +31,6 @@ import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
import org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding;
import org.eclipse.jdt.internal.compiler.lookup.ModuleBinding;
import org.eclipse.jdt.internal.compiler.lookup.PackageBinding;
-import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding;
import org.eclipse.jdt.internal.compiler.lookup.SplitPackageBinding;
import org.eclipse.jdt.internal.compiler.lookup.TypeBinding;
@@ -43,7 +42,7 @@ public class ModuleElementImpl extends ElementImpl implements ModuleElement {
/**
* In general, clients should call
- * {@link Factory#newDeclaredType(ReferenceBinding)} or
+ * {@link Factory#newDeclaredType(org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding)} or
* {@link Factory#newElement(org.eclipse.jdt.internal.compiler.lookup.Binding)}
* to create new instances.
*/

Back to the top