Skip to content

Commit 0d214b4

Browse files
committed
Improve Javadoc.
Signed-off-by: Franz Wilhelmstötter <franz.wilhelmstoetter@gmail.com>
1 parent 85c4f6b commit 0d214b4

File tree

10 files changed

+23
-24
lines changed

10 files changed

+23
-24
lines changed

facilejdbc/src/main/java/io/jenetics/facilejdbc/Lifecycle.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class Lifecycle {
4646
/**
4747
* Runnable task/method, which might throw an exception {@code E}.
4848
*
49-
* @param <E> the exception which might be thrown
49+
* @param <E> the exception, which might be thrown
5050
*/
5151
@FunctionalInterface
5252
public interface ThrowingRunnable<E extends Exception> {
@@ -183,7 +183,7 @@ default void silentClose(final Throwable previousError) {
183183

184184
/**
185185
* Create a new {@code ExtendedCloseable} object with the given initial
186-
* release <em>methods</em>. The given list of objects are closed in
186+
* release <em>methods</em>. The given list of objects is closed in
187187
* reversed order.
188188
*
189189
* @see #of(ThrowingRunnable...)
@@ -206,7 +206,7 @@ default void silentClose(final Throwable previousError) {
206206

207207
/**
208208
* Create a new {@code ExtendedCloseable} object with the given initial
209-
* release <em>methods</em>. The given list of objects are closed in
209+
* release <em>methods</em>. The given list of objects is closed in
210210
* reversed order.
211211
*
212212
* @see #of(Collection)
@@ -230,7 +230,7 @@ default void silentClose(final Throwable previousError) {
230230
* This class represents a <em>closeable</em> value. It is useful in cases
231231
* where the object value doesn't implement the {@link AutoCloseable}
232232
* interface but needs some cleanup work to do after usage. In the following
233-
* example the create {@code file} is automatically deleted when leaving the
233+
* example the created {@code file} is automatically deleted when leaving the
234234
* {@code try} block.
235235
*
236236
* <pre>{@code
@@ -286,7 +286,7 @@ public String toString() {
286286

287287
/**
288288
* Applies the give {@code block} to the already created closeable value.
289-
* If the {@code block} throws an exception, the resource value is
289+
* If the {@code block} throws an exception, the resource value is
290290
* released, by calling the defined <em>release</em> method. The typical
291291
* use case for this method is when additional initialization of the
292292
* value is needed.
@@ -372,7 +372,7 @@ public static <T, E extends Exception> Value<T, E> of(
372372
*
373373
* @param builder the builder method
374374
* @param <T> the value type of the created <em>closeable</em> value
375-
* @param <BE> the exception type which might be thrown while building
375+
* @param <BE> the exception type, which might be thrown while building
376376
* the value
377377
* @param <VE> the exception type which might be thrown when releasing
378378
* the returned <em>closeable</em> value
@@ -408,10 +408,10 @@ public static <T, E extends Exception> Value<T, E> of(
408408
}
409409

410410
/**
411-
* This class allows to collect one or more {@link AutoCloseable} objects
411+
* This class allows collecting one or more {@link AutoCloseable} objects
412412
* into one. The registered closeable objects are closed in reverse order.
413413
* <p>
414-
* Using the {@code Resources} class can simplify the the creation of
414+
* Using the {@code Resources} class can simplify the creation of
415415
* dependent input streams, where it might be otherwise necessary to create
416416
* nested {@code try-with-resources} blocks.
417417
*
@@ -470,7 +470,7 @@ public Resources() {
470470
* resources.
471471
*
472472
* @param resource the new resource to register
473-
* @param release the method, which <em>releases</em> the the acquired
473+
* @param release the method, which <em>releases</em> the acquired
474474
* resource
475475
* @param <C> the resource type
476476
* @return the registered resource

facilejdbc/src/main/java/io/jenetics/facilejdbc/ParamValues.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import java.util.List;
2727

2828
/**
29-
* This represents a whole Sql row (parameter set). Instead of representing the
29+
* This represents a whole SQL row (parameter set). Instead of representing the
3030
* row directly, a row is defined it's <em>insertion</em> strategy.
3131
*
3232
* @see SingleParam

facilejdbc/src/main/java/io/jenetics/facilejdbc/PreparedQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
/**
3030
* A prepared query has a {@link PreparedStatement} attached and lets you do
31-
* batch inserts in a convenient way.
31+
* batch inserts conveniently.
3232
*
3333
* @author <a href="mailto:franz.wilhelmstoetter@gmail.com">Franz Wilhelmstötter</a>
3434
* @version 2.1

facilejdbc/src/main/java/io/jenetics/facilejdbc/Query.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ private static <K> Optional<K> readId(
527527

528528
/**
529529
* Executes the SQL statement in a {@link PreparedStatement} object, which
530-
* must be an SQL {@code INSERT}. It returns, the optionally generated, key
530+
* must be an SQL {@code INSERT}. It returns the optionally generated, key
531531
* for the inserted row.
532532
*
533533
* @see PreparedStatement#executeUpdate()

facilejdbc/src/main/java/io/jenetics/facilejdbc/Records.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private Records() {
9898
* @param type the record type to deconstruct
9999
* @param toColumnName function for mapping the record component to the
100100
* column names of the DB
101-
* @param fields The fields which overrides/extends the
101+
* @param fields The fields that override/extend the
102102
* automatically extracted fields from the record. It also allows
103103
* defining additional column values, derived from the given record
104104
* values.
@@ -178,7 +178,7 @@ private static <T extends Record> Dctor.Field<? super T> toFiled(
178178
* @param type the record type to deconstruct
179179
* @param toColumnName function for mapping the record component to the
180180
* column names of the DB
181-
* @param fields The fields which overrides/extends the
181+
* @param fields The fields that override/extend the
182182
* automatically extracted fields from the record. It also allows
183183
* defining additional column values, derived from the given record
184184
* values.
@@ -225,7 +225,7 @@ public static <T extends Record> Dctor<T> dctor(
225225
* @see Dctor#of(Class, Dctor.Field[])
226226
*
227227
* @param type the record type to deconstruct
228-
* @param fields The fields which overrides/extends the
228+
* @param fields The fields that override/extend the
229229
* automatically extracted fields from the record. It also allows
230230
* defining additional column values, derived from the given record
231231
* values.
@@ -243,7 +243,7 @@ public static <T extends Record> Dctor<T> dctor(
243243
}
244244

245245
/**
246-
* Converts to given a record component to a column name in
246+
* Converts to give a record component to a column name in
247247
* <a href="https://en.wikipedia.org/wiki/Snake_case">snake_case</a>.
248248
*
249249
* @see #toSnakeCase(String)

facilejdbc/src/main/java/io/jenetics/facilejdbc/Transaction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ default void accept(final SqlConsumer<? super Connection> block)
119119
* }</pre>
120120
*
121121
* @apiNote
122-
* This method implements the transactional default behaviour ot the
122+
* This method implements the transactional default behavior of the
123123
* {@link Transaction} implementation, returned by the
124124
* {@link Transactional#transaction()} interface.
125125
*

facilejdbc/src/main/java/io/jenetics/facilejdbc/Transactional.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
public interface Transactional {
115115

116116
/**
117-
* Return the DB connection. If you obtain a new connection, you are
117+
* Return the DB connection. If you get a new connection, you are
118118
* responsible for closing it after usage. This is done ideally in a
119119
* resource-try block.
120120
*
@@ -128,17 +128,17 @@ public interface Transactional {
128128
*
129129
* You are usually using the {@link #transaction()} method for getting an
130130
* instance of the {@link Transaction} interface, which is then using this
131-
* method for obtaining the needed connections.
131+
* method for getting the necessary connections.
132132
*
133133
* @see #transaction()
134134
*
135135
* @return the DB connection
136-
* @throws SQLException if obtaining a DB connection fails
136+
* @throws SQLException if getting a DB connection fails
137137
*/
138138
Connection connection() throws SQLException;
139139

140140
/**
141-
* Return a <em>Transaction</em> object, which obtains the connection,
141+
* Return a <em>Transaction</em> object, which gets the connection,
142142
* needed for executing a query, from the {@link #connection()} factory
143143
* method. The transactional behavior is defined by the
144144
* {@link #txm(Connection, SqlSupplier)} method of {@code this} interface.

facilejdbc/src/main/java/io/jenetics/facilejdbc/function/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020

2121
/**
22-
* Contains all needed functional interfaces, which may throw a
22+
* Contains all necessary functional interfaces, which may throw a
2323
* {@link java.sql.SQLException}.
2424
*
2525
* @author <a href="mailto:franz.wilhelmstoetter@gmail.com">Franz Wilhelmstötter</a>

facilejdbc/src/main/java/io/jenetics/facilejdbc/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020

2121
/**
22-
* This is the base package of the JDBC wrapper and contains all needed
22+
* This is the base package of the JDBC wrapper and contains all necessary
2323
* interfaces and the {@link io.jenetics.facilejdbc.Query} class. An overview
2424
* of the purpose and functionality of the <em>FacileJDBC</em> library can be
2525
* found <a href="https://github.com/jenetics/facilejdbc/blob/master/README.md">here</a>.

facilejdbc/src/main/java/io/jenetics/facilejdbc/spi/SqlTypeMapper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
/**
2323
* The purpose of this SPI is to map simple <em>domain</em> values into the
2424
* proper type of the used DB. This may lead to a more readable insertion code.
25-
*
2625
* Usually, it is not possible to insert an {@code URI} field directly into the
2726
* DB. You have to convert it into a string object first.
2827
* <pre>{@code

0 commit comments

Comments
 (0)