Skip to content

Commit cb6b0b3

Browse files
committed
Checkstyle Fixes
1 parent cd44ef3 commit cb6b0b3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

collection-pipeline/src/main/java/com/iluwatar/collectionpipeline/FunctionalProgramming.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ public static List<String> getModelsAfter2000(List<Car> cars) {
6464
* Method to group cars by category using groupingBy
6565
*
6666
* @param cars {@link List} of {@link Car} to be used for grouping
67-
* @return {@link Map} of {@link String} and {@link List} of {@link Car} with category
68-
* as key and cars belonging to that category as value
67+
* @return {@link Map} with category as key and cars belonging to that category as value
6968
*/
7069
public static Map<String, List<Car>> getGroupingOfCarsByCategory(List<Car> cars) {
7170
return cars.stream().collect(Collectors.groupingBy(Car::getCategory));

collection-pipeline/src/main/java/com/iluwatar/collectionpipeline/ImperativeProgramming.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ public int compare(Car car1, Car car2) {
8484
* Method to group cars by category using for loops
8585
*
8686
* @param cars {@link List} of {@link Car} to be used for grouping
87-
* @return {@link Map} of {@link String} and {@link List} of {@link Car} with
88-
* category as key and cars belonging to that category as value
87+
* @return {@link Map} with category as key and cars belonging to that category as value
8988
*/
9089
public static Map<String, List<Car>> getGroupingOfCarsByCategory(List<Car> cars) {
9190
Map<String, List<Car>> groupingByCategory = new HashMap<>();

0 commit comments

Comments
 (0)