Skip to content

Commit

Permalink
style: format sources with new maven-formatter-plugin version (remove…
Browse files Browse the repository at this point in the history
… useless spaces in comments)
  • Loading branch information
mborne committed Aug 8, 2024
1 parent b34a0ff commit aebeea8
Show file tree
Hide file tree
Showing 311 changed files with 1,100 additions and 1,100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Command line application
*
*
* @author MBorne
*/
public class Application {
Expand Down
84 changes: 42 additions & 42 deletions validator-core/src/main/java/fr/ign/validator/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
import fr.ign.validator.validation.Validatable;

/**
*
*
* Validation context
*
*
* @author MBorne
*
*/
Expand All @@ -56,7 +56,7 @@ public class Context {

/**
* Data charset (overridden by metadata provided charset)
*
*
* @see MetadataPreProcess
*/
private Charset encoding = StandardCharsets.UTF_8;
Expand Down Expand Up @@ -166,7 +166,7 @@ public Context() {

/**
* Get validatorListeners
*
*
* @return
*/
public List<ValidatorListener> getValidatorListeners() {
Expand All @@ -175,7 +175,7 @@ public List<ValidatorListener> getValidatorListeners() {

/**
* add listener
*
*
* @param listener
*/
public void addListener(ValidatorListener listener) {
Expand All @@ -184,7 +184,7 @@ public void addListener(ValidatorListener listener) {

/**
* Add listener before the first listener of a given class
*
*
* @param listener
* @param clazz
*/
Expand All @@ -198,7 +198,7 @@ public void addListenerBefore(ValidatorListener listener, Class<?> clazz) {

/**
* Find listener for a given class
*
*
* @param clazz
* @return
*/
Expand Down Expand Up @@ -266,7 +266,7 @@ public void setProjection(Projection projection) {

/**
* Set projection from CRS code
*
*
* @param code
*/
public void setProjection(String code) {
Expand Down Expand Up @@ -317,7 +317,7 @@ public void setCurrentDirectory(File currentDirectory) {

/**
* Get ErrorFactory
*
*
* @return
*/
public ErrorFactory getErrorFactory() {
Expand All @@ -326,7 +326,7 @@ public ErrorFactory getErrorFactory() {

/**
* Set ErrorFactory
*
*
* @param errorFactory
*/
public void setErrorFactory(ErrorFactory errorFactory) {
Expand All @@ -335,7 +335,7 @@ public void setErrorFactory(ErrorFactory errorFactory) {

/**
* Push given model to stack
*
*
* @param model
*/
public void beginModel(Model model) {
Expand All @@ -345,7 +345,7 @@ public void beginModel(Model model) {

/**
* Get model stack
*
*
* @return
*/
public List<Model> getModelStack() {
Expand All @@ -354,7 +354,7 @@ public List<Model> getModelStack() {

/**
* Get current model by type
*
*
* @param clazz
* @return
*/
Expand All @@ -370,7 +370,7 @@ public <T extends Model> T getModelByType(Class<T> clazz) {

/**
* Get current document model
*
*
* @return
*/
public DocumentModel getDocumentModel() {
Expand All @@ -379,7 +379,7 @@ public DocumentModel getDocumentModel() {

/**
* Get current document model name
*
*
* @param context
* @return
*/
Expand All @@ -393,7 +393,7 @@ public String getDocumentModelName() {

/**
* Get current file model name
*
*
* @param context
* @return
*/
Expand All @@ -407,7 +407,7 @@ public String getFileModelName() {

/**
* Get current attribute name
*
*
* @param context
* @return
*/
Expand All @@ -433,7 +433,7 @@ public void endModel(Model model) {

/**
* Begin data validation (push data on dataStack)
*
*
* @param location
*/
public void beginData(Validatable data) {
Expand All @@ -442,7 +442,7 @@ public void beginData(Validatable data) {

/**
* Get data by type from data stack
*
*
* @param clazz
* @return
*/
Expand All @@ -458,7 +458,7 @@ public <T extends Validatable> T getDataByType(Class<T> clazz) {

/**
* Get current scope from data stack
*
*
* @return
*/
public ErrorScope getScope() {
Expand All @@ -475,7 +475,7 @@ public ErrorScope getScope() {

/**
* Get current fileName from data stack
*
*
* @param context
* @return
*/
Expand All @@ -499,7 +499,7 @@ public String getFileName() {

/**
* Get current line number from data stack
*
*
* @param context
* @return
*/
Expand All @@ -513,7 +513,7 @@ public String getLine() {

/**
* Get current feature bounding box from data stack
*
*
* @return string
*/
public Envelope getFeatureBBox() {
Expand All @@ -526,7 +526,7 @@ public Envelope getFeatureBBox() {

/**
* Get current identifiant
*
*
* @return
*/
public String getFeatureId() {
Expand All @@ -539,7 +539,7 @@ public String getFeatureId() {

/**
* End data validation (pop data from dataStack)
*
*
* @param location
*/
public void endData(Validatable data) {
Expand All @@ -552,7 +552,7 @@ public void endData(Validatable data) {

/**
* Get relative path according to current directory.
*
*
* @param path
* @return
*/
Expand All @@ -569,7 +569,7 @@ public String relativize(File path) {

/**
* Create and report an error according to its code
*
*
* @param code
* @param messageParams
*/
Expand All @@ -580,7 +580,7 @@ public void report(ErrorCode code) {

/**
* Direct reporting of an existing error
*
*
* @param validatorError
*/
public void report(ValidatorError validatorError) {
Expand All @@ -589,7 +589,7 @@ public void report(ValidatorError validatorError) {

/**
* Generic method for building errors
*
*
* @param code
* @param messageParams
*/
Expand Down Expand Up @@ -619,7 +619,7 @@ public ValidatorError createError(ErrorCode code) {

/**
* Get ValidationDirectory
*
*
* @return
*/
public File getValidationDirectory() {
Expand All @@ -628,7 +628,7 @@ public File getValidationDirectory() {

/**
* Set ValidationDirectory
*
*
* @return
*/
public void setValidationDirectory(File validationDirectory) {
Expand All @@ -642,7 +642,7 @@ public boolean isNormalizeEnabled() {

/**
* Enable or disable data normalization.
*
*
* @param normalizeEnabled
*/
public void setNormalizeEnabled(boolean normalizeEnabled) {
Expand All @@ -652,7 +652,7 @@ public void setNormalizeEnabled(boolean normalizeEnabled) {

/**
* Get output projection for normalized data.
*
*
* @return
*/
public Projection getOutputProjection() {
Expand All @@ -661,7 +661,7 @@ public Projection getOutputProjection() {

/**
* Set output projection for normalized data.
*
*
* @param outputProjection
*/
public void setOutputProjection(Projection outputProjection) {
Expand All @@ -671,7 +671,7 @@ public void setOutputProjection(Projection outputProjection) {

/**
* Get DATA directory for normalized data ({validation_dir}/DATA)
*
*
* @return
*/
public File getDataDirectory() {
Expand All @@ -684,7 +684,7 @@ public File getDataDirectory() {

/**
* Get metadata directory ({validation_dir}/METADATA)
*
*
* @return
*/
public File getMetadataDirectory() {
Expand Down Expand Up @@ -740,7 +740,7 @@ public void setStringFixer(StringFixer stringFixer) {

/**
* tolerance option used in geometric operation (dgpr plugin)
*
*
* @return
*/
public Double getDgprTolerance() {
Expand All @@ -749,7 +749,7 @@ public Double getDgprTolerance() {

/**
* tolerance option used in geometric operation (dgpr plugin)
*
*
* @param topologicalTolerance
*/
public void setDgprTolerance(double topologicalTolerance) {
Expand All @@ -758,7 +758,7 @@ public void setDgprTolerance(double topologicalTolerance) {

/**
* simplification distance option
*
*
* @return distance
*/
public Double getDgprSimplification() {
Expand All @@ -767,7 +767,7 @@ public Double getDgprSimplification() {

/**
* simplification distance option
*
*
* @param distanceSimplification
*/
public void setDgprSimplification(Double distanceSimplification) {
Expand All @@ -776,7 +776,7 @@ public void setDgprSimplification(Double distanceSimplification) {

/**
* safe simplification option
*
*
* @return safe simplication allowed
*/
public Boolean isDgprSafeMode() {
Expand All @@ -785,7 +785,7 @@ public Boolean isDgprSafeMode() {

/**
* safe simplification option
*
*
* @param safeSimplification
*/
public void setDgprSafeMode(boolean safeSimplification) {
Expand Down
Loading

0 comments on commit aebeea8

Please sign in to comment.