File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
codegen/src/main/java/software/amazon/awssdk/codegen/emitters/tasks Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,13 @@ protected List<GeneratorTask> createTasks() throws Exception {
4545
4646 String codeExamples = getCodeExamples (metadata );
4747
48- String packageInfoContents =
49- String .format ("/**%n"
50- + " * %s%n"
51- + (codeExamples .isEmpty () ? "" : " *%n * %s%n" )
52- + "*/%n"
53- + "package %s;" ,
54- baseDocumentation ,
55- codeExamples ,
56- metadata .getFullClientPackageName ());
48+ StringBuilder sb = new StringBuilder ();
49+ sb .append (String .format ("/**%n * %s%n" , baseDocumentation ));
50+ if (!codeExamples .isEmpty ()) {
51+ sb .append (String .format (" *%n * %s%n" , codeExamples ));
52+ }
53+ sb .append (String .format ("*/%npackage %s;" , metadata .getFullClientPackageName ()));
54+ String packageInfoContents = sb .toString ();
5755 return Collections .singletonList (new SimpleGeneratorTask (baseDirectory ,
5856 "package-info.java" ,
5957 model .getFileHeader (),
You can’t perform that action at this time.
0 commit comments