From d3640d217f99179ac19f9fa4b81ad216730bafc6 Mon Sep 17 00:00:00 2001 From: Darkyenus Date: Wed, 18 Jan 2017 20:59:18 +0100 Subject: [PATCH] Cleanup GLSLFileType Guava seems to be no longer part of standard SDK? --- src/glslplugin/lang/GLSLFileType.java | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/glslplugin/lang/GLSLFileType.java b/src/glslplugin/lang/GLSLFileType.java index 9f4a6ea1..b107c80b 100755 --- a/src/glslplugin/lang/GLSLFileType.java +++ b/src/glslplugin/lang/GLSLFileType.java @@ -19,7 +19,6 @@ package glslplugin.lang; -import com.google.common.collect.ImmutableSet; import com.intellij.openapi.fileTypes.LanguageFileType; import com.intellij.openapi.util.IconLoader; import org.jetbrains.annotations.NonNls; @@ -28,8 +27,7 @@ import javax.swing.*; -import glslplugin.lang.GLSLLanguage; - +import java.util.HashSet; import java.util.Set; /** @@ -37,15 +35,17 @@ */ public class GLSLFileType extends LanguageFileType { - public static final Set EXTENSIONS = ImmutableSet.of( - "glsl", - "frag", - "vert", - "tesc", - "tese", - "geom", - "comp" - ); + public static final Set EXTENSIONS = new HashSet<>(); + + static { + EXTENSIONS.add("glsl"); + EXTENSIONS.add("frag"); + EXTENSIONS.add("vert"); + EXTENSIONS.add("tesc"); + EXTENSIONS.add("tese"); + EXTENSIONS.add("geom"); + EXTENSIONS.add("comp"); + } public GLSLFileType() { super(GLSLLanguage.GLSL_LANGUAGE);