File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/cd/go/contrib/elasticagent Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 18
18
19
19
import com .google .gson .annotations .Expose ;
20
20
import com .google .gson .annotations .SerializedName ;
21
+ import com .google .gson .reflect .TypeToken ;
21
22
22
- import java .util .HashMap ;
23
23
import java .util .Objects ;
24
24
25
25
import static cd .go .contrib .elasticagent .utils .Util .GSON ;
@@ -100,6 +100,6 @@ public void setClusterProfileProperties(ClusterProfileProperties clusterProfileP
100
100
}
101
101
102
102
public void setClusterProfileProperties (PluginSettings pluginSettings ) {
103
- this .clusterProfileProperties = ClusterProfileProperties .fromConfiguration (GSON .fromJson (GSON .toJson (pluginSettings ), HashMap . class ));
103
+ this .clusterProfileProperties = ClusterProfileProperties .fromConfiguration (GSON .fromJson (GSON .toJson (pluginSettings ), new TypeToken <>() {} ));
104
104
}
105
105
}
You can’t perform that action at this time.
0 commit comments