Skip to content

Commit 03b4bc1

Browse files
author
carnold
committed
Javadoc fixes
1 parent de6186d commit 03b4bc1

23 files changed

+67
-80
lines changed

src/main/java/net/sf/antcontrib/cpptasks/CCTask.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright 2001-2005 The Ant-Contrib project
3+
* Copyright 2001-2008 The Ant-Contrib project
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@
5252
* </p>
5353
*
5454
* <p>
55-
* Copyright (c) 2001-2007, The Ant-Contrib project.
55+
* Copyright (c) 2001-2008, The Ant-Contrib project.
5656
* </p>
5757
*
5858
* <p>
@@ -379,7 +379,7 @@ public void setProjectsOnly(final boolean value) {
379379
* Checks all targets that are not forced to be rebuilt or are missing
380380
* object files to be checked for modified include files
381381
*
382-
* @returns total number of targets to be rebuilt
382+
* @return total number of targets to be rebuilt
383383
*
384384
*/
385385
protected int checkForChangedIncludeFiles(Hashtable targets) {
@@ -1302,7 +1302,7 @@ public void setProject(Project project) {
13021302
/**
13031303
* If set to true, all files will be rebuilt.
13041304
*
1305-
* @paran rebuildAll If true, all files will be rebuilt. If false, up to
1305+
* @param rebuildAll If true, all files will be rebuilt. If false, up to
13061306
* date files will not be rebuilt.
13071307
*/
13081308
public void setRebuild(boolean rebuildAll) {

src/main/java/net/sf/antcontrib/cpptasks/CUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* Some utilities used by the CC and Link tasks.
3535
*
3636
* @author Adam Murdoch
37+
* @author Curt Arnold
3738
*/
3839
public class CUtil {
3940
/**
@@ -180,7 +181,6 @@ public static File[] getPathFromEnvironment(String envVariable, String delim) {
180181
* @return relative path of target file. Returns targetFile if there were
181182
* no commonalities between the base and the target
182183
*
183-
* @author Curt Arnold
184184
*/
185185
public static String getRelativePath(final String base, final File targetFile) {
186186
try {

src/main/java/net/sf/antcontrib/cpptasks/CompilerDef.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public void setRtti(boolean rtti) {
354354
* Enables or disables generation of multithreaded code. Unless specified,
355355
* multithreaded code generation is enabled.
356356
*
357-
* @param multi
357+
* @param multithreaded
358358
* If true, generated code may be multithreaded.
359359
*/
360360
public void setMultithreaded(boolean multithreaded) {

src/main/java/net/sf/antcontrib/cpptasks/DependencyInfo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public DependencyInfo(String includePathIdentifier, String source,
5757
* Returns the latest modification date of the source or anything that it
5858
* depends on.
5959
*
60-
* @returns the composite lastModified time, returns Long.MIN_VALUE if not
60+
* @return the composite lastModified time, returns Long.MIN_VALUE if not
6161
* set
6262
*/
6363
public long getCompositeLastModified() {

src/main/java/net/sf/antcontrib/cpptasks/DependencyTable.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public abstract boolean preview(DependencyInfo parent,
160160
/**
161161
* Visits the dependency info.
162162
*
163-
* @returns true to continue towards recursion into included files
163+
* @return true to continue towards recursion into included files
164164
*/
165165
public abstract boolean visit(DependencyInfo dependInfo);
166166
}
@@ -240,8 +240,6 @@ public boolean visit(DependencyInfo dependInfo) {
240240
* Creates a target history table from dependencies.xml in the prject
241241
* directory, if it exists. Otherwise, initializes the dependencies empty.
242242
*
243-
* @param task
244-
* task used for logging history load errors
245243
* @param baseDir
246244
* output directory for task
247245
*/

src/main/java/net/sf/antcontrib/cpptasks/LinkerDef.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public void setBase(FlexLong base) {
292292
/**
293293
* Sets the starting address.
294294
*
295-
* @param name
295+
* @param entry
296296
* function name
297297
*/
298298
public void setEntry(String entry) {

src/main/java/net/sf/antcontrib/cpptasks/PrecompileDef.java

-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ public void appendExceptFileSet(ConditionalFileSet exceptSet) {
5656
* Adds filesets that specify files that should not be processed with
5757
* precompiled headers enabled.
5858
*
59-
* @param exceptSet
60-
* FileSet specify files that should not be processed with
61-
* precompiled headers enabled.
6259
*/
6360
public PrecompileExceptDef createExcept() {
6461
return new PrecompileExceptDef(this);

src/main/java/net/sf/antcontrib/cpptasks/ProcessorDef.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected void addConfiguredProcessorArg(CommandLineArgument arg)
126126
/**
127127
* Adds a <compilerarg>or <linkerarg>
128128
*
129-
* @param arg
129+
* @param param
130130
* command line argument, must not be null
131131
* @throws NullPointerException
132132
* if arg is null

src/main/java/net/sf/antcontrib/cpptasks/VersionInfo.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ private VersionInfo(final Vector stack) {
210210
}
211211

212212
/**
213-
* Returns a VersionInfo that reflects the state of
214-
* @return
213+
* Returns a VersionInfo that reflects any inherited version information.
214+
* @return merged version information.
215215
*/
216216
public VersionInfo merge() {
217217
if (isReference()) {

src/main/java/net/sf/antcontrib/cpptasks/arm/ADSCCompiler.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,7 @@ private ADSCCompiler(String command, boolean newEnvironment, Environment env) {
112112
null, newEnvironment, env);
113113
}
114114
/**
115-
* Adds command switches for generic configuration options
116-
*
117-
* @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#addImpliedArgs(java.util.Vector,
118-
* boolean, boolean, boolean,
119-
* net.sf.antcontrib.cpptasks.compiler.LinkType)
115+
* {@inheritDoc}
120116
*/
121117
protected void addImpliedArgs(Vector args,
122118
final boolean debug,

src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandLibrarian.java

+24-24
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ protected void addStack(int stack, Vector args) {
6060
protected void addEntry(String entry, Vector args) {
6161
}
6262

63-
protected String getCommandFileSwitch(String cmdFile) {
64-
//
65-
// tlib requires quotes around paths containing -
66-
// ilink32 doesn't like them
67-
StringBuffer buf = new StringBuffer("@");
68-
BorlandProcessor.quoteFile(buf, cmdFile);
63+
protected String getCommandFileSwitch(String cmdFile) {
64+
//
65+
// tlib requires quotes around paths containing -
66+
// ilink32 doesn't like them
67+
StringBuffer buf = new StringBuffer("@");
68+
BorlandProcessor.quoteFile(buf, cmdFile);
6969
return buf.toString();
7070
}
7171
public File[] getLibraryPath() {
@@ -100,12 +100,12 @@ public String getIdentifier() {
100100
/**
101101
* Prepares argument list for exec command.
102102
*
103-
* @param outputFile
104-
* linker output file
103+
* @param outputDir linker output directory
104+
* @param outputName linker output name
105105
* @param sourceFiles
106106
* linker input files (.obj, .o, .res)
107-
* @param args
108-
* linker arguments
107+
* @param config
108+
* linker configuration
109109
* @return arguments for runTask
110110
*/
111111
protected String[] prepareArguments(
@@ -182,8 +182,8 @@ protected String[] prepareArguments(
182182
protected String[] prepareResponseFile(File outputFile, String[] args)
183183
throws IOException {
184184
String[] cmdargs = BorlandProcessor.prepareResponseFile(outputFile, args, " & \n");
185-
cmdargs[cmdargs.length - 1] = getCommandFileSwitch(cmdargs[cmdargs.length -1]);
186-
return cmdargs;
185+
cmdargs[cmdargs.length - 1] = getCommandFileSwitch(cmdargs[cmdargs.length -1]);
186+
return cmdargs;
187187
}
188188

189189
/**
@@ -203,17 +203,17 @@ public void link(CCTask task,
203203
// build a new library
204204
super.link(task, outputFile, sourceFiles, config);
205205
}
206-
207-
/**
208-
* Encloses problematic file names within quotes.
209-
* @param buf string buffer
210-
* @param filename source file name
211-
* @returns filename potentially enclosed in quotes.
212-
*/
213-
protected String quoteFilename(StringBuffer buf,String filename) {
214-
buf.setLength(0);
215-
BorlandProcessor.quoteFile(buf, filename);
216-
return buf.toString();
217-
}
206+
207+
/**
208+
* Encloses problematic file names within quotes.
209+
* @param buf string buffer
210+
* @param filename source file name
211+
* @return filename potentially enclosed in quotes.
212+
*/
213+
protected String quoteFilename(StringBuffer buf,String filename) {
214+
buf.setLength(0);
215+
BorlandProcessor.quoteFile(buf, filename);
216+
return buf.toString();
217+
}
218218

219219
}

src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandLinker.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ public boolean isCaseSensitive() {
136136
/**
137137
* Prepares argument list for exec command.
138138
*
139-
* @param outputFile
140-
* linker output file
139+
* @param outputDir linker output directory
140+
* @param outputName linker output name
141141
* @param sourceFiles
142142
* linker input files (.obj, .o, .res)
143-
* @param args
144-
* linker arguments
143+
* @param config
144+
* linker configuration
145145
* @return arguments for runTask
146146
*/
147147
protected String[] prepareArguments(
@@ -277,7 +277,7 @@ protected String[] prepareResponseFile(File outputFile, String[] args)
277277
* @param versionInfo version information
278278
* @param linkType link type
279279
* @param isDebug true if debug build
280-
* @param executableName name of generated executable
280+
* @param outputFile name of generated executable
281281
* @param objDir directory for generated files
282282
* @param matcher bidded fileset
283283
*/

src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandProcessor.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import java.io.IOException;
2222
import java.io.Reader;
2323
import java.util.Vector;
24-
import java.io.FileWriter;
24+
import java.io.FileWriter;
2525

2626
import net.sf.antcontrib.cpptasks.CUtil;
2727
import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum;
@@ -61,8 +61,8 @@ public static void getDefineSwitch(StringBuffer buffer, String define,
6161
* Tool name, for example, "bcc32", "brc32", "ilink32"
6262
* @param switchChar
6363
* Command line switch character, for example "L" for libraries
64-
* @param defaultRelativePaths
65-
* default paths relative to executable directory
64+
* @param defaultRelativePath
65+
* default path relative to executable directory
6666
* @return path
6767
*/
6868
public static File[] getEnvironmentPath(String toolName, char switchChar,
@@ -156,9 +156,9 @@ public static boolean isCaseSensitive() {
156156
return false;
157157
}
158158
public static void quoteFile(StringBuffer buf, String outPath) {
159-
if (outPath.charAt(0) != '\"'
160-
&& (outPath.indexOf(' ') >= 0
161-
|| outPath.indexOf('-') >= 0
159+
if (outPath.charAt(0) != '\"'
160+
&& (outPath.indexOf(' ') >= 0
161+
|| outPath.indexOf('-') >= 0
162162
|| outPath.indexOf('/') >= 0)) {
163163
buf.append('\"');
164164
buf.append(outPath);
@@ -207,8 +207,8 @@ public static String[] prepareResponseFile(File outputFile,
207207
}
208208
writer.close();
209209
String[] execArgs = new String[2];
210-
execArgs[0] = args[0];
211-
//
210+
execArgs[0] = args[0];
211+
//
212212
// left for the caller to decorate
213213
execArgs[1] = commandFile.toString();
214214
return execArgs;

src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractCompiler.java

-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ public String[] getOutputFileNames(String inputFile, VersionInfo versionInfo) {
129129
* used to distinguish DependencyInfo's from different include
130130
* path settings
131131
*
132-
* @author Curt Arnold
133132
*/
134133
public final DependencyInfo parseIncludes(CCTask task, File source,
135134
File[] includePath, File[] sysIncludePath, File[] envIncludePath,

src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public String getLibraryKey(File libfile) {
9595
* @param versionInfo version information
9696
* @param linkType link type
9797
* @param isDebug true if debug build
98-
* @param executableName name of generated executable
98+
* @param outputFile name of generated executable
9999
* @param objDir directory for generated files
100100
* @param matcher bidded fileset
101101
*/

src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCompiler.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ abstract protected void addImpliedArgs(Vector args, boolean debug,
7373
* include switches to that vector (for use in building a configuration
7474
* identifier that is consistent between machines).
7575
*
76-
* @param baseDirPaths
77-
* A vector containing the parts of the working directory,
78-
* produced by CUtil.DecomposeFile.
76+
* @param baseDirPath Base directory path.
7977
* @param includeDirs
8078
* Array of include directory paths
8179
* @param args
@@ -131,7 +129,6 @@ protected void buildDefineArguments(CompilerDef[] defs, Vector args) {
131129
/**
132130
* Compiles a source file.
133131
*
134-
* @author Curt Arnold
135132
*/
136133
public void compile(CCTask task, File outputDir, String[] sourceFiles,
137134
String[] args, String[] endArgs, boolean relentless,

src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineLinker.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,10 @@ public void link(CCTask task,
285285
* Prepares argument list for exec command. Will return null
286286
* if command line would exceed allowable command line buffer.
287287
*
288+
* @param task compilation task.
288289
* @param outputFile linker output file
289290
* @param sourceFiles linker input files (.obj, .o, .res)
290-
* @param args linker arguments
291+
* @param config linker configuration
291292
* @return arguments for runTask
292293
*/
293294
protected String[] prepareArguments(

src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkType.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ public boolean isSubsystemGUI() {
101101
/**
102102
* Sets the output type (execuable, shared, etc).
103103
*
104-
* @param outputType,
105-
* may not be null
104+
* @param outputType may not be null
106105
*/
107106
public void setOutputType(OutputTypeEnum outputType) {
108107
if (outputType == null) {

src/main/java/net/sf/antcontrib/cpptasks/compiler/Linker.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public interface Linker extends Processor {
6767
* @param versionInfo version information
6868
* @param linkType link type
6969
* @param isDebug true if debug build
70-
* @param executableName name of generated executable
70+
* @param outputFile name of generated executable
7171
* @param objDir directory for generated files
7272
* @param matcher bidded fileset
7373
*/

src/main/java/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ public String[] addLibrarySets(CCTask task, LibrarySet[] libsets,
101101
LibrarySet set = libsets[i];
102102
File libdir = set.getDir(null);
103103
String[] libs = set.getLibs();
104-
if (libdir != null) {
105-
String relPath = libdir.getAbsolutePath();
106-
File outputFile = task.getOutfile();
107-
if (outputFile != null && outputFile.getParentFile() != null) {
108-
relPath = CUtil.getRelativePath(
109-
outputFile.getParentFile().getAbsolutePath(), libdir);
104+
if (libdir != null) {
105+
String relPath = libdir.getAbsolutePath();
106+
File outputFile = task.getOutfile();
107+
if (outputFile != null && outputFile.getParentFile() != null) {
108+
relPath = CUtil.getRelativePath(
109+
outputFile.getParentFile().getAbsolutePath(), libdir);
110110
}
111111
if (set.getType() != null &&
112112
"framework".equals(set.getType().getValue()) &&
@@ -272,8 +272,8 @@ protected boolean isHPUX() {
272272
* linker output file
273273
* @param sourceFiles
274274
* linker input files (.obj, .o, .res)
275-
* @param args
276-
* linker arguments
275+
* @param config
276+
* linker configuration
277277
* @return arguments for runTask
278278
*/
279279
public String[] prepareArguments(CCTask task, String outputDir,

src/main/java/net/sf/antcontrib/cpptasks/gcc/GccProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static String[] getOutputFileSwitch(String letter, String outputFile) {
117117
* -dumpversion. Attempts to use gcc -dumpspecs to provide this information
118118
* resulted in stalling on the Execute.run
119119
*
120-
* @returns contents of the specs file
120+
* @return contents of the specs file
121121
*/
122122
public static String[] getSpecs() {
123123
if (specs == null) {

0 commit comments

Comments
 (0)