src/share/classes/com/sun/tools/javac/main/OptionName.java

Thu, 24 Jul 2008 19:06:57 +0100

author
mcimadamore
date
Thu, 24 Jul 2008 19:06:57 +0100
changeset 80
5c9cdeb740f2
parent 54
eaf608c64fec
child 221
6ada6122dd4f
permissions
-rw-r--r--

6717241: some diagnostic argument is prematurely converted into a String object
Summary: removed early toString() conversions applied to diagnostic arguments
Reviewed-by: jjg

     1 /*
     2  * Copyright 2006-2008 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Sun designates this
     8  * particular file as subject to the "Classpath" exception as provided
     9  * by Sun in the LICENSE file that accompanied this code.
    10  *
    11  * This code is distributed in the hope that it will be useful, but WITHOUT
    12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    14  * version 2 for more details (a copy is included in the LICENSE file that
    15  * accompanied this code).
    16  *
    17  * You should have received a copy of the GNU General Public License version
    18  * 2 along with this work; if not, write to the Free Software Foundation,
    19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20  *
    21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22  * CA 95054 USA or visit www.sun.com if you need additional information or
    23  * have any questions.
    24  */
    26 package com.sun.tools.javac.main;
    29 /**
    30  * TODO: describe com.sun.tools.javac.main.OptionName
    31  *
    32  * <p><b>This is NOT part of any API supported by Sun Microsystems.
    33  * If you write code that depends on this, you do so at your own
    34  * risk.  This code and its internal interfaces are subject to change
    35  * or deletion without notice.</b></p>
    36  */
    37 public enum OptionName {
    38     G("-g"),
    39     G_NONE("-g:none"),
    40     G_CUSTOM("-g:"),
    41     XLINT("-Xlint"),
    42     XLINT_CUSTOM("-Xlint:"),
    43     NOWARN("-nowarn"),
    44     VERBOSE("-verbose"),
    45     DEPRECATION("-deprecation"),
    46     CLASSPATH("-classpath"),
    47     CP("-cp"),
    48     SOURCEPATH("-sourcepath"),
    49     BOOTCLASSPATH("-bootclasspath"),
    50     XBOOTCLASSPATH_PREPEND("-Xbootclasspath/p:"),
    51     XBOOTCLASSPATH_APPEND("-Xbootclasspath/a:"),
    52     XBOOTCLASSPATH("-Xbootclasspath:"),
    53     EXTDIRS("-extdirs"),
    54     DJAVA_EXT_DIRS("-Djava.ext.dirs="),
    55     ENDORSEDDIRS("-endorseddirs"),
    56     DJAVA_ENDORSED_DIRS("-Djava.endorsed.dirs="),
    57     PROC("-proc:"),
    58     PROCESSOR("-processor"),
    59     PROCESSORPATH("-processorpath"),
    60     D("-d"),
    61     S("-s"),
    62     IMPLICIT("-implicit:"),
    63     ENCODING("-encoding"),
    64     SOURCE("-source"),
    65     TARGET("-target"),
    66     VERSION("-version"),
    67     FULLVERSION("-fullversion"),
    68     HELP("-help"),
    69     A("-A"),
    70     X("-X"),
    71     J("-J"),
    72     MOREINFO("-moreinfo"),
    73     WERROR("-Werror"),
    74     COMPLEXINFERENCE("-complexinference"),
    75     PROMPT("-prompt"),
    76     DOE("-doe"),
    77     PRINTSOURCE("-printsource"),
    78     WARNUNCHECKED("-warnunchecked"),
    79     XMAXERRS("-Xmaxerrs"),
    80     XMAXWARNS("-Xmaxwarns"),
    81     XSTDOUT("-Xstdout"),
    82     XPRINT("-Xprint"),
    83     XPRINTROUNDS("-XprintRounds"),
    84     XPRINTPROCESSORINFO("-XprintProcessorInfo"),
    85     XPREFER("-Xprefer:"),
    86     O("-O"),
    87     XJCOV("-Xjcov"),
    88     XD("-XD"),
    89     SOURCEFILE("sourcefile");
    91     public final String optionName;
    93     OptionName(String optionName) {
    94         this.optionName = optionName;
    95     }
    97     @Override
    98     public String toString() {
    99         return optionName;
   100     }
   102 }

mercurial