Skip to content

Commit

Permalink
smallrye-parent 39 and some dependency alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartisk committed May 3, 2023
1 parent 5da5444 commit 68ed192
Show file tree
Hide file tree
Showing 211 changed files with 382 additions and 364 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/**
* This class provides utility methods for validating names according to the GraphQL specification.
*
*
* @see <a href="https://spec.graphql.org/draft/#Name">https://spec.graphql.org/draft/#Name</a>
*/
public class NameValidation {
Expand All @@ -20,7 +20,7 @@ public class NameValidation {
/**
* Validates a GraphQL name and returns it. Throws an IllegalArgumentException if the name is null or invalid.
* Allows empty string "" as a valid input.
*
*
* @param name the name to validate
* @return the validated name
* @throws IllegalArgumentException if the name is null or invalid
Expand Down Expand Up @@ -57,7 +57,7 @@ public static String validateFragmentName(String name) {
/**
* Validates a GraphQL name and returns it. Throws an IllegalArgumentException if the name is null or invalid.
* Does not allow empty string "" as a valid input.
*
*
* @param name the name to validate
* @return the validated name
* @throws IllegalArgumentException if the name is null, invalid or empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* so CDI can build and inject it for you.
* <p>
* Example:
*
*
* <pre>
* &#64;GraphQLClientApi
* public interface SuperHeroesApi {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public interface WebSocketSubprotocolHandler {

/**
* Requests an execution of a single-result operation over the websocket.
*
*
* @param request Request in full JSON format describing the operation to be executed.
* @param emitter Emitter that should receive the completion event (or an error) when the operation finishes.
* @return The generated internal ID of this operation.
Expand All @@ -34,7 +34,7 @@ public interface WebSocketSubprotocolHandler {

/**
* Requests an execution of a subscription operation over the websocket.
*
*
* @param request Request in full JSON format describing the operation to be executed.
* @param emitter Emitter that should receive the completion events (or an error) from the subscription.
* @return The generated internal ID of this operation.
Expand All @@ -46,7 +46,7 @@ public interface WebSocketSubprotocolHandler {
* operation,
* it only sends a cancellation message to the server (if applicable depending on the protocol), and marks this
* operation as finished.
*
*
* @param operationId ID of the operation (returned from calling `executeUni`)
*/
void cancelUni(String operationId);
Expand All @@ -55,7 +55,7 @@ public interface WebSocketSubprotocolHandler {
* Cancels an active subscription with the given ID. This does not do anything with the Emitter for this operation,
* it only sends a cancellation message to the server (if applicable depending on the protocol), and marks this
* operation as finished.
*
*
* @param operationId ID of the operation (returned from calling `executeMulti`)
*/
void cancelMulti(String operationId);
Expand Down
4 changes: 2 additions & 2 deletions client/implementation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
</dependency>

<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.json</artifactId>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ public boolean isAlternative() {
return false;
}

@Override
public boolean isNullable() {
return false;
}

@Override
public void destroy(T instance, CreationalContext<T> ctx) {
ctx.release();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

/**
* Class helper
*
*
* @author Phillip Kruger ([email protected])
*/
public class Classes {
Expand All @@ -60,7 +60,7 @@ public static boolean isWrapper(Type type) {

/**
* Check if this is a Parameterized type
*
*
* @param type
* @return
*/
Expand All @@ -70,7 +70,7 @@ public static boolean isParameterized(Type type) {

/**
* Check if a certain type is Optional
*
*
* @param type the type
* @return true if it is
*/
Expand All @@ -83,7 +83,7 @@ public static boolean isOptional(Type type) {

/**
* Check if a certain class is an interface
*
*
* @param classInfo the class to check
* @return true if it is
*/
Expand All @@ -95,7 +95,7 @@ public static boolean isInterface(ClassInfo classInfo) {

/**
* Check if a certain class is an enum
*
*
* @param classInfo the class to check
* @return true if it is
*/
Expand All @@ -107,7 +107,7 @@ public static boolean isEnum(ClassInfo classInfo) {

/**
* Check if this type is a Number (or collection of numbers)
*
*
* @param type the type to check
* @return true if it is
*/
Expand All @@ -119,7 +119,7 @@ public static boolean isNumberLikeTypeOrContainedIn(Type type) {

/**
* Check if this type is a Date (or collection of numbers)
*
*
* @param type the type to check
* @return true if it is
*/
Expand Down Expand Up @@ -159,7 +159,7 @@ private static boolean isAsyncType(Type type) {

/**
* Return true if type is java array, or it is Collection type which is handled as GraphQL array
*
*
* @param type to check
* @return if this is a collection or array
*/
Expand All @@ -170,7 +170,7 @@ public static boolean isCollectionOrArray(Type type) {

/**
* Return true if this is an array
*
*
* @param type
* @return
*/
Expand All @@ -180,7 +180,7 @@ public static boolean isArray(Type type) {

/**
* Return true if type is java Collection type which is handled as GraphQL array
*
*
* @param type to check
* @return if this is a collection
*/
Expand Down Expand Up @@ -243,7 +243,7 @@ public static boolean isMap(Type type) {
/**
* Return true if given type is parametrized type unwrapped/handled by the runtime before the serialization
* (Optional&lt;&gt;, CompletableFutur&lt;&gt;, CompletionStage&lt;&gt; etc)
*
*
* @param type to be checked
* @return true if type is unwrapped by the runtime
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* A simple registry to hold the current scanning info
*
* At this point we only keep the index in the context
*
*
* @author Phillip Kruger ([email protected])
*/
public class ScanningContext {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Runtime exception when we could not create a type (input or output) while building the schema
* or the schema itself
*
*
* @author Phillip Kruger ([email protected])
*/
public class SchemaBuilderException extends RuntimeException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/**
* Abstract creator
*
*
* @author Phillip Kruger ([email protected])
*/
public abstract class ModelCreator {
Expand All @@ -44,7 +44,7 @@ public TypeAutoNameStrategy getTypeAutoNameStrategy() {

/**
* The the return type.This is usually the method return type, but can also be adapted to something else
*
*
* @param methodInfo method
* @return the return type
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

/**
* Helper with detecting if this field is in a wrapper
*
*
* If it is we create an WrapperInfo model that contains the relevant information
*
*
* @author Phillip Kruger ([email protected])
*/
public class WrapperCreator {
Expand All @@ -28,7 +28,7 @@ public static Optional<Wrapper> createWrapper(Type type) {

/**
* Create a Wrapper for a Field (that has properties and methods)
*
*
* @param fieldType the java field type
* @param methodType the java method type
* @return optional array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Something that can create object types on the schema
*
*
* @author Phillip Kruger ([email protected])
* @param <T> the created type
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/**
* This create an Enum Type.
*
*
* @author Phillip Kruger ([email protected])
*/
public class EnumCreator implements Creator<EnumType> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*
* The input object has fields that might reference other types
* that should still be created.
*
*
* @author Phillip Kruger ([email protected])
*/
public class InputTypeCreator implements Creator<InputType> {
Expand Down Expand Up @@ -87,7 +87,7 @@ public boolean hasUseableConstructor(ClassInfo classInfo) {
* Returns a constructor or factory method to create instances of this class.
*
* Could either be the default constructor or any constructor or static method annotated with {@code @JsonbCreator}
*
*
* @param classInfo the class whose creator is to be found
* @return the creator, null, if no public constructor or factory method is found
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/**
* Helping with mapping of scalars
*
*
* @author Phillip Kruger ([email protected])
*/
public class AdaptToHelper {
Expand All @@ -32,7 +32,7 @@ public static boolean shouldCreateTypeInSchema(Annotations annotations) {

/**
* Get the adaptTo for a certain field (if any)
*
*
* @param field
* @param annotations the annotations
* @return Potentially an AdaptTo model
Expand All @@ -43,7 +43,7 @@ public static Optional<AdaptTo> getAdaptTo(Field field, Annotations annotations)

/**
* Get the adapt to for a certain reference.
*
*
* @param r
* @param annotations the annotations
* @return Potentially a AdaptTo model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Helping with object adapters.
* This adds support for Adapting one type to another.
*
*
* @author Phillip Kruger ([email protected])
*/
public class AdaptWithHelper {
Expand All @@ -35,7 +35,7 @@ public static boolean shouldCreateTypeInSchema(Annotations annotations) {

/**
* Get the adaptWith for a certain field (if any)
*
*
* @param direction
* @param referenceCreator
* @param field
Expand All @@ -49,7 +49,7 @@ public static Optional<AdaptWith> getAdaptWith(Direction direction, ReferenceCre

/**
* Get the adapt with for a certain reference.
*
*
* @param direction
* @param referenceCreator
* @param r
Expand Down Expand Up @@ -106,7 +106,7 @@ public static Optional<AdaptWith> getAdaptWith(Direction direction, ReferenceCre

/**
* Get the adapt with for a certain reference.
*
*
* @param direction
* @param referenceCreator
* @param r
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
/**
* Helping to figure out if there is a default value.
* Looking for the @DefaultValue annotation.
*
*
* @author Phillip Kruger ([email protected])
*/
public class DefaultValueHelper {

/**
* Find a default object in the annotation, or empty if nothing
*
*
* @param annotations the annotations to search in
* @return a optional default object
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Helper to get the correct Description.
* Basically looking for the @Description annotation.
*
*
* @author Phillip Kruger ([email protected])
*/
public class DescriptionHelper {
Expand All @@ -20,7 +20,7 @@ private DescriptionHelper() {

/**
* Get the Description on a field or argument
*
*
* @param annotations the annotations for that field/argument
* @param type the java type (some types have default values)
* @return the optional description
Expand Down Expand Up @@ -53,7 +53,7 @@ public static Optional<String> getDescriptionForField(Annotations annotations, T

/**
* Get the description on a class type
*
*
* @param annotations annotation on the class
* @return the optional description
*/
Expand Down
Loading

0 comments on commit 68ed192

Please sign in to comment.