mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PropertyImpl: non-trimmed key/value delimiter detection fixed
This commit is contained in:
+7
-2
@@ -448,8 +448,13 @@ public class PropertyImpl extends PropertiesStubElementImpl<PropertyStub> implem
|
||||
if (delimiter == null) {
|
||||
return null;
|
||||
}
|
||||
final String separatorText = delimiter.getText();
|
||||
LOG.assertTrue(separatorText.length() == 1);
|
||||
String separatorText = delimiter.getText();
|
||||
LOG.assertTrue(separatorText.length() > 0);
|
||||
separatorText = separatorText.trim();
|
||||
if (separatorText.isEmpty()) {
|
||||
separatorText = " ";
|
||||
}
|
||||
LOG.assertTrue(separatorText.length() == 1, "\"" + separatorText + "\"");
|
||||
return separatorText.charAt(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user