Skip to content

Commit ac222ce

Browse files
committed
Minor changes
1 parent 6fb8b85 commit ac222ce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

codegen/src/main/java/software/amazon/awssdk/codegen/emitters/tasks/PackageInfoGeneratorTasks.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ private String generateCodeExamplesJavadoc(List<DocumentationUtils.ExampleData>
9191
}
9292

9393
StringBuilder javadoc = new StringBuilder();
94-
javadoc.append("<h3>Code Examples</h3>").append("\n");
94+
javadoc.append("<h2>Code Examples</h2>").append("\n");
9595
javadoc.append("<p>The following code examples show how to use this service with the AWS SDK for Java v2:</p>")
9696
.append("\n");
9797

9898
Map<String, String> categoryMapping = new java.util.LinkedHashMap<>();
9999
categoryMapping.put("Hello", "Getting Started");
100-
categoryMapping.put("Api", "API Actions");
101100
categoryMapping.put("Basics", "Basics");
101+
categoryMapping.put("Api", "API Actions");
102102
categoryMapping.put("Scenarios", "Scenarios");
103103
categoryMapping.put("Serverless examples", "Serverless Examples");
104104

@@ -126,7 +126,7 @@ private String generateCodeExamplesJavadoc(List<DocumentationUtils.ExampleData>
126126

127127
private void appendCategorySection(StringBuilder javadoc, String displayName,
128128
List<DocumentationUtils.ExampleData> categoryExamples) {
129-
javadoc.append("<h4>").append(displayName).append("</h4>").append("\n");
129+
javadoc.append("<h3>").append(displayName).append("</h3>").append("\n");
130130
javadoc.append("<ul>").append("\n");
131131

132132
for (DocumentationUtils.ExampleData example : categoryExamples) {

codegen/src/main/java/software/amazon/awssdk/codegen/internal/DocumentationUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ private static JsonNode getServiceNode(String serviceKey, String exampleMetaPath
234234
if (serviceNodeCache == null) {
235235
buildServiceCache(exampleMetaPath);
236236
}
237-
return serviceNodeCache.get(serviceKey);
237+
return serviceNodeCache != null ? serviceNodeCache.get(serviceKey) : null;
238238
}
239239

240240
/**
@@ -244,7 +244,7 @@ private static Map<String, String> getNormalizedServiceKeyMap(String exampleMeta
244244
if (normalizedServiceKeyMap == null) {
245245
buildServiceCache(exampleMetaPath);
246246
}
247-
return normalizedServiceKeyMap;
247+
return normalizedServiceKeyMap != null ? normalizedServiceKeyMap : new HashMap<>();
248248
}
249249

250250
/**

0 commit comments

Comments
 (0)