diff --git a/RegExpSupport/src/org/intellij/lang/regexp/ecmascript/EcmaScriptRegexpLanguage.java b/RegExpSupport/src/org/intellij/lang/regexp/ecmascript/EcmaScriptRegexpLanguage.java index 7c0b20b88548..89981a7377fb 100644 --- a/RegExpSupport/src/org/intellij/lang/regexp/ecmascript/EcmaScriptRegexpLanguage.java +++ b/RegExpSupport/src/org/intellij/lang/regexp/ecmascript/EcmaScriptRegexpLanguage.java @@ -12,7 +12,7 @@ public class EcmaScriptRegexpLanguage extends Language { public static final EcmaScriptRegexpLanguage INSTANCE = new EcmaScriptRegexpLanguage(); public static final String ID = "JSRegexp"; - public EcmaScriptRegexpLanguage() { + private EcmaScriptRegexpLanguage() { super(RegExpLanguage.INSTANCE, ID); } } diff --git a/RegExpSupport/src/org/intellij/lang/regexp/ecmascript/EcmaScriptUnicodeRegexpLanguage.java b/RegExpSupport/src/org/intellij/lang/regexp/ecmascript/EcmaScriptUnicodeRegexpLanguage.java index 95df5b20c7d3..9410570c31dc 100644 --- a/RegExpSupport/src/org/intellij/lang/regexp/ecmascript/EcmaScriptUnicodeRegexpLanguage.java +++ b/RegExpSupport/src/org/intellij/lang/regexp/ecmascript/EcmaScriptUnicodeRegexpLanguage.java @@ -12,7 +12,7 @@ public class EcmaScriptUnicodeRegexpLanguage extends Language { public static final EcmaScriptUnicodeRegexpLanguage INSTANCE = new EcmaScriptUnicodeRegexpLanguage(); public static final String ID = "JSUnicodeRegexp"; - public EcmaScriptUnicodeRegexpLanguage() { + private EcmaScriptUnicodeRegexpLanguage() { super(RegExpLanguage.INSTANCE, ID); } } diff --git a/images/src/org/intellij/images/fileTypes/impl/SvgLanguage.kt b/images/src/org/intellij/images/fileTypes/impl/SvgLanguage.kt index f3a9b4416d70..f624e09083df 100644 --- a/images/src/org/intellij/images/fileTypes/impl/SvgLanguage.kt +++ b/images/src/org/intellij/images/fileTypes/impl/SvgLanguage.kt @@ -9,7 +9,7 @@ import com.intellij.psi.impl.source.xml.XmlFileImpl import com.intellij.psi.tree.IFileElementType import org.jetbrains.annotations.NotNull -class SvgLanguage : XMLLanguage(XMLLanguage.INSTANCE, "SVG", "image/svg+xml") { +class SvgLanguage private constructor(): XMLLanguage(XMLLanguage.INSTANCE, "SVG", "image/svg+xml") { companion object { @JvmField val INSTANCE = SvgLanguage() diff --git a/java/jsp-base-openapi/src/com/intellij/lang/jsp/JspxFileViewProvider.java b/java/jsp-base-openapi/src/com/intellij/lang/jsp/JspxFileViewProvider.java index 970bd8814703..e0400b8f467d 100644 --- a/java/jsp-base-openapi/src/com/intellij/lang/jsp/JspxFileViewProvider.java +++ b/java/jsp-base-openapi/src/com/intellij/lang/jsp/JspxFileViewProvider.java @@ -10,7 +10,7 @@ public interface JspxFileViewProvider extends TemplateLanguageFileViewProvider { Language JAVA_HOLDER_METHOD_TREE_LANGUAGE = new JavaHolderMethodTreeLanguage(); class JavaHolderMethodTreeLanguage extends Language implements DependentLanguage{ - public JavaHolderMethodTreeLanguage() { + JavaHolderMethodTreeLanguage() { super("JAVA_HOLDER_METHOD_TREE", ""); } } diff --git a/java/manifest/src/org/jetbrains/lang/manifest/ManifestLanguage.java b/java/manifest/src/org/jetbrains/lang/manifest/ManifestLanguage.java index 88204be1ab3d..fc11b126618f 100644 --- a/java/manifest/src/org/jetbrains/lang/manifest/ManifestLanguage.java +++ b/java/manifest/src/org/jetbrains/lang/manifest/ManifestLanguage.java @@ -32,7 +32,7 @@ import com.intellij.lang.Language; public class ManifestLanguage extends Language { public static final ManifestLanguage INSTANCE = new ManifestLanguage(); - public ManifestLanguage() { + private ManifestLanguage() { super("Manifest"); } } diff --git a/plugins/properties/properties-psi-api/src/com/intellij/lang/properties/PropertiesLanguage.java b/plugins/properties/properties-psi-api/src/com/intellij/lang/properties/PropertiesLanguage.java index fb3788f2d0c3..003752b691aa 100644 --- a/plugins/properties/properties-psi-api/src/com/intellij/lang/properties/PropertiesLanguage.java +++ b/plugins/properties/properties-psi-api/src/com/intellij/lang/properties/PropertiesLanguage.java @@ -6,7 +6,7 @@ import com.intellij.lang.Language; public class PropertiesLanguage extends Language { public static final PropertiesLanguage INSTANCE = new PropertiesLanguage(); - public PropertiesLanguage() { + private PropertiesLanguage() { super("Properties", "text/properties"); } } diff --git a/plugins/sh/core/src/com/intellij/sh/ShLanguage.java b/plugins/sh/core/src/com/intellij/sh/ShLanguage.java index d0127f0c363f..8fc6b1738d4f 100644 --- a/plugins/sh/core/src/com/intellij/sh/ShLanguage.java +++ b/plugins/sh/core/src/com/intellij/sh/ShLanguage.java @@ -8,7 +8,7 @@ import com.intellij.notification.NotificationGroupManager; public final class ShLanguage extends Language { public static final Language INSTANCE = new ShLanguage(); - public ShLanguage() { + private ShLanguage() { super("Shell Script", "application/x-bsh", "application/x-sh", "text/x-script.sh"); } } diff --git a/python/src/com/jetbrains/python/codeInsight/regexp/PythonRegexpLanguage.java b/python/src/com/jetbrains/python/codeInsight/regexp/PythonRegexpLanguage.java index 69d8e13376c8..a5f70795e2a4 100644 --- a/python/src/com/jetbrains/python/codeInsight/regexp/PythonRegexpLanguage.java +++ b/python/src/com/jetbrains/python/codeInsight/regexp/PythonRegexpLanguage.java @@ -8,7 +8,7 @@ import org.intellij.lang.regexp.RegExpLanguage; public class PythonRegexpLanguage extends Language { public static final PythonRegexpLanguage INSTANCE = new PythonRegexpLanguage(); - public PythonRegexpLanguage() { + private PythonRegexpLanguage() { super(RegExpLanguage.INSTANCE, "PythonRegExp"); } } diff --git a/python/src/com/jetbrains/python/codeInsight/regexp/PythonVerboseRegexpLanguage.java b/python/src/com/jetbrains/python/codeInsight/regexp/PythonVerboseRegexpLanguage.java index 9cc00a9fca98..be93bbdd340c 100644 --- a/python/src/com/jetbrains/python/codeInsight/regexp/PythonVerboseRegexpLanguage.java +++ b/python/src/com/jetbrains/python/codeInsight/regexp/PythonVerboseRegexpLanguage.java @@ -9,7 +9,7 @@ import org.intellij.lang.regexp.RegExpLanguage; public class PythonVerboseRegexpLanguage extends Language { public static final PythonVerboseRegexpLanguage INSTANCE = new PythonVerboseRegexpLanguage(); - public PythonVerboseRegexpLanguage() { + private PythonVerboseRegexpLanguage() { super(RegExpLanguage.INSTANCE, PyNames.VERBOSE_REG_EXP_LANGUAGE_ID); } } diff --git a/xml/xml-psi-api/src/com/intellij/lang/html/HtmlCompatibleMetaLanguage.java b/xml/xml-psi-api/src/com/intellij/lang/html/HtmlCompatibleMetaLanguage.java index 5516e240c600..4570d8acc607 100644 --- a/xml/xml-psi-api/src/com/intellij/lang/html/HtmlCompatibleMetaLanguage.java +++ b/xml/xml-psi-api/src/com/intellij/lang/html/HtmlCompatibleMetaLanguage.java @@ -25,7 +25,7 @@ public class HtmlCompatibleMetaLanguage extends MetaLanguage { () -> ContainerUtil.map2Set(EP_NAME.getExtensionList(), e -> e.language) ), EP_NAME, null); - public HtmlCompatibleMetaLanguage() { + private HtmlCompatibleMetaLanguage() { super("HtmlCompatible"); }