Skip to content

Followup: Handle new Sort.unsorted() sorting strategy #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 2, 2018
Merged

Conversation

derjust
Copy link
Owner

@derjust derjust commented Feb 2, 2018

Spring-Data no longer passes in null if no sorting order is given by the caller but uses Sort.unsorted() which incorrectly causes an Exception.
This should also solve #99

Followup to 8c3e139

Also getting rid of some JDK9 deprecated warnings on the JDK classes - as those methods exist in JDK8 already.

@codecov-io
Copy link

codecov-io commented Feb 2, 2018

Codecov Report

Merging #130 into master will increase coverage by 0.35%.
The diff coverage is 55%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #130      +/-   ##
============================================
+ Coverage      59.3%   59.66%   +0.35%     
- Complexity      513      515       +2     
============================================
  Files            70       71       +1     
  Lines          1912     1909       -3     
  Branches        368      365       -3     
============================================
+ Hits           1134     1139       +5     
+ Misses          632      629       -3     
+ Partials        146      141       -5
Impacted Files Coverage Δ Complexity Δ
...pository/support/SimpleDynamoDBCrudRepository.java 49.31% <ø> (ø) 9 <0> (ø) ⬇️
...b/mapping/event/AbstractDynamoDBEventListener.java 70.17% <ø> (ø) 19 <0> (ø) ⬇️
...port/SimpleDynamoDBPagingAndSortingRepository.java 6.25% <0%> (+0.18%) 1 <0> (ø) ⬇️
...y/query/DynamoDBEntityWithHashKeyOnlyCriteria.java 77.77% <100%> (ø) 13 <4> (ø) ⬇️
.../data/dynamodb/query/ScanExpressionCountQuery.java 100% <100%> (+18.18%) 4 <0> (+1) ⬆️
...ery/DynamoDBEntityWithHashAndRangeKeyCriteria.java 75.14% <100%> (ø) 74 <5> (ø) ⬇️
...signin/spring/data/dynamodb/utils/SortHandler.java 42.85% <42.85%> (ø) 3 <3> (?)
...DBHashAndRangeKeyExtractingEntityMetadataImpl.java 48.83% <50%> (+2.17%) 5 <1> (ø) ⬇️
...ository/support/DynamoDBEntityMetadataSupport.java 40.48% <50%> (+0.39%) 21 <0> (ø) ⬇️
...epository/query/AbstractDynamoDBQueryCriteria.java 69.15% <58.33%> (+0.46%) 98 <1> (-3) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7060dc9...014fa26. Read the comment docs.

@derjust derjust force-pushed the Issue_99 branch 2 times, most recently from 9a03d51 to 9fc28df Compare February 2, 2018 16:36
Spring-Data no longer passes in `null` if no sorting order is given by the caller but uses `Sort.unsorted()` which incorrectly causes an Exception.
This should also solve #99

Followup to 8c3e139

Also getting rid of some JDK9 deprecated warnings on the JDK classes - as those methods exist in JDK8 already.
@derjust derjust merged commit 68f00c5 into master Feb 2, 2018
@derjust derjust deleted the Issue_99 branch March 7, 2018 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants