Skip to content

Commit

Permalink
Javadoc: Add missing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Dec 24, 2024
1 parent 758474e commit 861188f
Show file tree
Hide file tree
Showing 9 changed files with 92 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,21 @@
* </ul>
*/
public abstract class AbstractSyncTask extends VfsTask {

/**
* Information about a source file.
*/
public static class SourceInfo {

private String file;

/**
* Constructs a new instance.
*/
public SourceInfo() {
// empty
}

/**
* Sets the file.
*
Expand All @@ -75,6 +84,13 @@ public void setFile(final String file) {

private String filesList;

/**
* Constructs a new instance.
*/
public AbstractSyncTask() {
// empty
}

/**
* Adds a nested &lt;src&gt; element.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ public class CopyTask extends AbstractSyncTask {
private boolean overwrite;
private boolean preserveLastModified = true;

/**
* Constructs a new instance.
*/
public CopyTask() {
// empty
}

/**
* Handles an out-of-date file.
*
Expand Down Expand Up @@ -64,13 +71,17 @@ protected void handleUpToDateFile(final FileObject srcFile, final FileObject des
}

/**
* Tests whether overwrite is enabled.
*
* @return the current value of overwrite
*/
public boolean isOverwrite() {
return overwrite;
}

/**
* Tests whether preserve last modified is enabled.
*
* @return the current value of preserveLastModified
*/
public boolean isPreserveLastModified() {
Expand All @@ -87,7 +98,7 @@ public void setOverwrite(final boolean overwrite) {
}

/**
* Enable/disable preserving last modified time of copied files.
* Sets preserving last modified time of copied files.
*
* @param preserveLastModified true if the last modified time should be preserved.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@
* </p>
*/
public class DeleteTask extends VfsTask {

private String file;
private String srcDirUrl;
private String filesList;

/**
* Constructs a new instance.
*/
public DeleteTask() {
// empty
}

/**
* Executes this task.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ public class MkdirTask extends VfsTask {

private String dirName;

/**
* Constructs a new instance.
*/
public MkdirTask() {
// empty
}

/**
* Executes the task.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,16 @@
* </p>
*/
public class MoveTask extends CopyTask {

private boolean tryRename;

/**
* Constructs a new instance.
*/
public MoveTask() {
// empty
}

/**
* Handles a single source file.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ public class ShowFileTask extends VfsTask {
private boolean showContent;
private boolean recursive;

/**
* Constructs a new instance.
*/
public ShowFileTask() {
// empty
}

/**
* Executes the task.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
*/
public class SyncTask extends CopyTask {

/**
* Constructs a new instance.
*/
public SyncTask() {
// empty
}

/**
* Check if this task cares about destination files with a missing source file.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
*/
public class VfsTask extends Task {

/**
* Constructs a new instance.
*/
public VfsTask() {
// empty
}

/**
* A commons-logging wrapper for Ant logging.
*/
Expand Down
21 changes: 20 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,27 @@
<head>To Do:</head>
</tag>
</tags>
<aggregate>true</aggregate>
</configuration>
<reportSets>
<reportSet>
<id>non-aggregate</id>
<configuration>
<!-- Specific configuration for the non aggregate report -->
</configuration>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
<reportSet>
<id>aggregate</id>
<configuration>
<!-- Specific configuration for the aggregate report -->
</configuration>
<reports>
<report>aggregate</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
Expand Down

0 comments on commit 861188f

Please sign in to comment.