Skip to content

Commit

Permalink
Add copyright notices to the mvel files (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
odaira committed Jul 15, 2020
1 parent 7758277 commit d5db0f0
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/build/gen_sources.mvel
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Adrien Grand and the lz4-java contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.io.*;
import java.util.*;
import org.mvel2.templates.*;
Expand Down
15 changes: 15 additions & 0 deletions src/build/source_templates/compress.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
@comment{
Copyright 2020 Adrien Grand and the lz4-java contributors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
}
static int compress64k(${storage} src, int srcOff, int srcLen, ${storage} dest, int destOff, int destEnd) {
final int srcEnd = srcOff + srcLen;
final int srcLimit = srcEnd - LAST_LITERALS;
Expand Down
15 changes: 15 additions & 0 deletions src/build/source_templates/compress_hc.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
@comment{
Copyright 2020 Adrien Grand and the lz4-java contributors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
}
@Override
public int compress(${storage} src, int srcOff, int srcLen, ${storage} dest, int destOff, int maxDestLen) {
@if{ storage == "ByteBuffer"}
Expand Down
15 changes: 15 additions & 0 deletions src/build/source_templates/decompress.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
@comment{
Copyright 2020 Adrien Grand and the lz4-java contributors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
}
@Override
public int decompress(${storage} src, final int srcOff@if{ size == "Safe" }, final int srcLen @end{}, ${storage} dest, final int destOff, int destLen) {
@if{ storage == "ByteBuffer"}
Expand Down
15 changes: 15 additions & 0 deletions src/build/source_templates/hashtable.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
@comment{
Copyright 2020 Adrien Grand and the lz4-java contributors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
}
private class HashTable {
static final int MASK = MAX_DISTANCE - 1;
int nextToUpdate;
Expand Down
15 changes: 15 additions & 0 deletions src/build/source_templates/xxhash32_hash.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
@comment{
Copyright 2020 Adrien Grand and the lz4-java contributors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
}
@Override
public int hash(${storage} buf, int off, int len, int seed) {
@if{storage == "ByteBuffer"}
Expand Down
15 changes: 15 additions & 0 deletions src/build/source_templates/xxhash64_hash.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
@comment{
Copyright 2020 Adrien Grand and the lz4-java contributors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
}
@Override
public long hash(${storage} buf, int off, int len, long seed) {
@if{storage == "ByteBuffer"}
Expand Down

0 comments on commit d5db0f0

Please sign in to comment.