refactor: Use Java standard library instead of Guava (#3708)
Co-authored-by: Moderne <team@moderne.io> Co-authored-by: Moderne <team@moderne.io>
This commit is contained in:
co-authored by
Moderne
parent
9e11c3c018
commit
de95a6a128
@@ -1,11 +1,10 @@
|
||||
package com.alibaba.otter.canal.protocol;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
/**
|
||||
* @author machengyuan 2018-9-13 下午10:31:14
|
||||
* @version 1.0.0
|
||||
@@ -66,7 +65,7 @@ public class FlatMessage implements Serializable {
|
||||
|
||||
public void addPkName(String pkName) {
|
||||
if (this.pkNames == null) {
|
||||
this.pkNames = Lists.newArrayList();
|
||||
this.pkNames = new ArrayList<>();
|
||||
}
|
||||
this.pkNames.add(pkName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user