Here you can find the source of removeDoubleQuotes(Map
Parameter | Description |
---|---|
argMap | map containing arguments and their values |
private static void removeDoubleQuotes(Map<String, String> argMap)
//package com.java2s; //License from project: LGPL import java.util.Map; public class Main { /**/*from www .ja v a 2 s. c o m*/ * Removes double quotes from arguments' value * * @param argMap map containing arguments and their values */ private static void removeDoubleQuotes(Map<String, String> argMap) { String value = null; for (String key : argMap.keySet()) { value = argMap.get(key); if (value != null && value.startsWith("\"") && value.endsWith("\"")) { argMap.put(key, value.substring(1, value.length() - 1)); } } } }