Skip to content

Commit

Permalink
Fix the wrong importing of Function
Browse files Browse the repository at this point in the history
  • Loading branch information
CowSmiles committed Dec 20, 2020
1 parent cfc0195 commit 3658988
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package org.apache.shardingsphere.sharding.rule;

import com.google.common.base.Function;
import com.google.common.base.Preconditions;
import com.google.common.base.Splitter;
import lombok.AccessLevel;
Expand Down Expand Up @@ -441,6 +440,6 @@ public Optional<String> findLogicTableByActualTable(final String actualTable) {

@Override
public Collection<String> getTables() {
return tableRules.stream().map((Function<TableRule, String>) TableRule::getLogicTable).collect(Collectors.toList());
return tableRules.stream().map(TableRule::getLogicTable).collect(Collectors.toList());
}
}

0 comments on commit 3658988

Please sign in to comment.