chore(Sonar): add private constructor
This commit is contained in:
@@ -19,6 +19,8 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class AnnoDoc {
|
||||
|
||||
private AnnoDoc() {}
|
||||
|
||||
@Nullable
|
||||
public static <T extends SettingsInfo> String annoDoc(@NotNull T info, @NotNull PsiJvmModifiersOwner owner) {
|
||||
@NotNull ProjectSettingsState projectSettings = info.projectSettings;
|
||||
|
||||
@@ -11,6 +11,8 @@ import java.util.stream.Collectors;
|
||||
|
||||
public class EnumDoc {
|
||||
|
||||
private EnumDoc() {}
|
||||
|
||||
/**
|
||||
* Yes(1, "Yes") show 1-Yes
|
||||
*/
|
||||
|
||||
@@ -7,6 +7,9 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class NewDoc {
|
||||
|
||||
private NewDoc() {}
|
||||
|
||||
@Nullable
|
||||
public static PsiMethod newMethod(@NotNull PsiElement ref) {
|
||||
PsiElement parent = ref.getParent();
|
||||
|
||||
@@ -11,6 +11,9 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class ParamDoc {
|
||||
|
||||
private ParamDoc() {}
|
||||
|
||||
@Nullable
|
||||
public static String paramDoc(@NotNull PsiParameter psiParameter) {
|
||||
@Nullable PsiMethod method = PsiTreeUtil.getParentOfType(psiParameter, PsiMethod.class);
|
||||
|
||||
@@ -22,6 +22,9 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class LineEndCacheUtils {
|
||||
|
||||
private LineEndCacheUtils() {}
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(LineEndCacheUtils.class);
|
||||
|
||||
public static final Map<Project, Map<VirtualFile, Map<Integer, LineEndCache>>> cache = new ConcurrentHashMap<>();
|
||||
|
||||
@@ -17,6 +17,9 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class TreeCacheUtils {
|
||||
|
||||
private TreeCacheUtils() {}
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(TreeCacheUtils.class);
|
||||
|
||||
public static final Map<Project, Map<ProjectViewNode<?>, TreeCache>> cache = new ConcurrentHashMap<>();
|
||||
|
||||
@@ -9,6 +9,9 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class LineSelect {
|
||||
|
||||
private LineSelect() {}
|
||||
|
||||
/**
|
||||
* can not work
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user