langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/Util.java
changeset 31751 ec251536a004
parent 31116 2c8162f88493
child 34991 ff8be37d1164
equal deleted inserted replaced
31750:c65c37c0c691 31751:ec251536a004
   129      * For example to only had portfile remaining from:
   129      * For example to only had portfile remaining from:
   130      *    settings="--server:id=foo,portfile=bar"
   130      *    settings="--server:id=foo,portfile=bar"
   131      * do settings = cleanOptions("--server:",Util.set("-portfile"),settings);
   131      * do settings = cleanOptions("--server:",Util.set("-portfile"),settings);
   132      *    now settings equals "--server:portfile=bar"
   132      *    now settings equals "--server:portfile=bar"
   133      *
   133      *
   134      * @param allowsSubOptions A set of the allowed sub options, id portfile etc.
   134      * @param allowedSubOptions A set of the allowed sub options, id portfile etc.
   135      * @param s The option settings string.
   135      * @param s The option settings string.
   136      */
   136      */
   137     public static String cleanSubOptions(Set<String> allowedSubOptions, String s) {
   137     public static String cleanSubOptions(Set<String> allowedSubOptions, String s) {
   138         StringBuilder sb = new StringBuilder();
   138         StringBuilder sb = new StringBuilder();
   139         StringTokenizer st = new StringTokenizer(s, ",");
   139         StringTokenizer st = new StringTokenizer(s, ",");