From ff186c87829172af1da48d46b4f2199eb66bae69 Mon Sep 17 00:00:00 2001 From: hneemann Date: Fri, 2 Mar 2018 08:51:19 +0100 Subject: [PATCH] enforces proper license notice --- .../neemann/digital/draw/gif/GifSequenceWriter.java | 2 +- src/test/java/de/neemann/digital/lang/TestLang.java | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/de/neemann/digital/draw/gif/GifSequenceWriter.java b/src/main/java/de/neemann/digital/draw/gif/GifSequenceWriter.java index e860bc267..09123c97d 100644 --- a/src/main/java/de/neemann/digital/draw/gif/GifSequenceWriter.java +++ b/src/main/java/de/neemann/digital/draw/gif/GifSequenceWriter.java @@ -18,7 +18,7 @@ import java.util.Iterator; * http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative * Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. *

- * Minor modifications made be hneemann, 2011-05-17 + * Minor modifications made by hneemann, 2017-05-17 */ public class GifSequenceWriter implements AutoCloseable { private ImageWriter gifWriter; diff --git a/src/test/java/de/neemann/digital/lang/TestLang.java b/src/test/java/de/neemann/digital/lang/TestLang.java index d6940b71f..1830a53b7 100644 --- a/src/test/java/de/neemann/digital/lang/TestLang.java +++ b/src/test/java/de/neemann/digital/lang/TestLang.java @@ -117,15 +117,16 @@ 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; if (state != 2) - throw new IOException("found file without proper license notice: " + f+ "\n\n" - +"Every java file must contain the lines\n\n" - +" * Use of this source code is governed by the GPL v3 license\n" - +" * that can be found in the LICENSE file.\n\n" - +"Add these lines only if you have the right to do that!"); + throw new IOException("found java file without proper license notice: " + f + "\n\n" + + "Every java file must contain the lines\n\n" + + " * Use of this source code is governed by the GPL v3 license\n" + + " * that can be found in the LICENSE file.\n\n" + + "Add these lines only if you have the right to do that!"); } private static final String PATTERN = "Lang.get(\"";