1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-27 19:05:38 +02:00

[cleanup] compiler warnings

This commit is contained in:
Martin Oberhuber 2007-01-30 18:49:59 +00:00
parent c84a668768
commit 0eff25758c
21 changed files with 77 additions and 79 deletions

View file

@ -135,7 +135,7 @@ public class SystemFileTreeAndListGroup extends org.eclipse.ui.internal.ide.dial
/**
* Handle the selection of an item in the tree viewer.
* Intercept of parent so we can record the last selected tree node.
* @param selection ISelection
* @param event the selection changed event
*/
public void selectionChanged(SelectionChangedEvent event)
{

View file

@ -393,7 +393,6 @@ public boolean isDynamic()
*
* @param menu the menu to add the item to
* @param file the file bing edited
* @param registry the editor registry
*/
protected void createDefaultMenuItem(Menu menu, final IRemoteFile file)
{

View file

@ -34,14 +34,14 @@ public class SystemSearchBrowseFileLineAction extends SystemSearchEditFileLineAc
* @param parent the parent shell.
* @param editorId the editor id.
* @param remoteFile the remote file that is to be opened.
* @param line the line number.
* @param searchResult the line number.
*/
public SystemSearchBrowseFileLineAction(String text, String tooltip, ImageDescriptor image, Shell parent, String editorId, IRemoteFile remoteFile, IRemoteSearchResult searchResult) {
super(text, tooltip, image, parent, editorId, remoteFile, searchResult);
}
/**
* @see org.eclipse.rse.files.ui.actions.SystemSearchEditFileAction#process(IRemoteFile)
* @see org.eclipse.rse.files.ui.actions.SystemEditFileAction#process(IRemoteFile)
*/
protected void process(IRemoteFile remoteFile) {
SystemEditableRemoteFile editableFile = new SystemEditableRemoteFile(remoteFile, _editorId);

View file

@ -51,7 +51,7 @@ public class SystemSearchEditFileLineAction extends SystemEditFileAction {
* @param parent the parent shell.
* @param editorId the editor id.
* @param remoteFile the remote file that is to be opened.
* @param line the line number.
* @param searchResult the line number.
*/
public SystemSearchEditFileLineAction(String text, String tooltip, ImageDescriptor image, Shell parent, String editorId, IRemoteFile remoteFile, IRemoteSearchResult searchResult) {
super(text, tooltip, image, parent, editorId);

View file

@ -44,7 +44,6 @@ public class ExtractToDialog extends SystemSelectRemoteFileOrFolderDialog {
*
* @param shell The shell to hang the dialog off of
* @param title The title to give the dialog
* @param fileMode True if selecting files, false if selecting folders
*/
public ExtractToDialog(Shell shell, String title)
{

View file

@ -29,15 +29,15 @@ public interface ISystemRemoteEditResourceManager extends ISystemRemoteManager {
* edit object associated with it, and this object will take care
* of remote editing of that object. Using the remote path as a key ensures
* that a resource with a unique path will have a unique remote object.
* @param the remote path to use as a key
* @param the editbable object
* @param key remote path to use as a key
* @param editObj editbable object
* @return the previously stored edit object, or null if none
*/
public Object putEditObject(ISystemRemotePath key, Object editObj);
/**
* Get a remote edit object given the remote path as a key.
* @param the remote path as a key
* @param key remote path as a key
* @return the stored edit object
*/
public Object getEditObject(ISystemRemotePath key);

View file

@ -28,14 +28,14 @@ public interface ISystemRemoteManager {
/**
* This method is called during plugin startup.
* @param a progress monitor for long running operations, or null
* @param monitor progress monitor for long running operations, or null
* if none is desired.
*/
public void startup(IProgressMonitor monitor);
/**
* This method is called during plugin shutdown.
* @param a progress monitor for long running operations, or null
* @param monitor progress monitor for long running operations, or null
* if none is desired.
*/
public void shutdown(IProgressMonitor monitor);

View file

@ -50,7 +50,7 @@ public class SystemRemoteMarkerInfo implements ISystemRemoteMarkerSetElement, Cl
/**
* Set the marker id.
* @param the id
* @param id the id
*/
public void setId(long id) {
this.id = id;
@ -65,7 +65,7 @@ public class SystemRemoteMarkerInfo implements ISystemRemoteMarkerSetElement, Cl
/**
* Set the type.
* @param the marker type
* @param type the marker type
*/
public void setType(String type) {
this.type = type;
@ -81,7 +81,7 @@ public class SystemRemoteMarkerInfo implements ISystemRemoteMarkerSetElement, Cl
/**
* Set the attributes.
* @param the attributes
* @param attributes the attributes
*/
public void setAttributes(Map attributes) {
this.attributes = attributes;
@ -97,7 +97,7 @@ public class SystemRemoteMarkerInfo implements ISystemRemoteMarkerSetElement, Cl
/**
* Get the attributes.
* @param specify whether to return a copy or the actual map
* @param makeCopy specify whether to return a copy or the actual map
* @return the attribute map
*/
public Map getAttributes(boolean makeCopy) {
@ -118,7 +118,7 @@ public class SystemRemoteMarkerInfo implements ISystemRemoteMarkerSetElement, Cl
/**
* Set the creation time.
* @param the creation time
* @param creationTime the creation time
*/
public void setCreationTime(long creationTime) {
this.creationTime = creationTime;
@ -143,7 +143,7 @@ public class SystemRemoteMarkerInfo implements ISystemRemoteMarkerSetElement, Cl
/**
* Get attribute values given the attribute names.
* @param the array of attribute names
* @param attributeNames the array of attribute names
* @return the array of attribute values
*/
public Object[] getAttributes(String[] attributeNames) {
@ -157,7 +157,7 @@ public class SystemRemoteMarkerInfo implements ISystemRemoteMarkerSetElement, Cl
/**
* Get the attribute value given the attribute name.
* @param the attribute name
* @param attributeName the attribute name
* @return the attribute value
*/
public Object getAttribute(String attributeName) {
@ -172,7 +172,7 @@ public class SystemRemoteMarkerInfo implements ISystemRemoteMarkerSetElement, Cl
/**
* Checks if attribute value is valid.
* @param the attribute value
* @param value the attribute value
* @return true if value is null, or a String, or an Integer, or a Boolean
*/
protected static boolean isValidAttributeValue(Object value) {
@ -181,8 +181,8 @@ public class SystemRemoteMarkerInfo implements ISystemRemoteMarkerSetElement, Cl
/**
* Set the value of an attribute.
* @param the attribute name
* @param the value of the attribute
* @param attributeName the attribute name
* @param value the value of the attribute
*/
public void setAttribute(String attributeName, Object value) {
@ -217,8 +217,8 @@ public class SystemRemoteMarkerInfo implements ISystemRemoteMarkerSetElement, Cl
/**
* Set the values of an array of attributes
* @param the attribute names
* @param the attribute values
* @param attributeNames the attribute names
* @param values the attribute values
*/
public void setAttributes(String[] attributeNames, Object[] values) {

View file

@ -81,8 +81,8 @@ public class SystemRemoteMarkerManager implements ISystemRemoteManager {
/**
* Adds the given markers to the given resource.
* @param the resource
* @param the marker infos
* @param resource the resource
* @param newMarkers the marker infos
*/
public void add(ISystemRemoteResource resource, SystemRemoteMarkerInfo[] newMarkers) {
@ -131,8 +131,8 @@ public class SystemRemoteMarkerManager implements ISystemRemoteManager {
/**
* Removes a marker.
* @param the resource.
* @param the marker id
* @param resource the resource.
* @param id the marker id
*/
public void removeMarker(ISystemRemoteResource resource, long id) {
SystemRemoteMarkerInfo markerInfo = findMarkerInfo(resource, id);
@ -166,8 +166,8 @@ public class SystemRemoteMarkerManager implements ISystemRemoteManager {
/**
* Finds a marker info given a resource, and the marker id.
* @param the resource.
* @param the marker id
* @param resource the resource.
* @param id the marker id
* @return the marker info
*/
public SystemRemoteMarkerInfo findMarkerInfo(ISystemRemoteResource resource, long id) {
@ -189,9 +189,9 @@ public class SystemRemoteMarkerManager implements ISystemRemoteManager {
/**
* Removes markers of the given type, and optionally all the subtypes, from
* the given resource.
* @param the resource
* @param the type
* @param flag indicating whether to include subtypes
* @param resource the resource
* @param type the type
* @param includeSubtypes flag indicating whether to include subtypes
*/
public void removeMarkers(ISystemRemoteResource resource, String type, boolean includeSubtypes) {
SystemRemoteResourceInfo info = ((SystemRemoteResource)(resource)).getResourceInfo();
@ -284,8 +284,8 @@ public class SystemRemoteMarkerManager implements ISystemRemoteManager {
/**
* Returns the marker with the given id or <code>null</code> if none is found.
* @param the resource
* @param the id of the marker to find
* @param resource the resource
* @param id the id of the marker to find
* @return the marker, or <code>null</code> if none s found.
*/
public ISystemRemoteMarker findMarker(ISystemRemoteResource resource, long id) {
@ -296,9 +296,9 @@ public class SystemRemoteMarkerManager implements ISystemRemoteManager {
/**
* Returns all markers of the specified type on the given target, and optionally the subtypes as well.
* Passing <code>null</code> for the type specifies a matching target for all types.
* @param the resource
* @param the type
* @param flag indicating whether to include subtypes
* @param resource the resource
* @param type the type
* @param includeSubtypes flag indicating whether to include subtypes
*/
public ISystemRemoteMarker[] findMarkers(ISystemRemoteResource resource, String type, boolean includeSubtypes) {
SystemRemoteResourceInfo info = ((SystemRemoteResource)resource).getResourceInfo();
@ -350,7 +350,7 @@ public class SystemRemoteMarkerManager implements ISystemRemoteManager {
/**
* Returns whether marker info is persistent.
* @param the marker info
* @param info the marker info
* @return true if the given marker represented by this info is persistent,
* and false otherwise.
*/
@ -360,7 +360,7 @@ public class SystemRemoteMarkerManager implements ISystemRemoteManager {
/**
* Returns whether given marker is persistent.
* @param the marker
* @param marker the marker
* @return true if the given marker is persistent, and false
* otherwise.
*/
@ -370,7 +370,7 @@ public class SystemRemoteMarkerManager implements ISystemRemoteManager {
/**
* Returns whether any of the marker infos are persistent.
* @param the marker infos
* @param infos the marker infos
* @return true if the a marker represented by any of the infos is persistent,
* and false otherwise.
*/

View file

@ -47,7 +47,7 @@ public class SystemRemoteMarkerSet {
/**
* Constructor for SystemRemoteMarkerSet.
* @param the initial capacity
* @param capacity the initial capacity
*/
public SystemRemoteMarkerSet(int capacity) {
super();
@ -56,7 +56,7 @@ public class SystemRemoteMarkerSet {
/**
* Add an element to the set.
* @param the element to add to the set
* @param element the element to add to the set
*/
public void add(ISystemRemoteMarkerSetElement element) {
@ -104,7 +104,7 @@ public class SystemRemoteMarkerSet {
/**
* Add multiple elements.
* @param the elements to add to the set
* @param elements the elements to add to the set
*/
public void addAll(ISystemRemoteMarkerSetElement[] elements) {
@ -115,7 +115,7 @@ public class SystemRemoteMarkerSet {
/**
* Returns whether the set contains an element with the given id.
* @param the id to search for
* @param id the id to search for
* @return true if there is an element with the given id, false otherwise
*/
public boolean contains(long id) {
@ -179,7 +179,7 @@ public class SystemRemoteMarkerSet {
/**
* Returns the set element with the given id, or null if none
* is found.
* @param the id to search for
* @param id the id to search for
* @return the element, if found, or null
*/
public ISystemRemoteMarkerSetElement get(long id) {
@ -283,7 +283,7 @@ public class SystemRemoteMarkerSet {
/**
* Removes an element with the given id from the set.
* @param the id of the element to remove.
* @param id the id of the element to remove.
*/
public void remove(long id) {
int hash = hashFor(id) % elements.length;
@ -318,7 +318,7 @@ public class SystemRemoteMarkerSet {
/**
* Removes the given element from the set. Uses the element id
* to search for the element in the set.
* @param the element
* @param element the element
*/
public void remove(ISystemRemoteMarkerSetElement element) {
remove(element.getId());
@ -326,7 +326,7 @@ public class SystemRemoteMarkerSet {
/**
* Removes all of the elements in the given array from the set.
* @param the array of elements to remove
* @param elements the array of elements to remove
*/
public void removeAll(ISystemRemoteMarkerSetElement[] elements) {

View file

@ -102,7 +102,7 @@ public class SystemRemoteMarkerTypeDefinitionCache {
/**
* Returns whether the given marker type is defined to be persistent.
* @param the marker type
* @param type the marker type
* @return true if marker type is persistent, false otherwise
*/
public boolean isPersistent(String type) {
@ -112,8 +112,8 @@ public class SystemRemoteMarkerTypeDefinitionCache {
/**
* Returns whether the given type is a subtype of the given supertype.
* @param a marker type
* @param another marker type
* @param type a marker type
* @param superType another marker type
* @return true if type is a subtype of supertype, false otherwise
*/
public boolean isSubtype(String type, String superType) {

View file

@ -31,8 +31,8 @@ public class SystemRemotePath implements ISystemRemotePath {
/**
* Constructor for SystemRemotePath.
* @param profile name
* @param connection name
* @param profileName profile name
* @param connectionName connection name
* @param path
*/
public SystemRemotePath(String profileName, String connectionName, String path) {
@ -44,7 +44,7 @@ public class SystemRemotePath implements ISystemRemotePath {
/**
* Set the profile name.
* @param the profile name
* @param profileName the profile name
*/
public void setProfileName(String profileName) {
this.profileName = profileName;
@ -52,7 +52,7 @@ public class SystemRemotePath implements ISystemRemotePath {
/**
* Set the connection name.
* @param the connection name
* @param connectionName the connection name
*/
public void setConnectionName(String connectionName) {
this.connectionName = connectionName;
@ -60,7 +60,7 @@ public class SystemRemotePath implements ISystemRemotePath {
/**
* Set the remote path.
* @param the path
* @param path the path
*/
public void setPath(String path) {
this.path = path;

View file

@ -43,7 +43,7 @@ public class SystemRemoteResourceInfo implements Cloneable {
/**
* Sets all of the bits indicated by the mask.
* @param the mask
* @param mask the mask
*/
public void set(int mask) {
flags |= mask;
@ -51,7 +51,7 @@ public class SystemRemoteResourceInfo implements Cloneable {
/**
* Clears all of the bits indicated by the mask.
* @param the mask
* @param mask the mask
*/
public void clear(int mask) {
flags &= ~mask;
@ -75,7 +75,7 @@ public class SystemRemoteResourceInfo implements Cloneable {
/**
* Set the markers for the resource info. <code>null</code> can be used
* to indicate that the resource has no markers.
* @param the marker set
* @param markerSet the marker set
*/
public void setMarkers(SystemRemoteMarkerSet markerSet) {
this.markers = markerSet;

View file

@ -45,7 +45,7 @@ public class SystemSafeFileOutputStream extends OutputStream {
/**
* Constructor for SystemSafeFileOutputStream.
* @param the destination file.
* @param file the destination file.
*/
public SystemSafeFileOutputStream(File file) throws IOException {
this(file.getAbsolutePath(), null);
@ -53,7 +53,7 @@ public class SystemSafeFileOutputStream extends OutputStream {
/**
* Constructor for SystemSafeFileOutputStream.
* @param the destination file name
* @param destinationName the destination file name
*/
public SystemSafeFileOutputStream(String destinationName) throws IOException {
this(destinationName, null);
@ -61,8 +61,8 @@ public class SystemSafeFileOutputStream extends OutputStream {
/**
* Constructor for SystemSafeFileOutputStream.
* @param the destination file name
* @param the temporary file name
* @param destinationPath the destination file name
* @param tempPath the temporary file name
*/
public SystemSafeFileOutputStream(String destinationPath, String tempPath) throws IOException {
destination = new File(destinationPath);
@ -121,8 +121,8 @@ public class SystemSafeFileOutputStream extends OutputStream {
/**
* Copy contents of one file to another.
* @param the source file
* @param the destination file
* @param sourceFile the source file
* @param destinationFile the destination file
*/
protected void copy(File sourceFile, File destinationFile) throws IOException {
@ -137,7 +137,7 @@ public class SystemSafeFileOutputStream extends OutputStream {
/**
* Create the temporary file at the given path.
* @param the path of the temporary file to be created
* @param tempPath the path of the temporary file to be created
*/
protected void createTempFile(String tempPath) throws IOException {
@ -205,7 +205,7 @@ public class SystemSafeFileOutputStream extends OutputStream {
/**
* Write an integer.
* @param the integer to write
* @param b the integer to write
*/
public void write(int b) throws IOException {

View file

@ -610,9 +610,9 @@ public abstract class SystemTempFileListener implements IResourceChangeListener
* Synchronize the specified remote file with the temporary local file using the
* specified remote file subsystem.
*
* @param fs the remote file subsystem of the remote file
* @param subsystem the remote file subsystem of the remote file
* @param tempFile the temporary file
* @param remoteFile the remote file
* @param resourceId the remote file
* @param monitor the progress monitor
*/
protected abstract void doResourceSynchronization(ISubSystem subsystem, IFile tempFile, String resourceId, IProgressMonitor monitor);

View file

@ -107,9 +107,10 @@ public class SystemUniversalTempFileListener extends SystemTempFileListener
* Synchronize the specified remote file with the temporary local file using the
* specified remote file subsystem.
*
* @param fs the remote file subsystem of the remote file
* @param subsystem the remote file subsystem of the remote file
* @param tempFile the temporary file
* @param remoteFile the remote file
* @param resourceId the remote file
* @param monitor progress monitor
*/
protected void doResourceSynchronization(ISubSystem subsystem, IFile tempFile, String resourceId, IProgressMonitor monitor)
{

View file

@ -119,7 +119,6 @@ public class UniversalFileTransferUtility
*
* @param srcFileOrFolder the file to copy
* @param monitor the progress monitor
* @param shell
* @return the resulting local replica
*/
protected static IFile copyRemoteFileToWorkspace(IRemoteFile srcFileOrFolder, IProgressMonitor monitor)

View file

@ -1408,7 +1408,6 @@ public class SystemViewRemoteFileAdapter
* set. For optimal performance, this should be overridden.
*
* @param set the set of objects to copy
* @param sameSystemType indication of whether the source and target reside on the same type of system
* @param monitor the progress monitor
* @return a temporary workspace copies of the object that was copied
*
@ -1667,8 +1666,8 @@ public class SystemViewRemoteFileAdapter
/**
* Perform drop from the "fromSet" of objects to the "to" object
* @param from the source objects for the drop
* @param to the target object for the drop
* @param fromSet the source objects for the drop
* @param target the target object for the drop
* @param sameSystemType indication of whether the source and target reside of the same type of system
* @param sameSystem indication of whether the source and target are on the same system
* @param srcType the type of objects to be dropped
@ -1935,8 +1934,9 @@ public class SystemViewRemoteFileAdapter
* @param src the object to be copied. If the target and source are not on the same system, then this is a
* temporary object produced by the doDrag.
* @param target the object to be copied to.
* @param sameSystemType indication of whether the source and target reside on the same type of system
* @param sameSystem an indication whether the target and source reside on the same type of system
* @param srcType type of source being transferred
* @param sourceType type of source being transferred
* @param monitor the progress monitor
* @return an indication whether the operation was successful or not.
*/

View file

@ -678,7 +678,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
* temporary object produced by the doDrag.
* @param target the object to be copied to.
* @param sameSystem an indication whether the target and source reside on the same type of system
* @param indicates the type of source
* @param srcType indicates the type of source
* @param monitor the progress monitor
* @return an indication whether the operation was successful or not.
*/

View file

@ -680,7 +680,7 @@ public class SystemQualifiedRemoteFolderCombo extends Composite
/**
* Prepares this composite control and sets the default layout data.
* @param Number of columns the new group will contain.
* @param numColumns Number of columns the new group will contain.
*/
protected Composite prepareComposite(int numColumns)
{

View file

@ -470,7 +470,7 @@ public class SystemRemoteFolderCombo extends Composite implements ISystemCombo
// -----------------------
/**
* Prepares this composite control and sets the default layout data.
* @param Number of columns the new group will contain.
* @param numColumns Number of columns the new group will contain.
*/
protected Composite prepareComposite(int numColumns)
{