Here you can find the source of unquote(String string)
Parameter | Description |
---|---|
string | a parameter |
private static final String unquote(String string)
//package com.java2s; // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt public class Main { /**/*w w w . j a v a 2s . c o m*/ * * Ensure that the string is not surrounded by quotes. * * @param string * @return */ private static final String unquote(String string) { if (string.startsWith("\"")) { string = string.substring(1); } if (string.endsWith("\"")) { string = string.substring(0, string.length() - 1); } return string; } }