/*
 * Copyright 2000-2012 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.intellij.lang;

import com.intellij.openapi.fileTypes.FileTypes;
import com.intellij.openapi.fileTypes.StdFileTypes;

/**
 * Defines the standard languages supported by IDEA.
 *
 * @author max
 */
public class StdLanguages {
  /**
   * The definition for the Java language.
   *
   * @deprecated use {@linkplain com.intellij.lang.java.JavaLanguage#INSTANCE} instead.
   */
  @Deprecated public static Language JAVA = StdFileTypes.JAVA.getLanguage();

  /**
   * The definition for the DTD language.
   */
  public static Language DTD = StdFileTypes.DTD.getLanguage();

  /**
   * The definition for the JSP language.
   */
  public static Language JSP = StdFileTypes.JSP.getLanguage();

  /**
   * The definition for the XML language.
   */
  public static Language XML = StdFileTypes.XML.getLanguage();

  /**
   * The definition for the ANT language.
   */
  public static Language ANT;

  /**
   * The definition for the HTML language.
   */
  public static Language HTML = StdFileTypes.HTML.getLanguage();

  /**
   * The definition for the XHTML language.
   */
  public static Language XHTML = StdFileTypes.XHTML.getLanguage();

  /**
   * The definition for the JSP language (JSP with XML syntax).
   */
  public static Language JSPX = StdFileTypes.JSPX.getLanguage();

  /**
   * The definition for the Text language.
   */
  public static Language TEXT = FileTypes.PLAIN_TEXT.getLanguage();

  /**
   * The definition for the Properties language.
   */
  public static Language PROPERTIES = StdFileTypes.PROPERTIES.getLanguage();

  /**
   * @deprecated use {@link com.intellij.psi.css.CssSupportLoader} instead
   */
  @Deprecated
  public static Language CSS;

  private StdLanguages() { }
}

/*
 * Copyright 2000-2012 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.intellij.lang;

import com.intellij.openapi.fileTypes.FileTypes;
import com.intellij.openapi.fileTypes.StdFileTypes;

/**
 * Defines the standard languages supported by IDEA.
 *
 * @author max
 */
public class StdLanguages {
  /**
   * The definition for the Java language.
   *
   * @deprecated use {@linkplain com.intellij.lang.java.JavaLanguage#INSTANCE} instead.
   */
  @Deprecated public static Language JAVA = StdFileTypes.JAVA.getLanguage();

  /**
   * The definition for the DTD language.
   */
  public static Language DTD = StdFileTypes.DTD.getLanguage();

  /**
   * The definition for the JSP language.
   */
  public static Language JSP = StdFileTypes.JSP.getLanguage();

  /**
   * The definition for the XML language.
   */
  public static Language XML = StdFileTypes.XML.getLanguage();

  /**
   * The definition for the HTML language.
   */
  public static Language HTML = StdFileTypes.HTML.getLanguage();

  /**
   * The definition for the XHTML language.
   */
  public static Language XHTML = StdFileTypes.XHTML.getLanguage();

  /**
   * The definition for the JSP language (JSP with XML syntax).
   */
  public static Language JSPX = StdFileTypes.JSPX.getLanguage();

  /**
   * The definition for the Text language.
   */
  public static Language TEXT = FileTypes.PLAIN_TEXT.getLanguage();

  /**
   * The definition for the Properties language.
   */
  public static Language PROPERTIES = StdFileTypes.PROPERTIES.getLanguage();

  private StdLanguages() { }
}

Delete never initialized Language fields from StdLanguages