Skip to content

Commit e6b3166

Browse files
JimClarke5rnett
authored andcommitted
Add unused to renderCodeBlock for unused parameter attributes.
1 parent 820e6e0 commit e6b3166

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tensorflow-core/tensorflow-core-generator/src/main/java/org/tensorflow/op/generator/javadoc/CoreJavaDocNodeRenderer.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ public void visit(Link link) {
303303
if (url.contains("api_docs/python")) {
304304
int startIndex = 0;
305305
int endIndex = url.indexOf("#");
306-
String opClass = null;
307-
String method = null;
306+
String opClass;
307+
String method;
308308
if (endIndex == -1) {
309309
String key = url.substring(startIndex);
310310
opClass = urlLinkConversion.get(key);
@@ -464,16 +464,15 @@ protected void visitChildren(Node parent) {
464464
}
465465
}
466466

467+
@SuppressWarnings("unused") // "attributes"
467468
private void renderCodeBlock(String literal, Node node, Map<String, String> attributes) {
468469
writer.line();
469470
// skip empty <pre> block
470471
if (!literal.isEmpty()) {
471472
writer.tag("pre", getAttrs(node, "pre"));
472-
// writer.tag("code", getAttrs(node, "code", attributes));
473473
writer.line();
474474
writer.text(literal);
475475
writer.line();
476-
// writer.tag("/code");
477476
writer.tag("/pre");
478477
writer.line();
479478
}

0 commit comments

Comments
 (0)