Skip to content

Commit 342f5cd

Browse files
authored
Merge pull request #40 from ZorTik/developmentr
Code reformat
2 parents e97a6dc + d277133 commit 342f5cd

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

asql-core/src/main/java/me/zort/sqllib/internal/fieldResolver/ConstructorParameterResolver.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ public class ConstructorParameterResolver implements ObjectMapper.FieldValueReso
1616
private static final Pattern argumentPattern = Pattern.compile("(arg)(\\d+)");
1717

1818
@Override
19-
public Object obtainValue(SQLConnection connection,
20-
AnnotatedElement element,
21-
Row row,
22-
String fieldName,
23-
String convertedName,
24-
Type type) {
19+
public Object obtainValue(
20+
SQLConnection connection,
21+
AnnotatedElement element,
22+
Row row,
23+
String fieldName,
24+
String convertedName,
25+
Type type
26+
) {
2527
if (!(element instanceof Parameter) || !(((Parameter) element).getDeclaringExecutable() instanceof Constructor))
2628
return null;
2729

asql-core/src/main/java/me/zort/sqllib/internal/impl/QueryResultImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ public QueryResultImpl(boolean successful, String rejectMessage) {
1818
}
1919

2020
public QueryResultImpl rejectMessage(String message) {
21-
if (rejectMessage != null)
21+
if (rejectMessage != null) {
2222
throw new RuntimeException("Reject message is already set!");
23+
}
2324

2425
this.rejectMessage = message;
2526
return this;

0 commit comments

Comments
 (0)