remove @author tags to avoid confusion

main
Jörg Prante 2 years ago
parent bbd498482a
commit 5cd5ae96a1

@ -37,8 +37,6 @@ import java.util.stream.Stream;
* though the contents should always be the same. * though the contents should always be the same.
* <p> * <p>
* While not technically thread safe, it should still behave correctly. * While not technically thread safe, it should still behave correctly.
*
* @author peter.lawrey
*/ */
@SuppressWarnings({"rawtypes", "unchecked"}) @SuppressWarnings({"rawtypes", "unchecked"})
public abstract class AbstractInterner<T> { public abstract class AbstractInterner<T> {

@ -1,4 +0,0 @@
package org.xbib.datastructures.charset;
public class CharArrayUtil {
}

@ -1,32 +1,10 @@
package org.xbib.datastructures.charset; package org.xbib.datastructures.charset;
/*
* #%L
* ch-commons-charset
* %%
* Copyright (C) 2012 Cloudhopper by Twitter
* %%
* 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.
* #L%
*/
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
/** /**
* Utility class for encoding and decoding between Strings and byte arrays. * Utility class for encoding and decoding between Strings and byte arrays.
*
* @author joelauer (twitter: @jjlauer or <a href="http://twitter.com/jjlauer" target=window>http://twitter.com/jjlauer</a>)
*/ */
public class CharsetUtil { public class CharsetUtil {

@ -1,29 +1,7 @@
package org.xbib.datastructures.charset; package org.xbib.datastructures.charset;
/*
* #%L
* ch-commons-charset
* %%
* Copyright (C) 2012 Cloudhopper by Twitter
* %%
* 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.
* #L%
*/
/** /**
* Utility for packing and unpacking 8-bit to/from 7-bit byte arrays. * Utility for packing and unpacking 8-bit to/from 7-bit byte arrays.
*
* @author joelauer (twitter: @jjlauer or <a href="http://twitter.com/jjlauer" target=window>http://twitter.com/jjlauer</a>)
*/ */
public class GSMBitPacker { public class GSMBitPacker {

@ -1,33 +1,11 @@
package org.xbib.datastructures.charset; package org.xbib.datastructures.charset;
/*
* #%L
* ch-commons-charset
* %%
* Copyright (C) 2012 Cloudhopper by Twitter
* %%
* 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.
* #L%
*/
import java.text.Normalizer; import java.text.Normalizer;
/** /**
* Utility class for working with text used on mobile phones (primarily SMS). * Utility class for working with text used on mobile phones (primarily SMS).
* Helpful methods for converting unicode characters into their ascii equivalents * Helpful methods for converting unicode characters into their ascii equivalents
* such as smart quotes to dumb quotes. * such as smart quotes to dumb quotes.
*
* @author joelauer (twitter: @jjlauer or <a href="http://twitter.com/jjlauer" target=window>http://twitter.com/jjlauer</a>)
*/ */
public class MobileTextUtil { public class MobileTextUtil {
@ -49,7 +27,7 @@ public class MobileTextUtil {
{ '\u2026', '.' }, // actually "...", but just replacing with "." { '\u2026', '.' }, // actually "...", but just replacing with "."
{ '\u2039', '<' }, { '\u2039', '<' },
{ '\u203A', '>' }, { '\u203A', '>' },
/** deprecated at recommendation by Turkcell - these replacements changed meaning too much */ // deprecated at recommendation by Turkcell - these replacements changed meaning too much
//{ '\u0131', '1' }, // U+0131 is a lower case letter dotless i (ı) //{ '\u0131', '1' }, // U+0131 is a lower case letter dotless i (ı)
//{ '\u0130', 'i' }, // U+0130 (İ) is capital i with dot //{ '\u0130', 'i' }, // U+0130 (İ) is capital i with dot
}; };
@ -70,10 +48,10 @@ public class MobileTextUtil {
int replaced = 0; int replaced = 0;
for (int i = 0; i < buffer.length(); i++) { for (int i = 0; i < buffer.length(); i++) {
char c = buffer.charAt(i); char c = buffer.charAt(i);
for (int j = 0; j < CHAR_TABLE.length; j++) { for (char[] chars : CHAR_TABLE) {
if (c == CHAR_TABLE[j][0]) { if (c == chars[0]) {
replaced++; replaced++;
buffer.setCharAt(i, CHAR_TABLE[j][1]); buffer.setCharAt(i, chars[1]);
} }
} }
} }

@ -25,15 +25,4 @@ public class UTF8Charset extends JavaCharset {
} }
return bytes.length; return bytes.length;
} }
/**
* Does not actually calculate a proper UTF-8 length, but rather a Modified
* UTF-8 byte length. It normally matches a real UTF-8 encoding but isn't
* technically completely valid.
* @deprecated
*/
@Deprecated
public static int calculateByteLength(final String s) {
return ModifiedUTF8Charset.calculateByteLength(s);
}
} }

@ -33,44 +33,8 @@ import java.util.Arrays;
* <p> * <p>
* There is also a "fast" version of all decode methods that works the same way as the normal ones, but * There is also a "fast" version of all decode methods that works the same way as the normal ones, but
* har a few demands on the decoded input. Normally though, these fast verions should be used if the source if * har a few demands on the decoded input. Normally though, these fast verions should be used if the source if
* the input is known and it hasn't bee tampered with.<br><br> * the input is known and it hasn't bee tampered with.
* <p>
* If you find the code useful or you find a bug, please send me a note at base64 @ miginfocom . com.
* <p>
* Licence (BSD):
* ==============
* <p>
* Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (base64 @ miginfocom . com)
* All rights reserved.
* <p>
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
* list of conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
* Neither the name of the MiG InfoCom AB nor the names of its contributors may be
* used to endorse or promote products derived from this software without specific
* prior written permission.
* <p>
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
* @author Mikael Grev
* Date: 2004-aug-02
* Time: 11:31:11
* @version 2.2
*/ */
abstract class Base64 { abstract class Base64 {
private static final char[] CA = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".toCharArray(); private static final char[] CA = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".toCharArray();
private static final byte[] BA; private static final byte[] BA;

@ -37,42 +37,7 @@ import java.util.Arrays;
* *
* There is also a "fast" version of all decode methods that works the same way as the normal ones, but * There is also a "fast" version of all decode methods that works the same way as the normal ones, but
* har a few demands on the decoded input. Normally though, these fast verions should be used if the source if * har a few demands on the decoded input. Normally though, these fast verions should be used if the source if
* the input is known and it hasn't bee tampered with.<br><br> * the input is known and it hasn't bee tampered with.
*
* If you find the code useful or you find a bug, please send me a note at base64 @ miginfocom . com.
*
* Licence (BSD):
* ==============
*
* Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (base64 @ miginfocom . com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
* list of conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
* Neither the name of the MiG InfoCom AB nor the names of its contributors may be
* used to endorse or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
* @version 2.2
* @author Mikael Grev
* Date: 2004-aug-02
* Time: 11:31:11
*/ */
abstract class Base64 { abstract class Base64 {

@ -12,12 +12,6 @@ Leave it to a higher level to validate this?
The JSON standard says that keys *SHOULD* be unique, not *MUST*!!! The JSON standard says that keys *SHOULD* be unique, not *MUST*!!!
That means we should support this when parsing. That means we should support this when parsing.
*/ */
/**
* @author yonik
* @version $Id: MyParse.java 479919 2006-11-28 05:53:55Z yonik $
*/
public class MyParse { public class MyParse {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
StringReader sr; StringReader sr;

@ -2,8 +2,6 @@ package org.xbib.datastructures.json.simple;
/** /**
* ParseException explains why and where the error occurs in source JSON text. * ParseException explains why and where the error occurs in source JSON text.
*
* @author FangYidong&lt;fangyidong@yahoo.com.cn&gt;
*/ */
public class ParseException extends Exception { public class ParseException extends Exception {
private static final long serialVersionUID = -7880698968187728547L; private static final long serialVersionUID = -7880698968187728547L;

@ -29,8 +29,6 @@ import static org.junit.Assert.fail;
/** /**
* Tests for QueueFile. * Tests for QueueFile.
*
* @author Bob Lee (bob@squareup.com)
*/ */
@SuppressWarnings("ResultOfMethodCallIgnored") @SuppressWarnings("ResultOfMethodCallIgnored")
@RunWith(Parameterized.class) @RunWith(Parameterized.class)

@ -25,8 +25,6 @@ import java.util.concurrent.atomic.AtomicReferenceArray;
* The constraints defined in the {@link Node} interface ensure that the {@link AtomicReferenceArray} always remains in * The constraints defined in the {@link Node} interface ensure that the {@link AtomicReferenceArray} always remains in
* ascending sorted order regardless of modifications performed concurrently, as long as the modifications comply with * ascending sorted order regardless of modifications performed concurrently, as long as the modifications comply with
* the constraints. This node enforces those constraints. * the constraints. This node enforces those constraints.
*
* @author Niall Gallagher
*/ */
public class CharArrayNodeDefault implements Node { public class CharArrayNodeDefault implements Node {

@ -17,8 +17,6 @@ import java.util.List;
* <p/> * <p/>
* When the application supplies {@link VoidValue} for a value, this factory will omit actually storing that value * When the application supplies {@link VoidValue} for a value, this factory will omit actually storing that value
* in the tree and will return one of the VoidValue-optimized nodes above which can reduce memory usage. * in the tree and will return one of the VoidValue-optimized nodes above which can reduce memory usage.
*
* @author Niall Gallagher
*/ */
public class DefaultCharArrayNodeFactory implements NodeFactory { public class DefaultCharArrayNodeFactory implements NodeFactory {

@ -18,8 +18,6 @@ import java.util.List;
* <p/> * <p/>
* When the application supplies {@link VoidValue} for a value, this factory will omit actually storing that value * When the application supplies {@link VoidValue} for a value, this factory will omit actually storing that value
* in the tree and will return one of the Void-optimized nodes above which can reduce memory usage. * in the tree and will return one of the Void-optimized nodes above which can reduce memory usage.
*
* @author Niall Gallagher
*/ */
public class DefaultCharSequenceNodeFactory implements NodeFactory { public class DefaultCharSequenceNodeFactory implements NodeFactory {

@ -9,7 +9,6 @@ import java.util.NoSuchElementException;
* This class is inspired by com.google.common.collect.AbstractIterator in Google Guava, * This class is inspired by com.google.common.collect.AbstractIterator in Google Guava,
* which was written by the Google Guava Authors, in particular by Kevin Bourrillion. * which was written by the Google Guava Authors, in particular by Kevin Bourrillion.
* *
* @author Niall Gallagher
*/ */
public abstract class LazyIterator<T> implements Iterator<T> { public abstract class LazyIterator<T> implements Iterator<T> {

@ -66,8 +66,6 @@ import java.util.List;
* in a size-reduced encoding such as UTF-8 * in a size-reduced encoding such as UTF-8
* </li> * </li>
* </ul> * </ul>
*
* @author Niall Gallagher
*/ */
public interface Node extends NodeCharacterProvider { public interface Node extends NodeCharacterProvider {

@ -73,9 +73,6 @@ import java.util.SortedMap;
* {Lake=Lake, Lax=Lax} * {Lake=Lake, Lax=Lax}
* *
* </pre> * </pre>
*
* @author Roger Kapsi
* @author Sam Berlin
*/ */
public class PatriciaTrie<K, V> extends AbstractMap<K, V> implements Trie<K, V> { public class PatriciaTrie<K, V> extends AbstractMap<K, V> implements Trie<K, V> {

@ -6,9 +6,6 @@ import java.util.SortedMap;
/** /**
* Defines the interface for a prefix tree, an ordered tree data structure. For * Defines the interface for a prefix tree, an ordered tree data structure. For
* more information, see <a href= "http://en.wikipedia.org/wiki/Trie">Tries</a>. * more information, see <a href= "http://en.wikipedia.org/wiki/Trie">Tries</a>.
*
* @author Roger Kapsi
* @author Sam Berlin
*/ */
public interface Trie<K, V> extends SortedMap<K, V> { public interface Trie<K, V> extends SortedMap<K, V> {

@ -61,7 +61,6 @@ import java.util.SortedMap;
* *
* @param <K> the type of keys maintained by this map * @param <K> the type of keys maintained by this map
* @param <V> the type of mapped values * @param <V> the type of mapped values
* @author Rohan Suri
* @see NavigableMap * @see NavigableMap
* @see BinaryComparable * @see BinaryComparable
*/ */

@ -20,8 +20,6 @@ import org.xbib.datastructures.validation.jsr305.Nullable;
/** /**
* Generated by https://github.com/making/yavi/blob/develop/scripts/generate-args.sh * Generated by https://github.com/making/yavi/blob/develop/scripts/generate-args.sh
*
* @since 0.3.0
*/ */
public class Arguments10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> public class Arguments10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>
extends Arguments9<A1, A2, A3, A4, A5, A6, A7, A8, A9> { extends Arguments9<A1, A2, A3, A4, A5, A6, A7, A8, A9> {

@ -21,8 +21,6 @@ import org.xbib.datastructures.validation.fn.Validations;
/** /**
* Generated by https://github.com/making/yavi/blob/develop/scripts/generate-args.sh * Generated by https://github.com/making/yavi/blob/develop/scripts/generate-args.sh
*
* @since 0.7.0
*/ */
public class Arguments9Combining<A, R1, R2, R3, R4, R5, R6, R7, R8, R9> { public class Arguments9Combining<A, R1, R2, R3, R4, R5, R6, R7, R8, R9> {
protected final ValueValidator<? super A, ? extends R1> v1; protected final ValueValidator<? super A, ? extends R1> v1;

@ -21,8 +21,6 @@ import org.xbib.datastructures.validation.fn.Validations;
/** /**
* Generated by https://github.com/making/yavi/blob/develop/scripts/generate-args.sh * Generated by https://github.com/making/yavi/blob/develop/scripts/generate-args.sh
*
* @since 0.7.0
*/ */
public class Arguments9Splitting<A1, A2, A3, A4, A5, A6, A7, A8, A9, R1, R2, R3, R4, R5, R6, R7, R8, R9> { public class Arguments9Splitting<A1, A2, A3, A4, A5, A6, A7, A8, A9, R1, R2, R3, R4, R5, R6, R7, R8, R9> {
protected final ValueValidator<? super A1, ? extends R1> v1; protected final ValueValidator<? super A1, ? extends R1> v1;

@ -28,8 +28,6 @@ import org.xbib.datastructures.validation.jsr305.Nullable;
/** /**
* Generated by https://github.com/making/yavi/blob/develop/scripts/generate-args.sh * Generated by https://github.com/making/yavi/blob/develop/scripts/generate-args.sh
*
* @since 0.3.0
*/ */
@FunctionalInterface @FunctionalInterface
public interface Arguments9Validator<A1, A2, A3, A4, A5, A6, A7, A8, A9, X> { public interface Arguments9Validator<A1, A2, A3, A4, A5, A6, A7, A8, A9, X> {

@ -22,9 +22,6 @@ import org.xbib.datastructures.validation.constraint.base.ChronoLocalDateConstra
/** /**
* This is the actual class for constraints on LocalDate. * This is the actual class for constraints on LocalDate.
*
* @author Diego Krupitza
* @since 0.10.0
*/ */
public class LocalDateConstraint<T> public class LocalDateConstraint<T>
extends ChronoLocalDateConstraintBase<T, LocalDate, LocalDateConstraint<T>> { extends ChronoLocalDateConstraintBase<T, LocalDate, LocalDateConstraint<T>> {

@ -22,9 +22,6 @@ import org.xbib.datastructures.validation.constraint.base.ChronoLocalDateTimeCon
/** /**
* This is the actual class for constraints on LocalDateTime. * This is the actual class for constraints on LocalDateTime.
*
* @author Diego Krupitza
* @since 0.10.0
*/ */
public class LocalDateTimeConstraint<T> extends public class LocalDateTimeConstraint<T> extends
ChronoLocalDateTimeConstraintBase<T, LocalDateTime, LocalDateTimeConstraint<T>> { ChronoLocalDateTimeConstraintBase<T, LocalDateTime, LocalDateTimeConstraint<T>> {

@ -22,9 +22,6 @@ import org.xbib.datastructures.validation.constraint.base.TemporalConstraintBase
/** /**
* This is the actual class for constraints on LocalTime. * This is the actual class for constraints on LocalTime.
*
* @author Diego Krupitza
* @since 0.10.0
*/ */
public class LocalTimeConstraint<T> public class LocalTimeConstraint<T>
extends TemporalConstraintBase<T, LocalTime, LocalTimeConstraint<T>> { extends TemporalConstraintBase<T, LocalTime, LocalTimeConstraint<T>> {

@ -22,9 +22,6 @@ import org.xbib.datastructures.validation.constraint.base.ChronoZonedDateTimeCon
/** /**
* This is the actual class for constraints on ZonedDateTime. * This is the actual class for constraints on ZonedDateTime.
*
* @author Diego Krupitza
* @since 0.10.0
*/ */
public class ZonedDateTimeConstraint<T> extends public class ZonedDateTimeConstraint<T> extends
ChronoZonedDateTimeConstraintBase<T, ZonedDateTime, ZonedDateTimeConstraint<T>> { ChronoZonedDateTimeConstraintBase<T, ZonedDateTime, ZonedDateTimeConstraint<T>> {

@ -21,9 +21,6 @@ import org.xbib.datastructures.validation.core.Constraint;
/** /**
* This is the base class for constraints on ChronoLocalDate. * This is the base class for constraints on ChronoLocalDate.
*
* @author Diego Krupitza
* @since 0.10.0
*/ */
public abstract class ChronoLocalDateConstraintBase<T, V extends ChronoLocalDate, C extends Constraint<T, V, C>> public abstract class ChronoLocalDateConstraintBase<T, V extends ChronoLocalDate, C extends Constraint<T, V, C>>
extends TemporalConstraintBase<T, V, C> { extends TemporalConstraintBase<T, V, C> {

@ -21,9 +21,6 @@ import org.xbib.datastructures.validation.core.Constraint;
/** /**
* This is the base class for constraints on ChronoLocalDateTime. * This is the base class for constraints on ChronoLocalDateTime.
*
* @author Diego Krupitza
* @since 0.10.0
*/ */
public abstract class ChronoLocalDateTimeConstraintBase<T, V extends ChronoLocalDateTime<?>, C extends Constraint<T, V, C>> public abstract class ChronoLocalDateTimeConstraintBase<T, V extends ChronoLocalDateTime<?>, C extends Constraint<T, V, C>>
extends TemporalConstraintBase<T, V, C> { extends TemporalConstraintBase<T, V, C> {

@ -21,9 +21,6 @@ import org.xbib.datastructures.validation.core.Constraint;
/** /**
* This is the base class for constraints on ChronoZonedDateTime. * This is the base class for constraints on ChronoZonedDateTime.
*
* @author Diego Krupitza
* @since 0.10.0
*/ */
public abstract class ChronoZonedDateTimeConstraintBase<T, V extends ChronoZonedDateTime<?>, C extends Constraint<T, V, C>> public abstract class ChronoZonedDateTimeConstraintBase<T, V extends ChronoZonedDateTime<?>, C extends Constraint<T, V, C>>
extends TemporalConstraintBase<T, V, C> { extends TemporalConstraintBase<T, V, C> {

@ -40,10 +40,6 @@ import static org.xbib.datastructures.validation.core.ViolationMessage.Default.T
/** /**
* This is the base class for constraints on Temporal classes. Methods in the class * This is the base class for constraints on Temporal classes. Methods in the class
* require the {@link V} to extend Temporal. * require the {@link V} to extend Temporal.
*
* @author Diego Krupitza
* @author Toshiaki Maki
* @since 0.10.0
*/ */
public abstract class TemporalConstraintBase<T, V extends TemporalAccessor, C extends Constraint<T, V, C>> public abstract class TemporalConstraintBase<T, V extends TemporalAccessor, C extends Constraint<T, V, C>>
extends ConstraintBase<T, V, C> { extends ConstraintBase<T, V, C> {

@ -36,8 +36,6 @@ import java.util.function.BiConsumer;
* *
* @param <T> the type of the instance to validate * @param <T> the type of the instance to validate
* @param <E> the type of the errors object * @param <E> the type of the errors object
* @author Toshiaki Maki
* @since 0.5.0
*/ */
public class BiValidator<T, E> implements BiConsumer<T, E> { public class BiValidator<T, E> implements BiConsumer<T, E> {
private final Validator<T> validator; private final Validator<T> validator;

@ -32,7 +32,6 @@ import org.xbib.datastructures.validation.message.MessageFormatter;
* A <code>Validator</code> instance is immutable and can be used as a singleton. * A <code>Validator</code> instance is immutable and can be used as a singleton.
* *
* @param <T> the type of the instance to validate * @param <T> the type of the instance to validate
* @author Toshiaki Maki
*/ */
public class Validator<T> implements Validatable<T> { public class Validator<T> implements Validatable<T> {
private final List<CollectionValidator<T, ?, ?>> collectionValidators; private final List<CollectionValidator<T, ?, ?>> collectionValidators;

@ -51,8 +51,6 @@ import org.xbib.datastructures.validation.message.MessageFormatter;
* </pre> * </pre>
* *
* @param <E> the type of the errors object * @param <E> the type of the errors object
* @author Toshiaki Maki
* @since 0.5.0
*/ */
public class BiValidatorFactory<E> extends ValidatorFactorySupport { public class BiValidatorFactory<E> extends ValidatorFactorySupport {
private final ErrorHandler<E> errorHandler; private final ErrorHandler<E> errorHandler;

@ -48,9 +48,6 @@ import org.xbib.datastructures.validation.message.MessageFormatter;
* } * }
* } * }
* </pre> * </pre>
*
* @author Toshiaki Maki
* @since 0.5.0
*/ */
public class ValidatorFactory extends ValidatorFactorySupport { public class ValidatorFactory extends ValidatorFactorySupport {

@ -20,10 +20,6 @@ import jxl.write.WriteException;
import org.xbib.datastructures.xslx.WriterSupport; import org.xbib.datastructures.xslx.WriterSupport;
/**
* @author floyd
*
*/
public class XLSWriterSupport extends WriterSupport { public class XLSWriterSupport extends WriterSupport {
WritableSheet sheet; WritableSheet sheet;

@ -12,10 +12,6 @@ import com.incesoft.tools.excel.xlsx.Font;
import com.incesoft.tools.excel.xlsx.Sheet; import com.incesoft.tools.excel.xlsx.Sheet;
import com.incesoft.tools.excel.xlsx.SimpleXLSXWorkbook; import com.incesoft.tools.excel.xlsx.SimpleXLSXWorkbook;
/**
* @author floyd
*
*/
public class XLSXWriterSupport extends WriterSupport { public class XLSXWriterSupport extends WriterSupport {
SimpleXLSXWorkbook workbook; SimpleXLSXWorkbook workbook;

@ -1,10 +1,5 @@
package com.incesoft.tools.excel.xlsx; package com.incesoft.tools.excel.xlsx;
/**
* @author floyd
*
*/
public class Cell { public class Cell {
Cell(String r, String s, String t, String v, String text) { Cell(String r, String s, String t, String v, String text) {
this.text = text; this.text = text;

@ -6,9 +6,7 @@ import javax.xml.stream.XMLStreamWriter;
/** /**
* Font registered in styles.xml * Font registered in styles.xml
* *
* @author floyd
*
*/ */
public class CellStyle extends IndexedObject implements SerializableEntry { public class CellStyle extends IndexedObject implements SerializableEntry {
Font font; Font font;

@ -4,10 +4,6 @@ package com.incesoft.tools.excel.xlsx;
import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter; import javax.xml.stream.XMLStreamWriter;
/**
* @author floyd
*
*/
public class Fill extends IndexedObject implements SerializableEntry { public class Fill extends IndexedObject implements SerializableEntry {
Fill() { Fill() {
} }

@ -5,9 +5,7 @@ import javax.xml.stream.XMLStreamWriter;
/** /**
* partial font of RichText OR font registered in sharedStrings(index > 0) * partial font of RichText OR font registered in sharedStrings(index > 0)
* *
* @author floyd
*
*/ */
public class Font extends IndexedObject implements SerializableEntry { public class Font extends IndexedObject implements SerializableEntry {
Font() { Font() {

@ -1,9 +1,5 @@
package com.incesoft.tools.excel.xlsx; package com.incesoft.tools.excel.xlsx;
/**
* @author floyd
*
*/
public class FontRegion { public class FontRegion {
public FontRegion(short start, short end, Font font) { public FontRegion(short start, short end, Font font) {

@ -1,10 +1,5 @@
package com.incesoft.tools.excel.xlsx; package com.incesoft.tools.excel.xlsx;
/**
* @author floyd
*
*/
public abstract class IndexedObject { public abstract class IndexedObject {
int index; int index;

@ -1,12 +1,7 @@
package com.incesoft.tools.excel.xlsx; package com.incesoft.tools.excel.xlsx;
import javax.xml.stream.XMLStreamReader; import javax.xml.stream.XMLStreamReader;
/**
* @author floyd
*
*/
public interface ParsableEntry { public interface ParsableEntry {
public void parse(XMLStreamReader reader); void parse(XMLStreamReader reader);
} }

@ -9,8 +9,6 @@ import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.XMLStreamWriter; import javax.xml.stream.XMLStreamWriter;
/** /**
* @author floyd
*
* <si> <r><t>afa</t></r> <r><rPr><color rgb="FF0000"/></rPr><t></t></r> * <si> <r><t>afa</t></r> <r><rPr><color rgb="FF0000"/></rPr><t></t></r>
* <r><t>df</t></r></si> * <r><t>df</t></r></si>
*/ */

@ -4,10 +4,6 @@ package com.incesoft.tools.excel.xlsx;
import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter; import javax.xml.stream.XMLStreamWriter;
/**
* @author floyd
*
*/
public interface SerializableEntry { public interface SerializableEntry {
public void serialize(XMLStreamWriter writer) throws XMLStreamException; void serialize(XMLStreamWriter writer) throws XMLStreamException;
} }

@ -1,13 +1,8 @@
package com.incesoft.tools.excel.xlsx; package com.incesoft.tools.excel.xlsx;
import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter; import javax.xml.stream.XMLStreamWriter;
/**
* @author floyd
*
*/
public class SharedStringText extends IndexedObject implements public class SharedStringText extends IndexedObject implements
SerializableEntry { SerializableEntry {

@ -15,9 +15,7 @@ import com.incesoft.tools.excel.xlsx.SimpleXLSXWorkbook.XMLStreamCreator;
/** /**
* One Sheet in a workbook.It provides read and write functions of the * One Sheet in a workbook.It provides read and write functions of the
* rows/cells. * rows/cells.
* *
* @author floyd
*
*/ */
public class Sheet { public class Sheet {

@ -9,10 +9,6 @@ import java.util.List;
import com.incesoft.tools.excel.xlsx.Sheet.SheetRowReader; import com.incesoft.tools.excel.xlsx.Sheet.SheetRowReader;
import com.incesoft.tools.excel.xlsx.SimpleXLSXWorkbook.Commiter; import com.incesoft.tools.excel.xlsx.SimpleXLSXWorkbook.Commiter;
/**
* @author floyd
*
*/
public class TestSJXLSX { public class TestSJXLSX {
public static void addStyleAndRichText(SimpleXLSXWorkbook wb, Sheet sheet) public static void addStyleAndRichText(SimpleXLSXWorkbook wb, Sheet sheet)

Binary file not shown.

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

6
gradlew vendored

@ -205,6 +205,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \ org.gradle.wrapper.GradleWrapperMain \
"$@" "$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args. # Use "xargs" to parse quoted args.
# #
# With -n1 it outputs one arg per line, with the quotes and backslashes removed. # With -n1 it outputs one arg per line, with the quotes and backslashes removed.

14
gradlew.bat vendored

@ -14,7 +14,7 @@
@rem limitations under the License. @rem limitations under the License.
@rem @rem
@if "%DEBUG%" == "" @echo off @if "%DEBUG%"=="" @echo off
@rem ########################################################################## @rem ##########################################################################
@rem @rem
@rem Gradle startup script for Windows @rem Gradle startup script for Windows
@ -25,7 +25,7 @@
if "%OS%"=="Windows_NT" setlocal if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0 set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=. if "%DIRNAME%"=="" set DIRNAME=.
set APP_BASE_NAME=%~n0 set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME% set APP_HOME=%DIRNAME%
@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1 %JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute if %ERRORLEVEL% equ 0 goto execute
echo. echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
:end :end
@rem End local scope for the variables with windows NT shell @rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd if %ERRORLEVEL% equ 0 goto mainEnd
:fail :fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code! rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 set EXIT_CODE=%ERRORLEVEL%
exit /b 1 if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd :mainEnd
if "%OS%"=="Windows_NT" endlocal if "%OS%"=="Windows_NT" endlocal

@ -1,7 +1,7 @@
dependencyResolutionManagement { dependencyResolutionManagement {
versionCatalogs { versionCatalogs {
libs { libs {
version('gradle', '7.4.2') version('gradle', '7.5')
version('junit', '5.8.2') version('junit', '5.8.2')
version('jackson', '2.12.7') version('jackson', '2.12.7')
library('junit-jupiter-api', 'org.junit.jupiter', 'junit-jupiter-api').versionRef('junit') library('junit-jupiter-api', 'org.junit.jupiter', 'junit-jupiter-api').versionRef('junit')

Loading…
Cancel
Save