Skip to content

Commit e8fb5e4

Browse files
committed
fix typo
1 parent c31cb54 commit e8fb5e4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/AggregatePath.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ public void add(RelationalPersistentProperty property, SqlIdentifier name, SqlId
644644
*
645645
*/
646646
public void add(AggregatePath path, ColumnInfo columnInfo) {
647-
columnInfoMap.put(path.substract(basePath), columnInfo);
647+
columnInfoMap.put(path.subtract(basePath), columnInfo);
648648
}
649649
/**
650650
* Build the final {@link ColumnInfos} instance.
@@ -657,11 +657,11 @@ ColumnInfos build() {
657657
}
658658

659659
/**
660-
* Substract the {@literal basePath} from {@literal this} {@literal AggregatePath} by removing the {@literal basePath} from the beginning of {@literal this}.
660+
* Subtract the {@literal basePath} from {@literal this} {@literal AggregatePath} by removing the {@literal basePath} from the beginning of {@literal this}.
661661
* @param basePath the path to be removed.
662662
* @return an AggregatePath that ends like the original {@literal AggregatePath} but has {@literal basePath} removed from the beginning.
663663
*/
664664
@Nullable
665-
AggregatePath substract(@Nullable AggregatePath basePath);
665+
AggregatePath subtract(@Nullable AggregatePath basePath);
666666

667667
}

spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/DefaultAggregatePath.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public AggregatePath getTail() {
229229

230230
@Override
231231
@Nullable
232-
public AggregatePath substract(@Nullable AggregatePath basePath) {
232+
public AggregatePath subtract(@Nullable AggregatePath basePath) {
233233

234234
if (basePath == null || basePath.isRoot()) {
235235
return this;
@@ -244,7 +244,7 @@ public AggregatePath substract(@Nullable AggregatePath basePath) {
244244
if (tail == null) {
245245
return null;
246246
}
247-
return tail.substract(basePath.getTail());
247+
return tail.subtract(basePath.getTail());
248248
}
249249

250250
throw new IllegalStateException("Can't subtract [%s] from [%s]".formatted(basePath, this));

0 commit comments

Comments
 (0)