Skip to content

Commit

Permalink
Fix javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
fh-ms committed Jul 15, 2021
1 parent 4d3661f commit c801597
Show file tree
Hide file tree
Showing 29 changed files with 38 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ public default boolean exists()

/**
* Removes all child items ({@link ADirectory} or {@link AFile}) that have no physical equivalent.
* @return
*/
public int consolidate();

Expand Down
5 changes: 0 additions & 5 deletions afs/afs/src/main/java/one/microstream/afs/types/AItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,9 @@ public interface AItem

/**
* The value that uniquely identifies the item locally in its {@link #parent()} directory.
* <p>
* Note that this value might be a combination of {@link #name()} and {@link #type()},
* but such a relation is not mandatory.
*
* @see #parent()
* @see #toPathString()
* @see #name()
* @see #type()
*
* @return the item's locally unique identifier.
*/
Expand Down
1 change: 0 additions & 1 deletion afs/afs/src/main/java/one/microstream/afs/types/ARoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public default String protocol()
* @param protocol
* @param identifier
*
* @return
*/
public static ARoot New(
final AFileSystem fileSystem,
Expand Down
1 change: 0 additions & 1 deletion base/src/main/java/one/microstream/X.java
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,6 @@ public static <T> WeakReference<T>[] WeakReferences(final T... referents)
*
* @param <T>
* @param array
* @return
*/
public static <T> WeakReference<T>[] consolidateWeakReferences(final WeakReference<T>[] array)
{
Expand Down
6 changes: 3 additions & 3 deletions base/src/main/java/one/microstream/chars/XChars.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public static final boolean isNonWhitespace(final char c)
* Arbitrary threshold of 1000 to discrimate "short" strings from "long" strings.<br>
* The rationale behind that is that "short" strings usually allow for simpler and faster algorithms,
* which become inefficient on larger strings. For example a two-pass processing of a splitting algorithm.
* @return
* @return 1000
*/
public static final int shortStringLength()
{
Expand Down Expand Up @@ -253,8 +253,8 @@ public static final Charset standardCharset()

/**
* Alias for {@link Charset#defaultCharset()}, which returns sometimes the one thing and sometimes another.
* It is strongly advised to use a reliable {@link Charset} querying method, like {@link utf8}, which also
* is the only reasonable choice for the {@link standardCharset}.
* It is strongly advised to use a reliable {@link Charset} querying method, like UTF-8, which also
* is the only reasonable choice for the standard charset.
*
* @return {@link Charset#defaultCharset()}
*/
Expand Down
10 changes: 5 additions & 5 deletions base/src/main/java/one/microstream/collections/BulkList.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public static final <E> BulkList<E> NewFromSingle(final E initialElement)
* Pseudo-constructor method to create a new {@link BulkList} instance containing all elements of the passed
* array. The element size of the new instance will be equal to the passed arrays length.
*
* @param elements the initial elements for the new instance.
* @param initialElements the initial elements for the new instance.
* @return a new {@link BulkList} instance.
* @throws NullPointerException if an explicit {@code null} array reference was passed.
*/
Expand All @@ -193,7 +193,7 @@ public static final <E> BulkList<E> New(final E... initialElements)
/**
* Pseudo-constructor method to create a new {@link BulkList} instance and adds all the given elements to it.
*
* @param elements to add to the created instance
* @param initialElements to add to the created instance
* @return a new {@link BulkList} instance.
*/
public static final <E> BulkList<E> New(final XIterable<? extends E> initialElements)
Expand All @@ -206,7 +206,7 @@ public static final <E> BulkList<E> New(final XIterable<? extends E> initialElem
/**
* Pseudo-constructor method to create a new {@link BulkList} instance and adds all the given elements to it.
*
* @param elements to add to the created instance
* @param initialElements to add to the created instance
* @return a new {@link BulkList} instance.
*/
public static final <E> BulkList<E> New(final Iterable<? extends E> initialElements)
Expand All @@ -220,7 +220,7 @@ public static final <E> BulkList<E> New(final Iterable<? extends E> initialEleme
* Pseudo-constructor method to create a new {@link BulkList} instance with the needed amount of capacity and adds all
* elements to it.
*
* @param elements to add to the created instance
* @param initialElements to add to the created instance
* @return a new {@link BulkList} instance.
*/
public static final <E> BulkList<E> New(final XGettingCollection<? extends E> initialElements)
Expand Down Expand Up @@ -784,7 +784,7 @@ public final <P extends Consumer<? super E>> P iterate(final P procedure)

/**
* {@inheritDoc}
* @see {@link AbstractArrayStorage#join}
* @see AbstractArrayStorage#join(Object[], int, BiConsumer, Object)
*/
@Override
public final <A> A join(final BiConsumer<? super E, ? super A> joiner, final A aggregate)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,8 @@ public final <P extends IndexedAcceptor<? super E>> P iterateIndexed(final P pro

/**
* {@inheritDoc}
* @see {@link AbstractArrayStorage#join}
*
* @see AbstractArrayStorage#join(Object[], int, BiConsumer, Object)
*/
@Override
public final <A> A join(final BiConsumer<? super E, ? super A> joiner, final A aggregate)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

import java.util.function.BiConsumer;

/**
*
* @param <E> type of data to join
*/
public interface XJoinable<E>
{
/**
Expand All @@ -30,7 +34,6 @@ public interface XJoinable<E>
*
* @param joiner is the actual function to do the joining
* @param aggregate where to join into
* @param <E> type of data to join
* @param <A> type of aggregate
*/
public <A> A join(BiConsumer<? super E, ? super A> joiner, A aggregate);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ public E remove()
*
* @return {@code null}.
* @see #get()
* @see #addForCurrentThread(Object)
*/
protected E lookupMissFallbackElement()
{
Expand Down
9 changes: 1 addition & 8 deletions base/src/main/java/one/microstream/io/XIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ public static <C extends Consumer<? super Path>> C listEntries(
* @param <C>
* @param directory
* @param logic
* @return
* @throws IOException
*/
public static <C extends Consumer<? super Path>> C iterateEntries(
Expand All @@ -506,7 +505,6 @@ public static <C extends Consumer<? super Path>> C iterateEntries(
* @param directory
* @param logic
* @param selector
* @return
* @throws IOException
*/
public static <C extends Consumer<? super Path>> C iterateEntries(
Expand Down Expand Up @@ -674,7 +672,6 @@ public static final <T> T readOneShot(final Path file, final IoOperationSR<FileC
* strings right away?
*
* @param filePath
* @return
* @throws IOException
*/
public static String readString(final String filePath)
Expand All @@ -693,7 +690,6 @@ public static String readString(final String filePath)
*
* @param filePath
* @param charSet
* @return
* @throws IOException
*/
public static String readString(final String filePath, final Charset charSet)
Expand Down Expand Up @@ -1308,7 +1304,7 @@ public static long copyFile(
* @throws IOException as specified by {@link FileChannel#transferFrom(java.nio.channels.ReadableByteChannel, long, long)}
*
* @see FileChannel#transferFrom(java.nio.channels.ReadableByteChannel, long, long)
* @see #copyFile(Path, Path)
* @see #copyFile(Path, Path, OpenOption...)
*/
public static long copyFile(
final FileChannel sourceChannel,
Expand All @@ -1324,7 +1320,6 @@ public static long copyFile(
* @param sourceChannel
* @param targetChannel
* @param targetPosition
* @return
* @throws IOException
*/
public static long copyFile(
Expand Down Expand Up @@ -1578,7 +1573,6 @@ public static final <C extends Consumer<? super Path>> C listEntries(
* @param <C>
* @param directory
* @param logic
* @return
* @throws IORuntimeException
*/
public static <C extends Consumer<? super Path>> C iterateEntries(
Expand Down Expand Up @@ -1606,7 +1600,6 @@ public static <C extends Consumer<? super Path>> C iterateEntries(
* @param directory
* @param logic
* @param selector
* @return
* @throws IORuntimeException
*/
public static <C extends Consumer<? super Path>> C iterateEntries(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ public default byte[] asByteArray(final long value)
*
* @param objectClass
* @param field
* @return
*/
public long objectFieldOffset(Class<?> objectClass, Field field);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public default <T extends S> T copyTo(final T targetInstance)

/**
* Does not necessarily have to be S. S could be an interface.
* @return
*/
public Class<?> sourceClass();

Expand Down
5 changes: 0 additions & 5 deletions base/src/main/java/one/microstream/reflect/XReflect.java
Original file line number Diff line number Diff line change
Expand Up @@ -802,8 +802,6 @@ public static final Class<?> resolveType(final String typeName, final ClassLoade
*
* @param typeName
*
* @return
*
* @throws LinkageError
* @throws ExceptionInInitializerError
* @throws ClassNotFoundException
Expand Down Expand Up @@ -935,7 +933,6 @@ public static final ClassLoader defaultTypeResolvingClassLoader()
* Make sure this is a suitable {@link ClassLoader} when using this method.
*
* @param typeName
* @return
*/
public static final Class<?> resolveType(final String typeName)
throws LinkageError, ExceptionInInitializerError, ClassNotFoundException
Expand All @@ -948,7 +945,6 @@ public static final Class<?> resolveType(final String typeName)
* Make sure this is a suitable {@link ClassLoader} when using this method.
*
* @param className
* @return
*/
public static final Class<?> tryResolveType(final String className)
{
Expand All @@ -960,7 +956,6 @@ public static final Class<?> tryResolveType(final String className)
* Make sure this is a suitable {@link ClassLoader} when using this method.
*
* @param typeNames
* @return
*/
public static final Class<?> iterativeResolveType(final String... typeNames)
throws ClassNotFoundException
Expand Down
1 change: 0 additions & 1 deletion base/src/main/java/one/microstream/util/BundleInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public static BundleInfo LoadBase()
/**
*
* @param bundleName the name of the bundle, in Maven environments the artifact id
* @return
*/
public static BundleInfo Load(final String bundleName)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ private ByteUnit(
* Returns the number of bytes, which this unit multiplied by <code>value</code> yield
*
* @param value
* @return
*/
public long toBytes(
final double value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public default Short getShort(final String key)
* Gets the assigned value of the specified key as {@link Integer},
* or <code>null</code> if the configuration doesn't contain the key.
* <p>
* The String value is parsed according to {@link Integer#parseInteger(String)}.
* The String value is parsed according to {@link Integer#parseInt(String)}.
*
* @param key the key to look up
* @return the assigned value, or <code>null</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public default Configuration.Builder mapConfiguration(final S source)
/**
* Adds all entries contained in a source to the given {@link Configuration#Builder()}.
*
* @param the builder to map the entries to
* @param builder the builder to map the entries to
* @param source the source to take the entries from
* @return the given {@link Configuration#Builder()}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* A utility interface to parse values from external formats to a {@link Configuration#Builder()}.
*
* @see Configuration.Builder#load(ConfigurationMapper, Object)
* @see Configuration.Builder#load(ConfigurationLoader, ConfigurationParser)
* @see ConfigurationMapper
*/
@FunctionalInterface
Expand All @@ -46,7 +46,7 @@ public default Configuration.Builder parseConfiguration(final String input)
/**
* Parses all entries contained in the input to the given {@link Configuration#Builder()}.
*
* @param the builder to map the entries to
* @param builder the builder to map the entries to
* @param input the source to parse the entries from
* @return the given {@link Configuration#Builder()}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public static byte[] parseIpV4Address(final String ipV4Address)
* Based on <a href="https://en.wikipedia.org/wiki/IPv6">https://en.wikipedia.org/wiki/IPv6</a>.
*
* @param ipV6Address
* @return
*/
// Because I have nothing better to do than writing an IP address parser. Yay.
public static byte[] parseIpV6Address(final String ipV6Address)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,6 @@ public static final String derivePersistentTypeNameEnum(
* @param <T>
* @param dataType
* @param entityType
* @return
* @throws ReflectiveOperationException
*/
public static <D, T> PersistenceTypeHandler<D, T> searchProvidedTypeHandler(
Expand Down
4 changes: 0 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import one.microstream.storage.types.StorageDataFileEvaluator;
import one.microstream.storage.types.StorageEntityCacheEvaluator;
import one.microstream.storage.types.StorageFileNameProvider;
import one.microstream.storage.types.StorageFileProvider;
import one.microstream.storage.types.StorageHousekeepingController;
import one.microstream.storage.types.StorageLiveFileProvider;

Expand Down Expand Up @@ -1319,7 +1318,6 @@ public default double getDataFileDissolveRatio()
*
* @return a new {@link Configuration}
*
* @see StorageFileProvider.Defaults
* @see StorageChannelCountProvider.Defaults
* @see StorageHousekeepingController.Defaults
* @see StorageEntityCacheEvaluator.Defaults
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ public default EmbeddedStorageConfigurationBuilder setBackupDirectoryInUserHome(
* {@link #setHousekeepingTimeBudget(Duration)} the maximum processor
* time for housekeeping work can be set. Default is one second.
*
* @param houseKeepingInterval
* the new interval
* @param housekeepingInterval the new interval
*
* @see #setHousekeepingTimeBudget(Duration)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,22 +113,22 @@ public interface EmbeddedStorageConfigurationPropertyNames
public final static String ENTITY_CACHE_THRESHOLD = "entity-cache-threshold";

/**
* @see EmbeddedStorageConfigurationBuilder#setEntityCacheTimeout(long)
* @see EmbeddedStorageConfigurationBuilder#setEntityCacheTimeout(java.time.Duration)
*/
public final static String ENTITY_CACHE_TIMEOUT = "entity-cache-timeout";

/**
* @see EmbeddedStorageConfigurationBuilder#setDataFileMinimumSize(int)
* @see EmbeddedStorageConfigurationBuilder#setDataFileMinimumSize(one.microstream.configuration.types.ByteSize)
*/
public final static String DATA_FILE_MINIMUM_SIZE = "data-file-minimum-size";

/**
* @see EmbeddedStorageConfigurationBuilder#setDataFileMaximumSize(int)
* @see EmbeddedStorageConfigurationBuilder#setDataFileMaximumSize(one.microstream.configuration.types.ByteSize)
*/
public final static String DATA_FILE_MAXIMUM_SIZE = "data-file-maximum-size";

/**
* @see EmbeddedStorageConfigurationBuilder#setDataFileDissolveRatio(double)
* @see EmbeddedStorageConfigurationBuilder#setDataFileMinimumUseRatio(double)
*/
public final static String DATA_FILE_MINIMUM_USE_RATIO = "data-file-minimum-use-ratio";

Expand Down
Loading

0 comments on commit c801597

Please sign in to comment.