Update license to GPLv3, fix header comments
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / TestDDAResponse.java
index 76660c5..90cb4cb 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * jFCPlib - TestDDAResponse.java - Copyright © 2008 David Roden
+ * jFCPlib - TestDDAResponse.java - Copyright © 2008–2016 David Roden
  *
- * This program is free software; you can redistribute it and/or modify
+ * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
@@ -12,8 +12,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 package net.pterodactylus.fcp;
@@ -21,15 +20,16 @@ package net.pterodactylus.fcp;
 /**
  * A “TestDDAResponse” is sent to let the node know that either created a file
  * with the content from {@link TestDDAReply#getContentToWrite()} or that you
- * read the content of the file given by {@link TestDDAReply#getReadFilename()}.
+ * read the content of the file given by {@link TestDDAReply#getReadFilename()}
+ * .
  *
  * @author David ‘Bombe’ Roden &lt;bombe@freenetproject.org&gt;
  */
 public class TestDDAResponse extends FcpMessage {
 
        /**
-        * Creates a new “TestDDAResponse” message that signals that you created the
-        * file given by {@link TestDDAReply#getWriteFilename()} and wrote the
+        * Creates a new “TestDDAResponse” message that signals that you created
+        * the file given by {@link TestDDAReply#getWriteFilename()} and wrote the
         * contents given by {@link TestDDAReply#getContentToWrite()} to it.
         *
         * @param directory
@@ -40,11 +40,11 @@ public class TestDDAResponse extends FcpMessage {
        }
 
        /**
-        * Creates a new “TestDDAResponse” message that signals that you created the
-        * file given by {@link TestDDAReply#getWriteFilename()} with the contents
-        * given by {@link TestDDAReply#getContentToWrite()} to it (when you
-        * specified that you want to write to the directory) and/or that you read
-        * the file given by {@link TestDDAReply#getReadFilename()} (when you
+        * Creates a new “TestDDAResponse” message that signals that you created
+        * the file given by {@link TestDDAReply#getWriteFilename()} with the
+        * contents given by {@link TestDDAReply#getContentToWrite()} to it (when
+        * you specified that you want to write to the directory) and/or that you
+        * read the file given by {@link TestDDAReply#getReadFilename()} (when you
         * specified you wanted to read the directory).
         *
         * @param directory
@@ -55,6 +55,7 @@ public class TestDDAResponse extends FcpMessage {
         */
        public TestDDAResponse(String directory, String readContent) {
                super("TestDDAResponse");
+               setField("Directory", directory);
                if (readContent != null) {
                        setField("ReadContent", readContent);
                }