Skip to content

Commit 72fdec7

Browse files
committed
Polishing.
Tweak Javadoc comments. See #2585
1 parent 7dfe69e commit 72fdec7

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

Diff for: src/main/java/org/springframework/data/domain/ExampleMatcher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ public static GenericPropertyMatcher ignoreCase() {
497497
}
498498

499499
/**
500-
* Creates a {@link GenericPropertyMatcher} that matches string case sensitive.
500+
* Creates a {@link GenericPropertyMatcher} that matches string case-sensitive.
501501
*
502502
* @return
503503
*/

Diff for: src/main/java/org/springframework/data/domain/Sort.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private Sort withDirection(Direction direction) {
285285
*
286286
* @author Oliver Gierke
287287
*/
288-
public static enum Direction {
288+
public enum Direction {
289289

290290
ASC, DESC;
291291

@@ -447,7 +447,7 @@ public static Order desc(String property) {
447447
*
448448
* @param direction can be {@literal null}, will default to {@link Sort#DEFAULT_DIRECTION}
449449
* @param property must not be {@literal null} or empty.
450-
* @param ignoreCase true if sorting should be case insensitive. false if sorting should be case sensitive.
450+
* @param ignoreCase true if sorting should be case-insensitive. false if sorting should be case-sensitive.
451451
* @param nullHandling must not be {@literal null}.
452452
* @since 1.7
453453
*/
@@ -501,7 +501,7 @@ public boolean isDescending() {
501501
}
502502

503503
/**
504-
* Returns whether or not the sort will be case sensitive.
504+
* Returns whether the sort will be case-sensitive or case-insensitive.
505505
*
506506
* @return
507507
*/

Diff for: src/test/java/org/springframework/data/domain/SortUnitTests.java

-10
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ class SortUnitTests {
4040

4141
/**
4242
* Asserts that the class applies the default sort order if no order or {@code null} was provided.
43-
*
44-
* @throws Exception
4543
*/
4644
@Test
4745
void appliesDefaultForOrder() {
@@ -50,8 +48,6 @@ void appliesDefaultForOrder() {
5048

5149
/**
5250
* Asserts that the class rejects {@code null} as properties array.
53-
*
54-
* @throws Exception
5551
*/
5652
@Test
5753
@SuppressWarnings("null")
@@ -61,8 +57,6 @@ void preventsNullProperties() {
6157

6258
/**
6359
* Asserts that the class rejects {@code null} values in the properties array.
64-
*
65-
* @throws Exception
6660
*/
6761
@Test
6862
void preventsNullProperty() {
@@ -71,8 +65,6 @@ void preventsNullProperty() {
7165

7266
/**
7367
* Asserts that the class rejects empty strings in the properties array.
74-
*
75-
* @throws Exception
7668
*/
7769
@Test
7870
void preventsEmptyProperty() {
@@ -81,8 +73,6 @@ void preventsEmptyProperty() {
8173

8274
/**
8375
* Asserts that the class rejects no properties given at all.
84-
*
85-
* @throws Exception
8676
*/
8777
@Test
8878
void preventsNoProperties() {

0 commit comments

Comments
 (0)