Skip to content

Commit

Permalink
code reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chDame committed Jul 29, 2022
1 parent 0a6a6cc commit 2613926
Show file tree
Hide file tree
Showing 38 changed files with 959 additions and 932 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[*]
indent_style = space
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.xml]
indent_size = 2

[*.html]
indent_size = 2

[*.md]
indent_size = 2

16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "maven" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
29 changes: 21 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,25 @@
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!-- Google code format plugin -->
<plugin>
<groupId>com.spotify.fmt</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>2.19</version>
<executions>
<execution>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package org.example.camunda.process.solution;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import io.camunda.zeebe.spring.client.EnableZeebeClient;
import io.camunda.zeebe.spring.client.annotation.ZeebeDeployment;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@EnableZeebeClient
Expand All @@ -14,5 +13,4 @@ public class ProcessApplication {
public static void main(String[] args) {
SpringApplication.run(ProcessApplication.class, args);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
public class ProcessConstants {

public static final String BPMN_PROCESS_ID = "camunda-process";

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,54 @@

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@JsonInclude(Include.NON_NULL)
public class ProcessVariables {

private String texte;
private Long number;
private String date;

public String getTexte() {
return texte;
}

public ProcessVariables setTexte(String texte) {
this.texte = texte;
return this;
}
public Long getNumber() {
return number;
}

public ProcessVariables setNumber(Long number) {
this.number = number;
return this;
}

public String getDate() {
return date;
}

public ProcessVariables setDate(String date) {
this.date = date;
return this;
}

@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, new MultilineRecursiveToStringStyle() {
public ToStringStyle withShortPrefixes() {
this.setUseShortClassName(true);
this.setUseIdentityHashCode(false);
return this;
}
}.withShortPrefixes());
}
private String texte;
private Long number;
private String date;

public String getTexte() {
return texte;
}

public ProcessVariables setTexte(String texte) {
this.texte = texte;
return this;
}

public Long getNumber() {
return number;
}

public ProcessVariables setNumber(Long number) {
this.number = number;
return this;
}

public String getDate() {
return date;
}

public ProcessVariables setDate(String date) {
this.date = date;
return this;
}

@Override
public String toString() {
return ToStringBuilder.reflectionToString(
this,
new MultilineRecursiveToStringStyle() {
public ToStringStyle withShortPrefixes() {
this.setUseShortClassName(true);
this.setUseIdentityHashCode(false);
return this;
}
}.withShortPrefixes());
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package org.example.camunda.process.solution.dao;

import java.util.Optional;

import org.example.camunda.process.solution.model.BaseEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface BaseRepository<T extends BaseEntity> extends JpaRepository<T, Long>, JpaSpecificationExecutor<T> {
public interface BaseRepository<T extends BaseEntity>
extends JpaRepository<T, Long>, JpaSpecificationExecutor<T> {

Optional<T> findById(Long id);

Optional<T> findById(Long id);
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package org.example.camunda.process.solution.dao;

import java.util.List;

import org.example.camunda.process.solution.model.Form;
import org.springframework.data.jpa.repository.Query;

public interface FormRepository extends BaseRepository<Form> {

Form findByName(String name);

@Query("SELECT f.name FROM Form f ORDER BY f.name ASC")
List<String> findNames();
Form findByName(String name);

@Query("SELECT f.name FROM Form f ORDER BY f.name ASC")
List<String> findNames();
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

public interface TaskTokenRepository extends BaseRepository<TaskToken> {

TaskToken findByToken(String token);

Long deleteByTaskId(String taskId);
TaskToken findByToken(String token);

Long deleteByTaskId(String taskId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

public interface UserRepository extends BaseRepository<User> {

User findByUsername(String username);

User findByUsername(String username);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,22 @@
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class TechnicalException extends RuntimeException {

/**
*
*/
private static final long serialVersionUID = -7593616210087047797L;
/** */
private static final long serialVersionUID = -7593616210087047797L;

public TechnicalException() {
super();
}
public TechnicalException() {
super();
}

public TechnicalException(Exception e) {
super(e);
}
public TechnicalException(Exception e) {
super(e);
}

public TechnicalException(String message) {
super(message);
}
public TechnicalException(String message) {
super(message);
}

public TechnicalException(String message, Exception e) {
super(message, e);
}
public TechnicalException(String message, Exception e) {
super(message, e);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
@ResponseStatus(HttpStatus.UNAUTHORIZED)
public class UnauthorizedException extends RuntimeException {

private static final long serialVersionUID = -7593616210087047797L;
private static final long serialVersionUID = -7593616210087047797L;

public UnauthorizedException() {
super();
}
public UnauthorizedException() {
super();
}

public UnauthorizedException(Exception e) {
super(e);
}
public UnauthorizedException(Exception e) {
super(e);
}

public UnauthorizedException(String message) {
super(message);
}
public UnauthorizedException(String message) {
super(message);
}
}
Loading

0 comments on commit 2613926

Please sign in to comment.