enforces proper license notice

This commit is contained in:
hneemann 2018-03-02 08:51:19 +01:00
parent 8582672cba
commit ff186c8782
2 changed files with 8 additions and 7 deletions

View File

@ -18,7 +18,7 @@ import java.util.Iterator;
* http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative * http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative
* Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. * Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
* <p> * <p>
* Minor modifications made be hneemann, 2011-05-17 * Minor modifications made by hneemann, 2017-05-17
*/ */
public class GifSequenceWriter implements AutoCloseable { public class GifSequenceWriter implements AutoCloseable {
private ImageWriter gifWriter; private ImageWriter gifWriter;

View File

@ -117,11 +117,12 @@ public class TestLang extends TestCase {
} }
} }
if (f.getName().equals("GifSequenceWriter.java")) // Do not add files without permission from Helmut Neemann!
if (f.getName().equals("GifSequenceWriter.java")) // Creative Commons Attribution 3.0 Unported License
return; return;
if (state != 2) if (state != 2)
throw new IOException("found file without proper license notice: " + f+ "\n\n" throw new IOException("found java file without proper license notice: " + f + "\n\n"
+ "Every java file must contain the lines\n\n" + "Every java file must contain the lines\n\n"
+ " * Use of this source code is governed by the GPL v3 license\n" + " * Use of this source code is governed by the GPL v3 license\n"
+ " * that can be found in the LICENSE file.\n\n" + " * that can be found in the LICENSE file.\n\n"