SEARCH-3022 Fix formatting

This commit is contained in:
Angel Borroy
2021-07-29 14:20:29 +02:00
parent 866c3434b6
commit 9d942e667e
2 changed files with 10 additions and 7 deletions
@@ -93,13 +93,13 @@ public class CoreDescriptorDecorator
{
coreProperties.forEach(prop -> {
String value = ConfigUtil.locateProperty(prop, null);
if (value != null)
if (value != null)
{
properties.put(prop, value);
}
});
}
catch(Exception e)
catch (Exception e)
{
log.warn("Unable to locate alfresco host|port|baseUrl|ssl properties", e);
}
@@ -84,14 +84,17 @@ public class ConfigUtilTest {
@Test
public void testMissingCoreProperty()
{
HashMap<String,String> coreProps = new HashMap<String,String>();
Properties saved = (Properties)System.getProperties().clone();
HashMap<String, String> coreProps = new HashMap<String, String>();
Properties saved = (Properties) System.getProperties().clone();
System.setProperty("alfresco.secureComms", "https");
for (String key : CoreDescriptorDecorator.SUBSTITUTABLE_PROPERTIES_SECURE) {
for (String key : CoreDescriptorDecorator.SUBSTITUTABLE_PROPERTIES_SECURE)
{
// Intentionally omit store provider settings
if (!key.endsWith("store.provider")) {
if (!key.endsWith("store.provider"))
{
// Set store type as system property
if (key.endsWith("store.type")) {
if (key.endsWith("store.type"))
{
System.setProperty(key, "JKS");
}
coreProps.put(key, "irrelevant");