Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add annotation-processor to clientcore ci.yml #43886

Merged
merged 21 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update properties
  • Loading branch information
samvaity committed Jan 28, 2025
commit 9e2b773f0a5ae80073a3c4ef0b4166d9707a1b9a
5 changes: 0 additions & 5 deletions sdk/clientcore/annotation-processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<site.url>https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java</site.url>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<checkstyle.suppressionsLocation>checkstyle-suppressions.xml</checkstyle.suppressionsLocation>
<spotbugs.skip>false</spotbugs.skip>
<spotbugs.excludeFilterFile>spotbugs-exclude.xml</spotbugs.excludeFilterFile>
<jacoco.skip>true</jacoco.skip>
<checkstyle.skip>true</checkstyle.skip>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
@SupportedSourceVersion(SourceVersion.RELEASE_8)
public class AnnotationProcessor extends AbstractProcessor {

/**
* Creates a new instance of the AnnotationProcessor.
*/
public AnnotationProcessor() {
}

@Override
public SourceVersion getSupportedSourceVersion() {
// Reflective fallback if SourceVersion.RELEASE_8 isn't available at compile time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
* Represents the input required for generating a template.
*/
public class TemplateInput {

/**
* Initializes a new instance of the {@link TemplateInput} class.
*/
public TemplateInput() {
}

// A map of fully-qualified class names to their short names
private final Map<String, String> imports = new TreeMap<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
* This class generates the implementation of the service interface.
*/
public class JavaPoetTemplateProcessor implements TemplateProcessor {

/**
* Initializes a new instance of the {@link JavaPoetTemplateProcessor} class.
*/
public JavaPoetTemplateProcessor() {
}

private static final ClassName HTTP_HEADER_NAME = ClassName.bestGuess(HttpHeaderName.class.getName());
private static final ClassName HTTP_HEADERS = ClassName.bestGuess(HttpHeaders.class.getName());
private static final ClassName CONTENT_TYPE = ClassName.bestGuess(ContentType.class.getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* This class is responsible for building the path of the request URL by replacing the placeholders with the actual
*/
public class PathBuilder {
public final class PathBuilder {
// this class takes a 'raw host' string that contains {} delimited parameters, and needs to convert it into a
// Java string concatenation that can be used in the generated code. For example, the raw host string:
// https://{endpoint}/keys/{path1}
Expand Down Expand Up @@ -110,4 +110,7 @@ public static String buildPath(String rawHost, HttpRequestContext method) {

return result;
}

private PathBuilder() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Utility class to generate response body mode assignment and response handling based on the response body mode.
*/
public class ResponseBodyModeGeneration {
public final class ResponseBodyModeGeneration {

/**
* Generates response body mode assignment based on request options and return type.
Expand Down Expand Up @@ -149,4 +149,7 @@ public static void handleResponseModeToCreateResponse(TypeName returnTypeName, M
.addStatement("return decodeByteArray(responseBody.toBytes(), response, serializer, methodParser)");
}
}

private ResponseBodyModeGeneration() {
}
}
Loading