Skip to content

Commit

Permalink
devonfw#1696: applied code reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-vcapgemini committed Aug 10, 2023
1 parent 7a780e0 commit 9d6b1f2
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

import java.io.File;
import java.math.BigDecimal;
import java.net.URL;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.devonfw.cobigen.api.exception.InvalidConfigurationException;
import com.devonfw.cobigen.impl.config.entity.Trigger;
import com.devonfw.cobigen.impl.config.reader.ContextConfigurationReader;

/**
* The {@link ContextConfiguration} is a configuration data wrapper for all information about templates and the target
Expand All @@ -30,11 +28,11 @@ public class ContextConfiguration {
*/
private Path configurationPath;


/**
* Constructor needed only for {@link com.devonfw.cobigen.impl.config.reader.ContextConfigurationCollector}
*/
public ContextConfiguration() {

}

/**
Expand All @@ -43,7 +41,8 @@ public ContextConfiguration() {
* @param configRoot root path for the configuration of CobiGen
* @throws InvalidConfigurationException thrown if the {@link File} is not valid with respect to the context.xsd
*/
public ContextConfiguration(BigDecimal version, Map<String, Trigger> triggers, Path configRoot) throws InvalidConfigurationException {
public ContextConfiguration(BigDecimal version, Map<String, Trigger> triggers, Path configRoot)
throws InvalidConfigurationException {

this.version = version;
this.configurationPath = configRoot;
Expand Down Expand Up @@ -81,9 +80,11 @@ public Trigger getTrigger(String id) {

/**
* Merges another context configuration into _this_ context configuration instance
*
* @param contextConfiguration to be merged
*/
public ContextConfiguration merge(ContextConfiguration contextConfiguration) {

triggers.putAll(contextConfiguration.triggers);
return this;
}
Expand Down

0 comments on commit 9d6b1f2

Please sign in to comment.