-
Notifications
You must be signed in to change notification settings - Fork 7
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
5.11.0 #48
Conversation
…in ImageWrapper and FolderWrapper
…useless constructor
@@ -124,14 +124,44 @@ | |||
*/ | |||
public static <T extends GenericObjectWrapper<?>> List<T> distinct(Collection<? extends T> objects) { | |||
return objects.stream() | |||
.collect(Collectors.toMap(T::getId, o -> o)) | |||
.collect(Collectors.toMap(T::getId, o -> o, (o1, o2) -> o1)) |
Check notice
Code scanning / CodeQL
Useless parameter
List<U> flatten(Collection<? extends Collection<? extends U>> lists) { | ||
return lists.stream() | ||
.flatMap(Collection::stream) | ||
.collect(Collectors.toMap(U::getId, o -> o, (o1, o2) -> o1)) |
Check notice
Code scanning / CodeQL
Useless parameter
public static <T extends ShapeData, U extends GenericShapeWrapper<? extends T>> U wrap(T object) { | ||
U converted; | ||
|
||
if (object instanceof RectangleData) { |
Check notice
Code scanning / CodeQL
Chain of 'instanceof' tests
U wrapRepositoryObject(T object) { | ||
U converted; | ||
|
||
if (object instanceof ProjectData) { |
Check notice
Code scanning / CodeQL
Chain of 'instanceof' tests
*/ | ||
public static <T extends DataObject, U extends GenericObjectWrapper<? extends T>> U wrap(T object) { | ||
U converted; | ||
if (object instanceof ShapeData) { |
Check notice
Code scanning / CodeQL
Chain of 'instanceof' tests
assertEquals(2, images.size()); | ||
List<ImageWrapper> images2 = client.getImagesPairKeyValue("testKey1", "testValue1"); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
Codecov ReportBase: 92.12% // Head: 91.68% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #48 +/- ##
============================================
- Coverage 92.12% 91.68% -0.45%
- Complexity 905 1035 +130
============================================
Files 39 43 +4
Lines 2641 2981 +340
Branches 214 235 +21
============================================
+ Hits 2433 2733 +300
- Misses 156 197 +41
+ Partials 52 51 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Kudos, SonarCloud Quality Gate passed! |
No description provided.