mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-21 08:27:11 +00:00
perf[protocol]: 优化Set的数据结构
This commit is contained in:
@@ -15,7 +15,7 @@ package com.zfoo.protocol.generate;
|
||||
|
||||
import com.zfoo.protocol.serializer.CodeLanguage;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.EnumSet;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
@@ -44,7 +44,7 @@ public class GenerateOperation {
|
||||
/**
|
||||
* 需要生成的协议文件
|
||||
*/
|
||||
private Set<CodeLanguage> generateLanguages = new HashSet<>();
|
||||
private final Set<CodeLanguage> generateLanguages = EnumSet.noneOf(CodeLanguage.class);
|
||||
|
||||
public boolean isFoldProtocol() {
|
||||
return foldProtocol;
|
||||
|
||||
Reference in New Issue
Block a user