Skip to content

Commit babd1da

Browse files
committed
Remoformat of all the code by IDEA
1 parent a331581 commit babd1da

24 files changed

+58
-58
lines changed

src/main/java/graphql/ExecutionResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface ExecutionResult {
2525
/**
2626
* @return a map of extensions or null if there are none
2727
*/
28-
Map<Object,Object> getExtensions();
28+
Map<Object, Object> getExtensions();
2929

3030

3131
/**

src/main/java/graphql/Scalars.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public Integer serialize(Object input) {
7878
Integer result = convertImpl(input);
7979
if (result == null) {
8080
throw new CoercingSerializeException(
81-
"Expected type 'Int' but was '" + typeName(input) + "'."
81+
"Expected type 'Int' but was '" + typeName(input) + "'."
8282
);
8383
}
8484
return result;
@@ -89,7 +89,7 @@ public Integer parseValue(Object input) {
8989
Integer result = convertImpl(input);
9090
if (result == null) {
9191
throw new CoercingParseValueException(
92-
"Expected type 'Int' but was '" + typeName(input) + "'."
92+
"Expected type 'Int' but was '" + typeName(input) + "'."
9393
);
9494
}
9595
return result;
@@ -133,7 +133,7 @@ public Double serialize(Object input) {
133133
Double result = convertImpl(input);
134134
if (result == null) {
135135
throw new CoercingSerializeException(
136-
"Expected type 'Float' but was '" + typeName(input) + "'."
136+
"Expected type 'Float' but was '" + typeName(input) + "'."
137137
);
138138
}
139139
return result;
@@ -145,7 +145,7 @@ public Double parseValue(Object input) {
145145
Double result = convertImpl(input);
146146
if (result == null) {
147147
throw new CoercingParseValueException(
148-
"Expected type 'Float' but was '" + typeName(input) + "'."
148+
"Expected type 'Float' but was '" + typeName(input) + "'."
149149
);
150150
}
151151
return result;
@@ -214,7 +214,7 @@ public Boolean serialize(Object input) {
214214
Boolean result = convertImpl(input);
215215
if (result == null) {
216216
throw new CoercingSerializeException(
217-
"Expected type 'Boolean' but was '" + typeName(input) + "'."
217+
"Expected type 'Boolean' but was '" + typeName(input) + "'."
218218
);
219219
}
220220
return result;
@@ -225,7 +225,7 @@ public Boolean parseValue(Object input) {
225225
Boolean result = convertImpl(input);
226226
if (result == null) {
227227
throw new CoercingParseValueException(
228-
"Expected type 'Boolean' but was '" + typeName(input) + "'."
228+
"Expected type 'Boolean' but was '" + typeName(input) + "'."
229229
);
230230
}
231231
return result;
@@ -266,7 +266,7 @@ public String serialize(Object input) {
266266
String result = convertImpl(input);
267267
if (result == null) {
268268
throw new CoercingSerializeException(
269-
"Expected type 'ID' but was '" + typeName(input) + "'."
269+
"Expected type 'ID' but was '" + typeName(input) + "'."
270270
);
271271
}
272272
return result;
@@ -277,7 +277,7 @@ public String parseValue(Object input) {
277277
String result = convertImpl(input);
278278
if (result == null) {
279279
throw new CoercingParseValueException(
280-
"Expected type 'ID' but was '" + typeName(input) + "'."
280+
"Expected type 'ID' but was '" + typeName(input) + "'."
281281
);
282282
}
283283
return result;
@@ -326,7 +326,7 @@ public Long serialize(Object input) {
326326
Long result = convertImpl(input);
327327
if (result == null) {
328328
throw new CoercingSerializeException(
329-
"Expected type 'Long' but was '" + typeName(input) + "'."
329+
"Expected type 'Long' but was '" + typeName(input) + "'."
330330
);
331331
}
332332
return result;
@@ -337,7 +337,7 @@ public Long parseValue(Object input) {
337337
Long result = convertImpl(input);
338338
if (result == null) {
339339
throw new CoercingParseValueException(
340-
"Expected type 'Long' but was '" + typeName(input) + "'."
340+
"Expected type 'Long' but was '" + typeName(input) + "'."
341341
);
342342
}
343343
return result;
@@ -393,7 +393,7 @@ public Short serialize(Object input) {
393393
Short result = convertImpl(input);
394394
if (result == null) {
395395
throw new CoercingSerializeException(
396-
"Expected type 'Short' but was '" + typeName(input) + "'."
396+
"Expected type 'Short' but was '" + typeName(input) + "'."
397397
);
398398
}
399399
return result;
@@ -404,7 +404,7 @@ public Short parseValue(Object input) {
404404
Short result = convertImpl(input);
405405
if (result == null) {
406406
throw new CoercingParseValueException(
407-
"Expected type 'Short' but was '" + typeName(input) + "'."
407+
"Expected type 'Short' but was '" + typeName(input) + "'."
408408
);
409409
}
410410
return result;
@@ -452,7 +452,7 @@ public Byte serialize(Object input) {
452452
Byte result = convertImpl(input);
453453
if (result == null) {
454454
throw new CoercingSerializeException(
455-
"Expected type 'Byte' but was '" + typeName(input) + "'."
455+
"Expected type 'Byte' but was '" + typeName(input) + "'."
456456
);
457457
}
458458
return result;
@@ -463,7 +463,7 @@ public Byte parseValue(Object input) {
463463
Byte result = convertImpl(input);
464464
if (result == null) {
465465
throw new CoercingParseValueException(
466-
"Expected type 'Byte' but was '" + typeName(input) + "'."
466+
"Expected type 'Byte' but was '" + typeName(input) + "'."
467467
);
468468
}
469469
return result;
@@ -509,7 +509,7 @@ public BigInteger serialize(Object input) {
509509
BigInteger result = convertImpl(input);
510510
if (result == null) {
511511
throw new CoercingSerializeException(
512-
"Expected type 'BigInteger' but was '" + typeName(input) + "'."
512+
"Expected type 'BigInteger' but was '" + typeName(input) + "'."
513513
);
514514
}
515515
return result;
@@ -520,7 +520,7 @@ public BigInteger parseValue(Object input) {
520520
BigInteger result = convertImpl(input);
521521
if (result == null) {
522522
throw new CoercingParseValueException(
523-
"Expected type 'BigInteger' but was '" + typeName(input) + "'."
523+
"Expected type 'BigInteger' but was '" + typeName(input) + "'."
524524
);
525525
}
526526
return result;
@@ -569,7 +569,7 @@ public BigDecimal serialize(Object input) {
569569
BigDecimal result = convertImpl(input);
570570
if (result == null) {
571571
throw new CoercingSerializeException(
572-
"Expected type 'BigDecimal' but was '" + typeName(input) + "'."
572+
"Expected type 'BigDecimal' but was '" + typeName(input) + "'."
573573
);
574574
}
575575
return result;
@@ -580,7 +580,7 @@ public BigDecimal parseValue(Object input) {
580580
BigDecimal result = convertImpl(input);
581581
if (result == null) {
582582
throw new CoercingParseValueException(
583-
"Expected type 'BigDecimal' but was '" + typeName(input) + "'."
583+
"Expected type 'BigDecimal' but was '" + typeName(input) + "'."
584584
);
585585
}
586586
return result;
@@ -625,7 +625,7 @@ public Character serialize(Object input) {
625625
Character result = convertImpl(input);
626626
if (result == null) {
627627
throw new CoercingSerializeException(
628-
"Expected type 'Char' but was '" + typeName(input) + "'."
628+
"Expected type 'Char' but was '" + typeName(input) + "'."
629629
);
630630
}
631631
return result;
@@ -636,7 +636,7 @@ public Character parseValue(Object input) {
636636
Character result = convertImpl(input);
637637
if (result == null) {
638638
throw new CoercingParseValueException(
639-
"Expected type 'Char' but was '" + typeName(input) + "'."
639+
"Expected type 'Char' but was '" + typeName(input) + "'."
640640
);
641641
}
642642
return result;

src/main/java/graphql/execution/AsyncExecutionStrategy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ public CompletableFuture<ExecutionResult> execute(ExecutionContext executionCont
5555
CompletableFuture<ExecutionResult> future = resolveField(executionContext, newParameters);
5656
futures.add(future);
5757
}
58-
beginFieldsCtx.onEnd(fields,null);
58+
beginFieldsCtx.onEnd(fields, null);
5959

6060
CompletableFuture<ExecutionResult> overallResult = new CompletableFuture<>();
6161
Async.each(futures).whenComplete(handleResults(executionContext, fieldNames, overallResult));
6262

63-
executionStrategyCtx.onEnd(overallResult,null);
63+
executionStrategyCtx.onEnd(overallResult, null);
6464
return overallResult;
6565
}
6666

src/main/java/graphql/execution/ExecutionId.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class ExecutionId {
1111

1212
/**
1313
* Create an unique identifier from the given string
14+
*
1415
* @return a query execution identifier
1516
*/
1617
public static ExecutionId generate() {
@@ -19,7 +20,9 @@ public static ExecutionId generate() {
1920

2021
/**
2122
* Create an identifier from the given string
23+
*
2224
* @param id the string to wrap
25+
*
2326
* @return a query identifier
2427
*/
2528
public static ExecutionId from(String id) {

src/main/java/graphql/execution/TypeResolutionParameters.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package graphql.execution;
22

3-
import java.util.Map;
4-
53
import graphql.language.Field;
64
import graphql.schema.GraphQLInterfaceType;
75
import graphql.schema.GraphQLSchema;
86
import graphql.schema.GraphQLUnionType;
97

8+
import java.util.Map;
9+
1010
public class TypeResolutionParameters {
1111

1212
private final GraphQLInterfaceType graphQLInterfaceType;

src/main/java/graphql/execution/ValuesResolver.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ public Map<String, Object> coerceArgumentValues(GraphQLSchema schema, List<Varia
8888
}
8989
} catch (CoercingParseValueException e) {
9090
throw new CoercingParseValueException(
91-
"Variable '" + variableName + "' has an invalid value. " + e.getMessage(),
92-
e.getCause(),
93-
variableDefinition.getSourceLocation()
91+
"Variable '" + variableName + "' has an invalid value. " + e.getMessage(),
92+
e.getCause(),
93+
variableDefinition.getSourceLocation()
9494
);
9595
}
9696
}
@@ -171,8 +171,8 @@ private Object coerceValue(VariableDefinition variableDefinition, GraphQLType gr
171171
return coerceValueForInputObjectType(variableDefinition, (GraphQLInputObjectType) graphQLType, (Map<String, Object>) value);
172172
} else {
173173
throw new CoercingParseValueException(
174-
"Expected type 'Map' but was '" + value.getClass().getSimpleName() +
175-
"'. Variables for input objects must be an instance of a 'Map'."
174+
"Expected type 'Map' but was '" + value.getClass().getSimpleName() +
175+
"'. Variables for input objects must be an instance of a 'Map'."
176176
);
177177
}
178178
} else {

src/main/java/graphql/execution/preparsed/PreparsedDocumentEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public Document getDocument() {
3838
public List<? extends GraphQLError> getErrors() {
3939
return errors;
4040
}
41-
41+
4242
public boolean hasErrors() {
4343
return errors != null && !errors.isEmpty();
4444
}

src/main/java/graphql/language/AbstractNode.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import java.util.Collections;
55
import java.util.List;
6-
import java.util.function.Function;
76
import java.util.stream.Collectors;
87

98
import static graphql.Assert.assertNotNull;

src/main/java/graphql/language/AstComparator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package graphql.language;
22

33

4-
import java.util.List;
54
import java.util.Iterator;
5+
import java.util.List;
66

77
public class AstComparator {
88

@@ -20,7 +20,7 @@ public boolean isEqual(Node node1, Node node2) {
2020
}
2121

2222
public boolean isEqual(List<Node> nodes1, List<Node> nodes2) {
23-
if ( nodes1.size() != nodes2.size() ) return false;
23+
if (nodes1.size() != nodes2.size()) return false;
2424
Iterator<Node> iter1 = nodes1.iterator();
2525
Iterator<Node> iter2 = nodes2.iterator();
2626
while (iter1.hasNext()) {

src/main/java/graphql/language/DirectiveLocation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public boolean isEqualTo(Node o) {
3535

3636
DirectiveLocation that = (DirectiveLocation) o;
3737

38-
return NodeUtil.isEqualTo(this.name,that.name);
38+
return NodeUtil.isEqualTo(this.name, that.name);
3939
}
4040

4141
@Override

0 commit comments

Comments
 (0)