chore(Sonar): add private constructor

This commit is contained in:
林万程
2024-01-26 21:09:10 +08:00
parent 88088d3099
commit 694024b212
7 changed files with 19 additions and 0 deletions

View File

@@ -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;

View File

@@ -11,6 +11,8 @@ import java.util.stream.Collectors;
public class EnumDoc {
private EnumDoc() {}
/**
* Yes(1, "Yes") show 1-Yes
*/

View File

@@ -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();

View File

@@ -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);

View File

@@ -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<>();

View File

@@ -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<>();

View File

@@ -9,6 +9,9 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class LineSelect {
private LineSelect() {}
/**
* can not work
*/