1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 02:06:01 +02:00

JavaDoc warnings

This commit is contained in:
Andrew Gvozdev 2010-04-29 17:54:20 +00:00
parent de1302afa7
commit 3559c97463
18 changed files with 20 additions and 155 deletions

View file

@ -39,7 +39,7 @@ public interface ICommand extends IDirective {
final public static char TAB = '\t'; final public static char TAB = '\t';
/** /**
* - If the command prefix contains a hyphen, or the -i option is * - If the command prefix contains a hyphen, or the -i option is
* present, or the special target .IGNORE has either the current * present, or the special target .IGNORE has either the current
* target as a prerequisite or has no prerequisites, any error * target as a prerequisite or has no prerequisites, any error
* found while executing the command will be ignored. * found while executing the command will be ignored.

View file

@ -20,22 +20,19 @@ package org.eclipse.cdt.make.core.makefile;
public interface IDirective { public interface IDirective {
/** /**
* Returns the parent of this directive, null if none. * @return the parent of this directive, null if none.
* @return
*/ */
IDirective getParent(); IDirective getParent();
/** /**
* The starting line number of this directive. * @return the starting line number of this directive.
* The numbering starts at 1 .i.e the first line is not 0 * The numbering starts at 1 .i.e the first line is not 0
* @return
*/ */
int getStartLine(); int getStartLine();
/** /**
* The ending line number of this directive. * @return the ending line number of this directive.
* The numbering starts at 1 .i.e the first line is not 0 * The numbering starts at 1 .i.e the first line is not 0
* @return
*/ */
int getEndLine(); int getEndLine();

View file

@ -20,44 +20,38 @@ package org.eclipse.cdt.make.core.makefile;
public interface IMacroDefinition extends IDirective { public interface IMacroDefinition extends IDirective {
/** /**
* Returns the name of the macro * @return the name of the macro
* @return
*/ */
String getName(); String getName();
/** /**
* Returns the value of the macro * @return the value of the macro
* @return
*/ */
StringBuffer getValue(); StringBuffer getValue();
/** /**
* The macro is a built-in * @return the macro is a built-in
* @return
*/ */
boolean isFromDefault(); boolean isFromDefault();
/** /**
* The macro was found in a Makefile. * @return the macro was found in a Makefile.
* @return *
*/ */
boolean isFromMakefile(); boolean isFromMakefile();
/** /**
* The macro came from the environment. * @return the macro came from the environment.
* @return
*/ */
boolean isFromEnviroment(); boolean isFromEnviroment();
/** /**
* The macro came from the make command option -e * The macro came from the make command option -e
* @return
*/ */
boolean isFromEnvironmentOverride(); boolean isFromEnvironmentOverride();
/** /**
* The macro was pass from an option to make. * @return the macro was pass from an option to make.
* @return
*/ */
boolean isFromCommand(); boolean isFromCommand();
} }

View file

@ -24,7 +24,7 @@ import org.eclipse.core.runtime.CoreException;
/** /**
* Discovered portion of scanner configuration * Discovered portion of scanner configuration
* @deprecated * @deprecated as of CDT 4.0.
* @author vhirsl * @author vhirsl
* *
* @noextend This class is not intended to be subclassed by clients. * @noextend This class is not intended to be subclassed by clients.
@ -44,9 +44,6 @@ public class DiscoveredScannerInfo implements IScannerInfo {
private org.eclipse.cdt.make.core.MakeScannerInfo userInfo; private org.eclipse.cdt.make.core.MakeScannerInfo userInfo;
/**
* @param project
*/
public DiscoveredScannerInfo(IProject project) { public DiscoveredScannerInfo(IProject project) {
this.project = project; this.project = project;
} }
@ -204,16 +201,10 @@ public class DiscoveredScannerInfo implements IScannerInfo {
DiscoveredScannerInfoProvider.updateScannerInfo(this); DiscoveredScannerInfoProvider.updateScannerInfo(this);
} }
/**
* @param userPaths
*/
public void setUserIncludePaths(List<String> userPaths) { public void setUserIncludePaths(List<String> userPaths) {
userInfo.setIncludePaths(userPaths.toArray(new String[userPaths.size()])); userInfo.setIncludePaths(userPaths.toArray(new String[userPaths.size()]));
} }
/**
* @param userSymbols
*/
public void setUserDefinedSymbols(List<String> userSymbols) { public void setUserDefinedSymbols(List<String> userSymbols) {
userInfo.setPreprocessorSymbols(userSymbols.toArray(new String[userSymbols.size()])); userInfo.setPreprocessorSymbols(userSymbols.toArray(new String[userSymbols.size()]));
} }

View file

@ -33,7 +33,8 @@ import org.eclipse.core.runtime.QualifiedName;
/** /**
* Provider of both user specified and discovered scanner info * Provider of both user specified and discovered scanner info
* *
* @deprecated @author vhirsl * @deprecated as of CDT 4.0.
* @author vhirsl
* *
* @noextend This class is not intended to be subclassed by clients. * @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients. * @noinstantiate This class is not intended to be instantiated by clients.
@ -131,8 +132,6 @@ public class DiscoveredScannerInfoProvider extends ScannerProvider {
* method allows clients of the build model manager to programmatically remove the association between the resource and the * method allows clients of the build model manager to programmatically remove the association between the resource and the
* information while the reource is still open or in the workspace. The Eclipse core will take care of removing it if a resource * information while the reource is still open or in the workspace. The Eclipse core will take care of removing it if a resource
* is closed or deleted. * is closed or deleted.
*
* @param resource
*/ */
public static void removeScannerInfo(IResource resource) { public static void removeScannerInfo(IResource resource) {
try { try {
@ -144,8 +143,6 @@ public class DiscoveredScannerInfoProvider extends ScannerProvider {
/** /**
* Persists build-specific information in the build file. Build information for standard make projects consists of preprocessor * Persists build-specific information in the build file. Build information for standard make projects consists of preprocessor
* symbols and includes paths. Other project-related information is stored in the persistent properties of the project. * symbols and includes paths. Other project-related information is stored in the persistent properties of the project.
*
* @param scannerInfo
*/ */
static void updateScannerInfo(DiscoveredScannerInfo scannerInfo) throws CoreException { static void updateScannerInfo(DiscoveredScannerInfo scannerInfo) throws CoreException {
// no longer supported! // no longer supported!

View file

@ -93,15 +93,11 @@ public interface IDiscoveredPathManager {
interface IDiscoveredScannerInfoSerializable { interface IDiscoveredScannerInfoSerializable {
/** /**
* Serialize discovered scanner info to an XML element * Serialize discovered scanner info to an XML element
*
* @param root
*/ */
public void serialize(Element root); public void serialize(Element root);
/** /**
* Deserialize discovered scanner info from an XML element * Deserialize discovered scanner info from an XML element
*
* @param root
*/ */
public void deserialize(Element root); public void deserialize(Element root);

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2004, 2007 IBM Corporation and others. * Copyright (c) 2004, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -23,12 +23,6 @@ import org.eclipse.core.runtime.IProgressMonitor;
public interface IExternalScannerInfoProvider { public interface IExternalScannerInfoProvider {
/** /**
* Invokes a provider to generate scanner info. * Invokes a provider to generate scanner info.
*
* @param monitor
* @param resource project - current project being built
* @param providerId - id of the provider
* @param buildInfo - settings for ScannerConfigBuilder
* @param collector - scanner info collector for the resource (project)
*/ */
public boolean invokeProvider(IProgressMonitor monitor, public boolean invokeProvider(IProgressMonitor monitor,
IResource resource, IResource resource,
@ -38,14 +32,6 @@ public interface IExternalScannerInfoProvider {
/** /**
* Alternative interface to pass down the environment. * Alternative interface to pass down the environment.
*
* @param monitor
* @param resource
* @param providerId
* @param buildInfo
* @param collector
* @param env
* @return
*/ */
public boolean invokeProvider(IProgressMonitor monitor, public boolean invokeProvider(IProgressMonitor monitor,
IResource resource, IResource resource,

View file

@ -48,7 +48,7 @@ public class Command extends Directive implements ICommand {
} }
/** /**
* @ If the command prefix contains an at sign and the * If the command prefix contains an at sign and the
* command-line -n option is not specified, or the -s option is * command-line -n option is not specified, or the -s option is
* present, or the special target .SILENT has either the current * present, or the special target .SILENT has either the current
* target as a prerequisite or has no prerequisites, the command * target as a prerequisite or has no prerequisites, the command

View file

@ -412,10 +412,6 @@ public class GNUMakefile extends AbstractMakefile implements IGNUMakefile {
return stmt; return stmt;
} }
/**
* @param line
* @return
*/
protected SpecialRule parseSpecialRule(String line) { protected SpecialRule parseSpecialRule(String line) {
line = line.trim(); line = line.trim();
String keyword = null; String keyword = null;
@ -469,8 +465,6 @@ public class GNUMakefile extends AbstractMakefile implements IGNUMakefile {
* ifneq CONDITIONAL * ifneq CONDITIONAL
* else * else
* *
* @param line
* @return
*/ */
protected Conditional parseConditional(String line) { protected Conditional parseConditional(String line) {
Conditional condition = null; Conditional condition = null;
@ -568,10 +562,6 @@ public class GNUMakefile extends AbstractMakefile implements IGNUMakefile {
return new VPath(this, pattern, directories); return new VPath(this, pattern, directories);
} }
/**
* @param line
* @return
*/
protected UnExport parseUnExport(String line) { protected UnExport parseUnExport(String line) {
// Pass over "unexport" // Pass over "unexport"
for (int i = 0; i < line.length(); i++) { for (int i = 0; i < line.length(); i++) {
@ -780,10 +770,6 @@ public class GNUMakefile extends AbstractMakefile implements IGNUMakefile {
return staticRules; return staticRules;
} }
/**
* @param line
* @return
*/
protected InferenceRule parseInferenceRule(String line) { protected InferenceRule parseInferenceRule(String line) {
String tgt; String tgt;
int index = Util.indexOf(line, ':'); int index = Util.indexOf(line, ':');

View file

@ -23,6 +23,7 @@ import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceDelta; import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.IResourceDeltaVisitor; import org.eclipse.core.resources.IResourceDeltaVisitor;
import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.core.runtime.OperationCanceledException;

View file

@ -119,10 +119,6 @@ public class GNUMakefileUtil extends PosixMakefileUtil {
|| isMacroDefinition(line); || isMacroDefinition(line);
} }
/**
* @param line
* @return
*/
public static boolean isStaticTargetRule(String line) { public static boolean isStaticTargetRule(String line) {
line = line.trim(); line = line.trim();
int colon1 = Util.indexOf(line, ':'); int colon1 = Util.indexOf(line, ':');
@ -136,10 +132,6 @@ public class GNUMakefileUtil extends PosixMakefileUtil {
return false; return false;
} }
/**
* @param line
* @return
*/
public static boolean isGNUTargetRule(String line) { public static boolean isGNUTargetRule(String line) {
line = line.trim(); line = line.trim();
int colon = Util.indexOf(line, ':'); int colon = Util.indexOf(line, ':');

View file

@ -196,10 +196,6 @@ public final class DiscoveredScannerInfoStore {
return document; return document;
} }
/**
* @param document
* @param project
*/
private void upgradeDocument(Document document, IProject project) { private void upgradeDocument(Document document, IProject project) {
Element rootElem = (Element) document.getElementsByTagName(SI_ELEM).item(0); Element rootElem = (Element) document.getElementsByTagName(SI_ELEM).item(0);
ProcessingInstruction pi = document.createProcessingInstruction(SCD_STORE_VERSION, "version=\"2.0\""); //$NON-NLS-1$ ProcessingInstruction pi = document.createProcessingInstruction(SCD_STORE_VERSION, "version=\"2.0\""); //$NON-NLS-1$
@ -231,11 +227,6 @@ public final class DiscoveredScannerInfoStore {
return cfgElem; return cfgElem;
} }
/**
* @param scannerInfo
* @param rootElement
* @param doc
*/
private void saveDiscoveredScannerInfo(InfoContext context, IDiscoveredScannerInfoSerializable serializable, Document doc) { private void saveDiscoveredScannerInfo(InfoContext context, IDiscoveredScannerInfoSerializable serializable, Document doc) {
NodeList rootList = doc.getElementsByTagName(SI_ELEM); NodeList rootList = doc.getElementsByTagName(SI_ELEM);
if (rootList.getLength() > 0) { if (rootList.getLength() > 0) {
@ -350,9 +341,6 @@ public final class DiscoveredScannerInfoStore {
return MakeCorePlugin.getWorkingDirectory().append(fileName); return MakeCorePlugin.getWorkingDirectory().append(fileName);
} }
/**
* @param delta
*/
public void updateScannerConfigStore(IResourceDelta delta) { public void updateScannerConfigStore(IResourceDelta delta) {
try { try {
delta.accept(new IResourceDeltaVisitor() { delta.accept(new IResourceDeltaVisitor() {
@ -395,9 +383,6 @@ public final class DiscoveredScannerInfoStore {
deletePluginStateFile(scFileName); deletePluginStateFile(scFileName);
} }
/**
* @param scFileName
*/
private void deletePluginStateFile(String scFileName) { private void deletePluginStateFile(String scFileName) {
IPath path = MakeCorePlugin.getWorkingDirectory().append(scFileName); IPath path = MakeCorePlugin.getWorkingDirectory().append(scFileName);
File file = path.toFile(); File file = path.toFile();
@ -418,10 +403,6 @@ public final class DiscoveredScannerInfoStore {
} }
} }
/**
* @param oldFileName
* @param newFileName
*/
private void movePluginStateFile(String oldFileName, String newFileName) { private void movePluginStateFile(String oldFileName, String newFileName) {
IPath oldPath = MakeCorePlugin.getWorkingDirectory().append(oldFileName); IPath oldPath = MakeCorePlugin.getWorkingDirectory().append(oldFileName);
IPath newPath = MakeCorePlugin.getWorkingDirectory().append(newFileName); IPath newPath = MakeCorePlugin.getWorkingDirectory().append(newFileName);

View file

@ -44,20 +44,10 @@ public class GCCPerFileBOPConsoleParserUtility extends AbstractGCCBOPConsolePars
private String fDefaultMacroDefinitionValue= "1"; //$NON-NLS-1$ private String fDefaultMacroDefinitionValue= "1"; //$NON-NLS-1$
/**
* @param markerGenerator
* @param workingDirectory
* @param project
*/
public GCCPerFileBOPConsoleParserUtility(IProject project, IPath workingDirectory, IMarkerGenerator markerGenerator) { public GCCPerFileBOPConsoleParserUtility(IProject project, IPath workingDirectory, IMarkerGenerator markerGenerator) {
super(project, workingDirectory, markerGenerator); super(project, workingDirectory, markerGenerator);
} }
/**
* Adds a mapping filename, generic_command
* @param longFileName
* @param genericLine
*/
void addGenericCommandForFile(String longFileName, String genericCommand) { void addGenericCommandForFile(String longFileName, String genericCommand) {
// if a file name has already been added once, return // if a file name has already been added once, return
if (compiledFileList.contains(longFileName)) if (compiledFileList.contains(longFileName))
@ -104,8 +94,6 @@ public class GCCPerFileBOPConsoleParserUtility extends AbstractGCCBOPConsolePars
/** /**
* Adds a mapping command line -> file, this time without a dir * Adds a mapping command line -> file, this time without a dir
* @param longFileName
* @param genericLine
*/ */
void addGenericCommandForFile2(String longFileName, String genericLine) { void addGenericCommandForFile2(String longFileName, String genericLine) {
// if a file name has already been added once, return // if a file name has already been added once, return
@ -129,8 +117,6 @@ public class GCCPerFileBOPConsoleParserUtility extends AbstractGCCBOPConsolePars
} }
/** /**
* @param genericLine
* @param cppFileType
* @return CCommandDSC compile command description * @return CCommandDSC compile command description
*/ */
public CCommandDSC getNewCCommandDSC(String[] tokens, final int idxOfCompilerCommand, boolean cppFileType) { public CCommandDSC getNewCCommandDSC(String[] tokens, final int idxOfCompilerCommand, boolean cppFileType) {

View file

@ -33,10 +33,6 @@ public class BuildOutputReaderJob extends Job {
private InfoContext context; private InfoContext context;
private IScannerConfigBuilderInfo2 buildInfo; private IScannerConfigBuilderInfo2 buildInfo;
/**
* @param project
* @param buildInfo
*/
public BuildOutputReaderJob(IProject project, IScannerConfigBuilderInfo2 buildInfo) { public BuildOutputReaderJob(IProject project, IScannerConfigBuilderInfo2 buildInfo) {
this(project, buildInfo.getContext(), buildInfo); this(project, buildInfo.getContext(), buildInfo);
} }

View file

@ -53,10 +53,7 @@ public class CCommandDSC {
private List<String> symbols; private List<String> symbols;
private List<String> includes; private List<String> includes;
private List<String> quoteIncludes; private List<String> quoteIncludes;
/**
* @param cppFileType2
*/
public CCommandDSC(boolean cppFileType) { public CCommandDSC(boolean cppFileType) {
this(cppFileType, null); this(cppFileType, null);
} }
@ -92,9 +89,6 @@ public class CCommandDSC {
compilerCommand.add(option); compilerCommand.add(option);
} }
/**
* @return
*/
public Integer getCommandIdAsInteger() { public Integer getCommandIdAsInteger() {
return new Integer(getCommandId()); return new Integer(getCommandId());
} }
@ -169,8 +163,7 @@ public class CCommandDSC {
} }
/** /**
* Returns the compiler command * @return the compiler command
* @return
*/ */
public String getCompilerName() { public String getCompilerName() {
String compiler = new String(); String compiler = new String();
@ -255,7 +248,7 @@ public class CCommandDSC {
return makeAbsolute(project, quoteIncludes); return makeAbsolute(project, quoteIncludes);
} }
/** /**
* @param includes. Quote include paths (for #include "...") * @param includes - quote include paths (for #include "...")
*/ */
public void setQuoteIncludes(List<String> includes) { public void setQuoteIncludes(List<String> includes) {
quoteIncludes = includes; quoteIncludes = includes;
@ -285,9 +278,6 @@ public class CCommandDSC {
this.discovered = discovered; this.discovered = discovered;
} }
/**
* @param cmdElem
*/
public void serialize(Element cmdElem) { public void serialize(Element cmdElem) {
Document doc = cmdElem.getOwnerDocument(); Document doc = cmdElem.getOwnerDocument();
// serialize the command // serialize the command
@ -324,9 +314,6 @@ public class CCommandDSC {
cmdElem.appendChild(siElem); cmdElem.appendChild(siElem);
} }
/**
* @param cmdElem
*/
public void deserialize(Element cmdElem) { public void deserialize(Element cmdElem) {
// read command options // read command options
NodeList descList = cmdElem.getElementsByTagName(CMD_DESCRIPTION_ELEM); NodeList descList = cmdElem.getElementsByTagName(CMD_DESCRIPTION_ELEM);

View file

@ -81,10 +81,6 @@ public class CygpathTranslator {
} }
} }
/**
* @param sumIncludes
* @return
*/
public static List<String> translateIncludePaths(IProject project, List<String> sumIncludes) { public static List<String> translateIncludePaths(IProject project, List<String> sumIncludes) {
// first check if cygpath translation is needed at all // first check if cygpath translation is needed at all
boolean translationNeeded = false; boolean translationNeeded = false;

View file

@ -170,9 +170,6 @@ public class DefaultRunSIProvider implements IExternalScannerInfoProvider {
/** /**
* Initialization of protected fields. * Initialization of protected fields.
* Subclasses are most likely to override default implementation. * Subclasses are most likely to override default implementation.
*
* @param currentProject
* @return boolean
*/ */
protected boolean initialize() { protected boolean initialize() {
@ -188,19 +185,11 @@ public class DefaultRunSIProvider implements IExternalScannerInfoProvider {
* Add additional arguments. For example: tso - target specific options * Add additional arguments. For example: tso - target specific options
* Base class implementation returns compileArguments. * Base class implementation returns compileArguments.
* Subclasses are most likely to override default implementation. * Subclasses are most likely to override default implementation.
*
* @param isDefaultCommand
* @param collector
* @return
*/ */
protected String[] prepareArguments(boolean isDefaultCommand) { protected String[] prepareArguments(boolean isDefaultCommand) {
return fCompileArguments; return fCompileArguments;
} }
/**
* @param array
* @return
*/
private String coligate(String[] array) { private String coligate(String[] array) {
StringBuffer sb = new StringBuffer(128); StringBuffer sb = new StringBuffer(128);
for (int i = 0; i < array.length; ++i) { for (int i = 0; i < array.length; ++i) {
@ -211,10 +200,6 @@ public class DefaultRunSIProvider implements IExternalScannerInfoProvider {
return ca; return ca;
} }
/**
* @param launcher
* @return
*/
protected String[] setEnvironment(ICommandLauncher launcher, Properties initialEnv) { protected String[] setEnvironment(ICommandLauncher launcher, Properties initialEnv) {
// Set the environmennt, some scripts may need the CWD var to be set. // Set the environmennt, some scripts may need the CWD var to be set.
Properties props = initialEnv != null ? initialEnv : launcher.getEnvironment(); Properties props = initialEnv != null ? initialEnv : launcher.getEnvironment();

View file

@ -104,10 +104,6 @@ public class DefaultSIFileReader implements IExternalScannerInfoProvider {
return rc; return rc;
} }
/**
* @param inputFileName
* @return
*/
private BufferedReader getStreamReader(String inputFileName) { private BufferedReader getStreamReader(String inputFileName) {
BufferedReader reader = null; BufferedReader reader = null;
try { try {
@ -121,8 +117,6 @@ public class DefaultSIFileReader implements IExternalScannerInfoProvider {
/** /**
* Precondition: Neither input nor output are null * Precondition: Neither input nor output are null
* @param monitor
* @return
*/ */
private boolean readFileToOutputStream(IProgressMonitor monitor, BufferedReader reader, OutputStream ostream) { private boolean readFileToOutputStream(IProgressMonitor monitor, BufferedReader reader, OutputStream ostream) {
final String lineSeparator = System.getProperty("line.separator"); //$NON-NLS-1$ final String lineSeparator = System.getProperty("line.separator"); //$NON-NLS-1$