Refactor toString() method in Embedding class (#173)

This commit is contained in:
Jinyeong Seol
2023-12-19 02:36:15 +09:00
committed by GitHub
parent 54f749f650
commit 9bd9635674

View File

@@ -39,7 +39,7 @@ public class Embedding {
@Override
public String toString() {
String message = this.embedding.size() == 0 ? "<empty>" : "<has data>";
String message = this.embedding.isEmpty() ? "<empty>" : "<has data>";
return "Embedding{" + "embedding=" + message + ", index=" + index + '}';
}