Skip to content

Commit d7f7ee3

Browse files
committed
Fail on javadoc errors and fix remaining javadoc errors
1 parent 3653286 commit d7f7ee3

File tree

56 files changed

+136
-148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+136
-148
lines changed

apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/ApiTestingEnvironment.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public void fullBuild(IProject project, String builderid) {
183183
* @return all API usage problem markers
184184
* @throws CoreException
185185
*
186-
* @see {@link IApiMarkerConstants#API_USAGE_PROBLEM_MARKER}
186+
* @see IApiMarkerConstants#API_USAGE_PROBLEM_MARKER
187187
*/
188188
protected IMarker[] getAllUsageMarkers(IResource resource) throws CoreException {
189189
if (resource == null) {
@@ -241,7 +241,7 @@ protected IMarker[] getAllJDTMarkers(IResource resource) throws CoreException {
241241
* @return all unsupported tag problem markers
242242
* @throws CoreException
243243
*
244-
* @see {@link IApiMarkerConstants#UNSUPPORTED_TAG_PROBLEM_MARKER}
244+
* @see IApiMarkerConstants#UNSUPPORTED_TAG_PROBLEM_MARKER
245245
*/
246246
protected IMarker[] getAllUnsupportedTagMarkers(IResource resource) throws CoreException {
247247
if (resource == null) {
@@ -277,7 +277,7 @@ protected IMarker[] getAllUnsupportedAnnotationMarkers(IResource resource) throw
277277
* @return all compatibility problem markers
278278
* @throws CoreException
279279
*
280-
* @see {@link IApiMarkerConstants#COMPATIBILITY_PROBLEM_MARKER}
280+
* @see IApiMarkerConstants#COMPATIBILITY_PROBLEM_MARKER
281281
*/
282282
protected IMarker[] getAllCompatibilityMarkers(IResource resource) throws CoreException {
283283
if (resource == null) {
@@ -296,7 +296,7 @@ protected IMarker[] getAllCompatibilityMarkers(IResource resource) throws CoreEx
296296
* @return all API baseline problem markers
297297
* @throws CoreException
298298
*
299-
* @see {@link IApiMarkerConstants#DEFAULT_API_BASELINE_PROBLEM_MARKER}
299+
* @see IApiMarkerConstants#DEFAULT_API_BASELINE_PROBLEM_MARKER
300300
*/
301301
protected IMarker[] getAllApiBaselineMarkers(IResource resource) throws CoreException {
302302
if (resource == null) {
@@ -315,7 +315,7 @@ protected IMarker[] getAllApiBaselineMarkers(IResource resource) throws CoreExce
315315
* @return all since tag problem markers
316316
* @throws CoreException
317317
*
318-
* @see {@link IApiMarkerConstants#SINCE_TAGS_PROBLEM_MARKER}
318+
* @see IApiMarkerConstants#SINCE_TAGS_PROBLEM_MARKER
319319
*/
320320
protected IMarker[] getAllSinceTagMarkers(IResource resource) throws CoreException {
321321
if (resource == null) {
@@ -333,7 +333,7 @@ protected IMarker[] getAllSinceTagMarkers(IResource resource) throws CoreExcepti
333333
* @return all version problem markers
334334
* @throws CoreException
335335
*
336-
* @see {@link IApiMarkerConstants#VERSION_NUMBERING_PROBLEM_MARKER}
336+
* @see IApiMarkerConstants#VERSION_NUMBERING_PROBLEM_MARKER
337337
*/
338338
protected IMarker[] getAllVersionMarkers(IResource resource) throws CoreException {
339339
if (resource == null) {
@@ -352,7 +352,7 @@ protected IMarker[] getAllVersionMarkers(IResource resource) throws CoreExceptio
352352
* @return all unused problem filter markers
353353
* @throws CoreException
354354
*
355-
* @see {@link IApiMarkerConstants#UNUSED_FILTER_PROBLEM_MARKER}
355+
* @see IApiMarkerConstants#UNUSED_FILTER_PROBLEM_MARKER
356356
*/
357357
protected IMarker[] getAllUnusedApiProblemFilterMarkers(IResource resource) throws CoreException {
358358
if (resource == null) {
@@ -456,7 +456,7 @@ public ApiProblem[] getProblems() {
456456
}
457457

458458
/**
459-
* Returns the current workspace {@link IApiProfile}
459+
* Returns the current workspace {@link IApiBaseline}
460460
*
461461
* @return the workspace baseline
462462
*/

apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/annotations/AnnotationTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ protected void setBuilderOptions() {
154154

155155
/**
156156
* Returns an array composed only of the specified number of
157-
* {@link #PROBLEM_ID}
157+
* {@link #getDefaultProblemId()}
158158
*
159-
* @return an array of {@link #PROBLEM_ID} of the specified size, or an
160-
* empty array if the specified size is < 1
159+
* @return an array of {@link #getDefaultProblemId()} of the specified size,
160+
* or an empty array if the specified size is smaller 1
161161
*/
162162
protected int[] getDefaultProblemSet(int problemcount) {
163163
if (problemcount < 1) {
@@ -183,7 +183,7 @@ protected String getTestingProjectName() {
183183

184184
/**
185185
* Deploys a build test for API Javadoc tags using the given source file,
186-
* looking for problems specified from {@link #getExpectedProblemIds()()}
186+
* looking for problems specified from {@link #getExpectedProblemIds()}
187187
*
188188
* @param incremental if an incremental build should take place
189189
* @param usedefault if the default package should be used or not

apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/tags/TagTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ protected void setBuilderOptions() {
146146

147147
/**
148148
* Returns an array composed only of the specified number of
149-
* {@link #PROBLEM_ID}
149+
* {@link #getDefaultProblemId()}
150150
*
151-
* @return an array of {@link #PROBLEM_ID} of the specified size, or an
152-
* empty array if the specified size is < 1
151+
* @return an array of {@link #getDefaultProblemId()} of the specified size,
152+
* or an empty array if the specified size is smaller 1
153153
*/
154154
protected int[] getDefaultProblemSet(int problemcount) {
155155
if (problemcount < 1) {
@@ -175,7 +175,7 @@ protected String getTestingProjectName() {
175175

176176
/**
177177
* Deploys a build test for API Javadoc tags using the given source file,
178-
* looking for problems specified from {@link #getExpectedProblemIds()()}
178+
* looking for problems specified from {@link #getExpectedProblemIds()}
179179
*
180180
* @param incremental if an incremental build should take place
181181
* @param usedefault if the default package should be used or not

apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/search/tests/TestCompositeSearchReporter.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
import org.eclipse.pde.api.tools.internal.provisional.model.IApiElement;
2020
import org.eclipse.pde.api.tools.internal.provisional.search.IApiSearchReporter;
2121
import org.eclipse.pde.api.tools.internal.provisional.search.IMetadata;
22+
import org.eclipse.pde.api.tools.internal.search.XmlSearchReporter;
2223

2324
/**
24-
* Test implementation of a search reporter that delegates to two
25-
* reporters: The {@link TestReporter} and the {@link XMLApiSearchReporter}
25+
* Test implementation of a search reporter that delegates to two reporters: The
26+
* {@link TestReporter} and the {@link XmlSearchReporter}
2627
*
2728
* <p>The {@link TestReporter} is always called first to validate we are getting the references / skipped
2829
* components that we are expecting to see</p>

apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/util/tests/SignaturesTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void testGetQualifiedMethodSignature() throws Exception {
140140
}
141141

142142
/**
143-
* Tests the {@link Signatures#getQualifiedMethodSignature(org.eclipse.pde.api.tools.internal.provisional.descriptors.IMethodDescriptor, boolean)} method
143+
* Tests the {@link Signatures#getQualifiedMethodSignature(IMethodDescriptor, boolean, boolean)} method
144144
*/
145145
@Test
146146
public void testGetQualifiedMethodSignature2() throws Exception {

apitools/org.eclipse.pde.api.tools.ui/src/org/eclipse/pde/api/tools/ui/internal/ApiToolsLabelProvider.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
public class ApiToolsLabelProvider extends BaseLabelProvider implements ILabelProvider, IFontProvider {
5353

5454
/**
55-
* Font for the default {@link IApiProfile}
55+
* Font for the default {@link IApiBaseline}
5656
*/
5757
private Font font = null;
5858

@@ -237,7 +237,7 @@ public String getText(Object element) {
237237
}
238238

239239
/**
240-
* Returns if the specified {@link IApiProfile} is the default profile or
240+
* Returns if the specified {@link IApiBaseline} is the default profile or
241241
* not
242242
*
243243
* @return if the profile is the default or not

apitools/org.eclipse.pde.api.tools.ui/src/org/eclipse/pde/api/tools/ui/internal/ApiUIPlugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public static ImageDescriptor getImageDescriptor(String key) {
150150

151151
/**
152152
* @return the id of this plugin. Value is
153-
* <code><org.eclipse.pde.api.tools.ui></code>
153+
* {@code org.eclipse.pde.api.tools.ui}
154154
*/
155155
public static String getPluginIdentifier() {
156156
return PLUGIN_ID;

apitools/org.eclipse.pde.api.tools.ui/src/org/eclipse/pde/api/tools/ui/internal/markers/CreateApiFilterOperation.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public class CreateApiFilterOperation extends Job {
6363
/**
6464
* Constructor
6565
*
66-
* @see IApiProblemFilter#getKinds()
66+
* @see IApiProblemFilter#getUnderlyingProblem()
67+
* @see IApiProblem#getKind()
68+
* @see IApiProblem#getElementKind()
6769
*/
6870
public CreateApiFilterOperation(IMarker[] markers, boolean addingcomments) {
6971
super(MarkerMessages.CreateApiFilterOperation_0);

apitools/org.eclipse.pde.api.tools.ui/src/org/eclipse/pde/api/tools/ui/internal/preferences/ApiBaselinePreferencePage.java

+8-7
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public class ApiBaselinePreferencePage extends PreferencePage implements IWorkbe
7474
public static final String ID = "org.eclipse.pde.api.tools.ui.apiprofiles.prefpage"; //$NON-NLS-1$
7575

7676
/**
77-
* Override to tell the label provider about uncommitted {@link IApiProfile}
78-
* s that might have been set to be the new default
77+
* Override to tell the label provider about uncommitted
78+
* {@link IApiBaseline}s that might have been set to be the new default
7979
*/
8080
class BaselineLabelProvider extends ApiToolsLabelProvider {
8181
@Override
@@ -206,11 +206,12 @@ public int compare(Viewer viewer, Object e1, Object e2) {
206206
}
207207

208208
/**
209-
* Returns if the {@link IApiProfile} with the given name has been removed,
209+
* Returns if the {@link IApiBaseline} with the given name has been removed,
210210
* but not yet committed back to the manager
211211
*
212-
* @param name the name of the {@link IApiProfile}
213-
* @return true if the {@link IApiProfile} has been removed from the page,
212+
* @param name
213+
* the name of the {@link IApiBaseline}
214+
* @return true if the {@link IApiBaseline} has been removed from the page,
214215
* false otherwise
215216
*/
216217
public static boolean isRemovedBaseline(String name) {
@@ -267,7 +268,7 @@ protected void doEdit(final IApiBaseline baseline) {
267268
}
268269

269270
/**
270-
* Returns if the specified {@link IApiProfile} is the default profile or
271+
* Returns if the specified {@link IApiBaseline} is the default profile or
271272
* not
272273
*
273274
* @return if the profile is the default or not
@@ -314,7 +315,7 @@ public boolean performCancel() {
314315

315316
/**
316317
* Applies the changes from the current change set to the
317-
* {@link ApiProfileManager}. When done the current change set is cleared.
318+
* {@link IApiBaselineManager}. When done the current change set is cleared.
318319
*/
319320
protected void applyChanges() {
320321
if (!dirty) {

apitools/org.eclipse.pde.api.tools.ui/src/org/eclipse/pde/api/tools/ui/internal/refactoring/FilterChange.java

-20
Original file line numberDiff line numberDiff line change
@@ -96,26 +96,6 @@ protected String getDeleteName() {
9696
return NLS.bind(RefactoringMessages.FilterChange_remove_used_filter, problem.getMessage());
9797
}
9898

99-
/**
100-
* Returns the name to use for a {@link #RENAME} change operation
101-
*
102-
* @return the name for a {@link #RENAME} change
103-
*/
104-
protected String getRenameName() {
105-
IApiProblem problem = this.filter.getUnderlyingProblem();
106-
return NLS.bind(RefactoringMessages.FilterChange_remove_used_filter, new Object[] { problem.getMessage() });
107-
}
108-
109-
/**
110-
* Returns the name to use for a {@link #MOVE} change operation
111-
*
112-
* @return the name for a {@link #MOVE} change
113-
*/
114-
protected String getMoveName() {
115-
IApiProblem problem = this.filter.getUnderlyingProblem();
116-
return NLS.bind(RefactoringMessages.FilterChange_remove_used_filter, new Object[] { problem.getMessage() });
117-
}
118-
11999
@Override
120100
public String getName() {
121101
switch (this.kind) {

apitools/org.eclipse.pde.api.tools.ui/src/org/eclipse/pde/api/tools/ui/internal/wizards/ApiBaselineWizardPage.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ public Object getParent(Object element) {
107107
}
108108

109109
/**
110-
* Operation that creates a new working copy for an {@link IApiProfile} that
111-
* is being edited
110+
* Operation that creates a new working copy for an {@link IApiBaseline}
111+
* that is being edited
112112
*/
113113
static class WorkingCopyOperation implements IRunnableWithProgress {
114114

@@ -146,8 +146,8 @@ public void run(IProgressMonitor monitor) throws InvocationTargetException, Inte
146146
}
147147

148148
/**
149-
* Returns the newly created {@link IApiProfile} working copy or
150-
* <code>null</code>
149+
* Returns the newly created {@link IApiBaseline} working copy or
150+
* {@code null}
151151
*
152152
* @return the working copy or <code>null</code>
153153
*/
@@ -231,7 +231,7 @@ protected IApiComponent[] getCurrentComponents() {
231231
/**
232232
* Creates or edits the profile and returns it
233233
*
234-
* @return a new {@link IApiProfile} or <code>null</code> if an error was
234+
* @return a new {@link IApiBaseline} or {@code null} if an error was
235235
* encountered creating the new profile
236236
*/
237237
public abstract IApiBaseline finish() throws IOException, CoreException;

apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/ApiDescriptionXmlCreator.java

-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ public void endVisitElement(IElementDescriptor element, IApiAnnotations descript
137137

138138
/**
139139
* Returns the settings as a XML {@link Document}.
140-
*
141-
* @throws CoreException if something goes wrong
142140
*/
143141
public Document getXML() {
144142
return fDoc;

apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/AbstractProblemDetector.java

-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ public boolean considerReference(IReference reference, IProgressMonitor monitor)
170170
* @param reference reference
171171
* @param javaProject java project (with reference source location)
172172
* @return problem or <code>null</code> if none
173-
* @exception CoreException if something goes wrong
174173
*/
175174
protected IApiProblem createProblem(IReference reference, IJavaProject javaProject) {
176175
IProject project = javaProject.getProject();

apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/ReferenceExtractor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ public int hashCode() {
883883
private final boolean fIncludeLocalRefs = false;
884884

885885
/**
886-
* Bit mask of {@link ReferenceModifiers} to extract.
886+
* Bit mask of {@link IReference} constants to extract.
887887
*/
888888
private int fReferenceKinds = 0;
889889

@@ -932,7 +932,7 @@ public int hashCode() {
932932
* @param type the type to extract references from
933933
* @param collector the listing of references to annotate from this pass
934934
* @param referenceKinds kinds of references to extract as defined by
935-
* {@link ReferenceModifiers}
935+
* {@link IReference}
936936
*/
937937
public ReferenceExtractor(IApiType type, Set<Reference> collector, int referenceKinds) {
938938
super(Util.LATEST_OPCODES_ASM, new ClassNode());

apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/TagValidator.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
* <br>
4949
* The logic in this class must be kept in sync with how we determine what is
5050
* visible in out completion proposal code
51-
*
52-
* @see org.eclipse.pde.api.tools.ui.internal.completion.APIToolsJavadocCompletionProposalComputer
51+
* {@code org.eclipse.pde.api.tools.ui.internal.completion.APIToolsJavadocCompletionProposalComputer}
5352
*
5453
* @since 1.0.0
5554
*/

apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/comparator/DeltaXmlVisitor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ public void endVisit(IDelta delta) {
100100
}
101101

102102
/**
103-
* Return the xml dom document this visitor generates. Use {@link #getXML()}
104-
* to get the serialized xml string.
103+
* Return the xml dom document this visitor generates. Use
104+
* {@link Util#serializeDocument(Document)} to get the serialized xml string.
105105
*
106106
* @return xml dom document
107107
*/

apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/AbstractApiTypeContainer.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void close() throws CoreException {
102102
}
103103

104104
/**
105-
* @see org.eclipse.pde.api.tools.internal.provisional.IApiTypeContainer#findTypeRoot(java.lang.String)
105+
* @see IApiTypeContainer#findTypeRoot(java.lang.String)
106106
*/
107107
@Override
108108
public IApiTypeRoot findTypeRoot(String qualifiedName) throws CoreException {
@@ -117,8 +117,7 @@ public IApiTypeRoot findTypeRoot(String qualifiedName) throws CoreException {
117117
}
118118

119119
/**
120-
* @see org.eclipse.pde.api.tools.internal.provisional.IApiTypeContainer#findTypeRoot(java.lang.String,
121-
* java.lang.String)
120+
* @see IApiTypeContainer#findTypeRoot(java.lang.String, java.lang.String)
122121
*/
123122
@Override
124123
public IApiTypeRoot findTypeRoot(String qualifiedName, String id) throws CoreException {

apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/AbstractApiTypeRoot.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public IApiType getStructure() throws CoreException {
8080
}
8181

8282
/**
83-
* @see org.eclipse.pde.api.tools.internal.provisional.IApiTypeRoot#getApiComponent()
83+
* @see IApiTypeRoot#getApiComponent()
8484
*/
8585
@Override
8686
public IApiComponent getApiComponent() {

0 commit comments

Comments
 (0)