Skip to content

Commit 04eb72a

Browse files
davidheryantozhilingc
authored andcommitted
Use Strings trim rather than strip since strip is only available in java 11
1 parent 5f55f5c commit 04eb72a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ingestion/src/test/java/feast/ingestion/transform/metrics/WriteFeatureValueMetricsDoFnTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private Map<String, Iterable<FeatureRow>> readTestInput(String path) throws IOEx
142142
}
143143
List<String> colNames = new ArrayList<>();
144144
for (String line : lines) {
145-
if (line.strip().length() < 1) {
145+
if (line.trim().length() < 1) {
146146
continue;
147147
}
148148
String[] splits = line.split(",");
@@ -156,7 +156,7 @@ private Map<String, Iterable<FeatureRow>> readTestInput(String path) throws IOEx
156156

157157
Builder featureRowBuilder = FeatureRow.newBuilder();
158158
for (int i = 0; i < splits.length; i++) {
159-
String colVal = splits[i].strip();
159+
String colVal = splits[i].trim();
160160
if (i == 0) {
161161
featureRowBuilder.setFeatureSet(colVal);
162162
continue;

0 commit comments

Comments
 (0)