Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow-Devil authored Aug 12, 2024
1 parent e416ee2 commit b177c05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public void perform(CompilerLifecycleEventContext compilerLifecycleEventContext)
Optional<Path> executablePath = compilerLifecycleEventContext.getGeneratedArtifactPath();
final PackageID currentPackage = KubernetesContext.getInstance().getCurrentPackage();
executablePath.ifPresent(path -> {
String executableJarName = "$anon".equals(currentPackage.orgName.getValue()) ? path.getFileName().toString() :
currentPackage.orgName.getValue() + "-" + currentPackage.name.getValue() +
"-" + currentPackage.version.getValue() + ".jar";
String executableJarName = "$anon".equals(currentPackage.orgName.getValue()) ?
path.getFileName().toString() : currentPackage.orgName.getValue() + "-" +
currentPackage.name.getValue() + "-" + currentPackage.version.getValue() + ".jar";
String outputName = "$anon".equals(currentPackage.orgName.getValue()) ? extractJarName(path.getFileName()) :
currentPackage.name.getValue();
dataHolder.setOutputName(outputName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ private String generateDockerfile() {
appendCommonCommands(dockerfileContent);
if (isBlank(this.dockerModel.getEntryPoint())) {
PackageID packageID = this.dockerModel.getPkgId();
String mainClass = JarResolver.getQualifiedClassName(packageID.orgName.getValue(), packageID.name.getValue(),
packageID.version.getValue(), MODULE_INIT_CLASS_NAME);
String mainClass = JarResolver.getQualifiedClassName(packageID.orgName.getValue(),
packageID.name.getValue(), packageID.version.getValue(), MODULE_INIT_CLASS_NAME);
List<String> args = new ArrayList<>();
args.add("java");
args.add("-Xdiag");
Expand Down

0 comments on commit b177c05

Please sign in to comment.