Skip to content

Commit

Permalink
Merge pull request #861 from pascalgrimaud/prettier-templates
Browse files Browse the repository at this point in the history
Prettier some mustache templates
  • Loading branch information
pascalgrimaud authored Feb 25, 2022
2 parents 6bef5be + 83c9a87 commit c790e18
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@ class HexagonalArchTest {
.because("Primary should not interact with secondary")
.check(importedClasses);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ public class LoggingAspect {
);
} else {
logger(joinPoint)
.error(
"Exception in {}() with cause = {}",
joinPoint.getSignature().getName(),
e.getCause() != null ? e.getCause() : "NULL"
);
.error("Exception in {}() with cause = {}", joinPoint.getSignature().getName(), e.getCause() != null ? e.getCause() : "NULL");
}
}

Expand All @@ -96,7 +92,7 @@ public class LoggingAspect {
if (log.isDebugEnabled()) {
log.debug("Enter: {}() with argument[s] = {}", joinPoint.getSignature().getName(), Arrays.toString(joinPoint.getArgs()));
}

try {
Object result = joinPoint.proceed();
if (log.isDebugEnabled()) {
Expand All @@ -108,4 +104,4 @@ public class LoggingAspect {
throw e;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ public class LoggingAspectConfiguration {
public LoggingAspect loggingAspect() {
return new LoggingAspect();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import org.springframework.data.jpa.repository.JpaRepository;
/**
* Spring Data JPA repository for the {@link AuthorityEntity} entity.
*/
public interface AuthorityJpaRepository extends JpaRepository<AuthorityEntity, String> {}
public interface AuthorityJpaRepository extends JpaRepository<AuthorityEntity, String> {}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public class UserConstants {
public static final String DEFAULT_LANGUAGE = "en";
private UserConstants() {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.annotations.BatchSize;

import {{packageName}}.user.domain.UserConstants;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ public interface UserJpaRepository extends JpaRepository<UserEntity, Long> {
Optional<UserEntity> findOneWithAuthoritiesByEmailIgnoreCase(String email);
Page<UserEntity> findAllByIdNotNullAndActivatedIsTrue(Pageable pageable);
}
}

0 comments on commit c790e18

Please sign in to comment.