Skip to content

Commit b7f4d69

Browse files
committed
chore: remove license header; don't update license header
Signed-off-by: Caleb Hulbert <cmhulbert@gmail.com>
1 parent 04a38d6 commit b7f4d69

153 files changed

Lines changed: 6 additions & 4495 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.

pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,13 @@
137137

138138
<properties>
139139
<package-name>org.janelia.saalfeldlab.n5</package-name>
140+
140141
<license.licenseName>bsd_2</license.licenseName>
141142
<license.projectName>Not HDF5</license.projectName>
142143
<license.organizationName>Saalfeld Lab</license.organizationName>
143144
<license.copyrightOwners>Stephan Saalfeld</license.copyrightOwners>
144-
145-
<license.excludes>**/*.json</license.excludes>
145+
<license.skipUpdateLicense>true</license.skipUpdateLicense>
146+
<license.skipUpdateProjectLicense>true</license.skipUpdateProjectLicense>
146147

147148
<!-- NB: Deploy releases to the SciJava Maven repository. -->
148149
<releaseProfiles>sign,deploy-to-scijava</releaseProfiles>

src/main/java/org/janelia/saalfeldlab/n5/AbstractDataBlock.java

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,6 @@
1-
/*-
2-
* #%L
3-
* Not HDF5
4-
* %%
5-
* Copyright (C) 2017 - 2025 Stephan Saalfeld
6-
* %%
7-
* Redistribution and use in source and binary forms, with or without
8-
* modification, are permitted provided that the following conditions are met:
9-
*
10-
* 1. Redistributions of source code must retain the above copyright notice,
11-
* this list of conditions and the following disclaimer.
12-
* 2. Redistributions in binary form must reproduce the above copyright notice,
13-
* this list of conditions and the following disclaimer in the documentation
14-
* and/or other materials provided with the distribution.
15-
*
16-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
* POSSIBILITY OF SUCH DAMAGE.
27-
* #L%
28-
*/
291
package org.janelia.saalfeldlab.n5;
302

313
import java.util.function.ToIntFunction;
32-
33-
/**
34-
* Abstract base class for {@link DataBlock} implementations.
35-
*
36-
* @param <T>
37-
* the block data type
38-
*
39-
* @author Stephan Saalfeld
40-
*/
414
public abstract class AbstractDataBlock<T> implements DataBlock<T> {
425

436
protected final int[] size;

src/main/java/org/janelia/saalfeldlab/n5/ByteArrayDataBlock.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
1-
/*-
2-
* #%L
3-
* Not HDF5
4-
* %%
5-
* Copyright (C) 2017 - 2025 Stephan Saalfeld
6-
* %%
7-
* Redistribution and use in source and binary forms, with or without
8-
* modification, are permitted provided that the following conditions are met:
9-
*
10-
* 1. Redistributions of source code must retain the above copyright notice,
11-
* this list of conditions and the following disclaimer.
12-
* 2. Redistributions in binary form must reproduce the above copyright notice,
13-
* this list of conditions and the following disclaimer in the documentation
14-
* and/or other materials provided with the distribution.
15-
*
16-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
* POSSIBILITY OF SUCH DAMAGE.
27-
* #L%
28-
*/
291
package org.janelia.saalfeldlab.n5;
302

313
public class ByteArrayDataBlock extends AbstractDataBlock<byte[]> {

src/main/java/org/janelia/saalfeldlab/n5/Bzip2Compression.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
1-
/*-
2-
* #%L
3-
* Not HDF5
4-
* %%
5-
* Copyright (C) 2017 - 2025 Stephan Saalfeld
6-
* %%
7-
* Redistribution and use in source and binary forms, with or without
8-
* modification, are permitted provided that the following conditions are met:
9-
*
10-
* 1. Redistributions of source code must retain the above copyright notice,
11-
* this list of conditions and the following disclaimer.
12-
* 2. Redistributions in binary form must reproduce the above copyright notice,
13-
* this list of conditions and the following disclaimer in the documentation
14-
* and/or other materials provided with the distribution.
15-
*
16-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
* POSSIBILITY OF SUCH DAMAGE.
27-
* #L%
28-
*/
291
package org.janelia.saalfeldlab.n5;
302

313
import java.io.IOException;

src/main/java/org/janelia/saalfeldlab/n5/CachedGsonKeyValueN5Reader.java

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
1-
/*-
2-
* #%L
3-
* Not HDF5
4-
* %%
5-
* Copyright (C) 2017 - 2025 Stephan Saalfeld
6-
* %%
7-
* Redistribution and use in source and binary forms, with or without
8-
* modification, are permitted provided that the following conditions are met:
9-
*
10-
* 1. Redistributions of source code must retain the above copyright notice,
11-
* this list of conditions and the following disclaimer.
12-
* 2. Redistributions in binary form must reproduce the above copyright notice,
13-
* this list of conditions and the following disclaimer in the documentation
14-
* and/or other materials provided with the distribution.
15-
*
16-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
* POSSIBILITY OF SUCH DAMAGE.
27-
* #L%
28-
*/
291
package org.janelia.saalfeldlab.n5;
302

313
import java.lang.reflect.Type;
@@ -38,12 +10,6 @@
3810
import com.google.gson.Gson;
3911
import com.google.gson.JsonElement;
4012
import com.google.gson.JsonObject;
41-
42-
/**
43-
* {@link N5Reader} implementation through {@link KeyValueAccess} with JSON
44-
* attributes parsed with {@link Gson}.
45-
*
46-
*/
4713
public interface CachedGsonKeyValueN5Reader extends GsonKeyValueN5Reader, N5JsonCacheableContainer {
4814

4915
default N5JsonCache newCache() {

src/main/java/org/janelia/saalfeldlab/n5/CachedGsonKeyValueN5Writer.java

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,9 @@
1-
/*-
2-
* #%L
3-
* Not HDF5
4-
* %%
5-
* Copyright (C) 2017 - 2025 Stephan Saalfeld
6-
* %%
7-
* Redistribution and use in source and binary forms, with or without
8-
* modification, are permitted provided that the following conditions are met:
9-
*
10-
* 1. Redistributions of source code must retain the above copyright notice,
11-
* this list of conditions and the following disclaimer.
12-
* 2. Redistributions in binary form must reproduce the above copyright notice,
13-
* this list of conditions and the following disclaimer in the documentation
14-
* and/or other materials provided with the distribution.
15-
*
16-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
* POSSIBILITY OF SUCH DAMAGE.
27-
* #L%
28-
*/
291
package org.janelia.saalfeldlab.n5;
302

313
import org.janelia.saalfeldlab.n5.N5Exception.N5IOException;
324

335
import com.google.gson.Gson;
346
import com.google.gson.JsonElement;
35-
36-
/**
37-
* Cached default implementation of {@link N5Writer} with JSON attributes parsed
38-
* with {@link Gson}.
39-
*/
407
public interface CachedGsonKeyValueN5Writer extends CachedGsonKeyValueN5Reader, GsonKeyValueN5Writer {
418

429
@Override

src/main/java/org/janelia/saalfeldlab/n5/ChannelLock.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99
import java.nio.file.Files;
1010
import java.nio.file.Path;
1111
import java.nio.file.StandardOpenOption;
12-
13-
/**
14-
* Holds a channel and system-level file lock (shared for writing, non-shared
15-
* for reading) and keeps it open until this {@code ChannelLock} is {@link
16-
* #close() closed}.
17-
*/
1812
class ChannelLock implements Closeable {
1913

2014
private final FileChannel channel;

src/main/java/org/janelia/saalfeldlab/n5/Compression.java

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
1-
/*-
2-
* #%L
3-
* Not HDF5
4-
* %%
5-
* Copyright (C) 2017 - 2025 Stephan Saalfeld
6-
* %%
7-
* Redistribution and use in source and binary forms, with or without
8-
* modification, are permitted provided that the following conditions are met:
9-
*
10-
* 1. Redistributions of source code must retain the above copyright notice,
11-
* this list of conditions and the following disclaimer.
12-
* 2. Redistributions in binary form must reproduce the above copyright notice,
13-
* this list of conditions and the following disclaimer in the documentation
14-
* and/or other materials provided with the distribution.
15-
*
16-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
* POSSIBILITY OF SUCH DAMAGE.
27-
* #L%
28-
*/
291
package org.janelia.saalfeldlab.n5;
302

313
import java.io.Serializable;
@@ -39,21 +11,6 @@
3911
import org.janelia.saalfeldlab.n5.codec.CodecInfo;
4012
import org.janelia.saalfeldlab.n5.codec.DataCodecInfo;
4113
import org.scijava.annotations.Indexable;
42-
43-
/**
44-
* This interface is used to indicate that a {@link DataCodec} can be
45-
* serialized as a "compression" for the N5 format (using the N5 API).
46-
* <p>
47-
* N5Readers and N5Writers for the N5 format can declare DataCodecs that
48-
* implement this interface so that the {@link CompressionAdapter} is used for
49-
* serialization.
50-
* <p>
51-
* See also: an alternative method for serializing general {@link CodecInfo}s is
52-
* with the {@link NameConfigAdapter}. This interface remains for legacy
53-
* (de)serialization.
54-
*
55-
* @author Stephan Saalfeld
56-
*/
5714
public interface Compression extends Serializable, DataCodec, DataCodecInfo {
5815

5916
/**

src/main/java/org/janelia/saalfeldlab/n5/CompressionAdapter.java

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
1-
/*-
2-
* #%L
3-
* Not HDF5
4-
* %%
5-
* Copyright (C) 2017 - 2025 Stephan Saalfeld
6-
* %%
7-
* Redistribution and use in source and binary forms, with or without
8-
* modification, are permitted provided that the following conditions are met:
9-
*
10-
* 1. Redistributions of source code must retain the above copyright notice,
11-
* this list of conditions and the following disclaimer.
12-
* 2. Redistributions in binary form must reproduce the above copyright notice,
13-
* this list of conditions and the following disclaimer in the documentation
14-
* and/or other materials provided with the distribution.
15-
*
16-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
* POSSIBILITY OF SUCH DAMAGE.
27-
* #L%
28-
*/
291
package org.janelia.saalfeldlab.n5;
302

313
import java.lang.reflect.Constructor;
@@ -49,13 +21,6 @@
4921
import com.google.gson.JsonParseException;
5022
import com.google.gson.JsonSerializationContext;
5123
import com.google.gson.JsonSerializer;
52-
53-
/**
54-
* Compression adapter, auto-discovers annotated compression implementations
55-
* in the classpath.
56-
*
57-
* @author Stephan Saalfeld
58-
*/
5924
public class CompressionAdapter implements JsonDeserializer<Compression>, JsonSerializer<Compression> {
6025

6126
private static CompressionAdapter instance = null;

0 commit comments

Comments
 (0)