Skip to content

Commit 67fb716

Browse files
committed
Polishing.
1 parent 4485846 commit 67fb716

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/query/ColumnName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public abstract class ColumnName {
4747
* @since 5.1
4848
*/
4949
public static <T, P> ColumnName from(TypedPropertyPath<T, P> property) {
50-
return from((PropertyPath) TypedPropertyPath.of(property));
50+
return from((PropertyPath) property);
5151
}
5252

5353
/**

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/query/Columns.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ public static <T> Columns from(TypedPropertyPath<T, ?>... properties) {
8585
Map<ColumnName, List<Selector>> columns = new LinkedHashMap<>(properties.length, 1);
8686

8787
for (TypedPropertyPath<T, ?> columnName : properties) {
88-
TypedPropertyPath<T, ?> path = TypedPropertyPath.of(columnName);
89-
add(columns, ColumnName.from(path));
88+
add(columns, ColumnName.from(columnName));
9089
}
9190

9291
return new Columns(columns);

0 commit comments

Comments
 (0)