Merge remote-tracking branch 'origin/dev-1.2' into development
Conflicts: src/main/resources/messages.properties
This commit is contained in:
commit
fe7f2bbaba
1 changed files with 0 additions and 22 deletions
|
@ -587,28 +587,6 @@ public final class Utils {
|
|||
return (hexString.length() < 2) ? "0" + hexString : hexString;
|
||||
}
|
||||
|
||||
private static String getJSONValue(final String value) {
|
||||
if (Constants.TRUE_STRING.equalsIgnoreCase(value) || Constants.FALSE_STRING.equalsIgnoreCase(value)) {
|
||||
return value.toLowerCase();
|
||||
}
|
||||
|
||||
try {
|
||||
return String.valueOf(Long.parseLong(value));
|
||||
} catch (final Exception e) {
|
||||
}
|
||||
|
||||
try {
|
||||
return String.valueOf(Double.parseDouble(value));
|
||||
} catch (final Exception e) {
|
||||
}
|
||||
|
||||
return new StringBuilder()
|
||||
.append(Constants.DOUBLE_QUOTE)
|
||||
.append(value)
|
||||
.append(Constants.DOUBLE_QUOTE)
|
||||
.toString();
|
||||
}
|
||||
|
||||
public static String toAppFormUrlEncodedBody(final MultiValueMap<String, String> attributes) {
|
||||
return attributes
|
||||
.entrySet()
|
||||
|
|
Loading…
Add table
Reference in a new issue