Skip to content

Commit e09f06e

Browse files
committed
chore:more comments
1 parent 14f906d commit e09f06e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lesson_09/types/types_app/src/main/java/com/codedifferently/lesson9/generator/JsonFileGenerator.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,12 @@ public List<ValueGenerator> mapColumnTypeToGenerator(Map<String, Class> provider
8282

8383
Class columnType = entry.getValue();
8484
String columnName = entry.getKey();
85-
// Extracts the index from the column name (e.g., "column1" -> 0) to place the generator in the correct position
85+
// Extracts the index from the column name (e.g., "column1" -> 0) to place the generator in
86+
// the correct position
8687
Integer columnIndex = columnName.charAt(columnName.length() - 1) - '1';
8788
System.out.println(columnIndex);
88-
// Gets the entry value amd checks its type to add the corresponding generator and set the values to its index so the list can be in the correct order
89+
// Gets the entry value amd checks its type to add the corresponding generator and set the
90+
// values to its index so the list can be in the correct order
8991
if (columnType == Integer.class) {
9092
generators.set(columnIndex, new IntValueGenerator());
9193

0 commit comments

Comments
 (0)