From 2830dcc070c76f8a0a5ecf52ed08c36ff12f1d64 Mon Sep 17 00:00:00 2001 From: nbauma109 Date: Wed, 3 May 2023 14:53:55 +0200 Subject: [PATCH] use Optionals --- .../core/v1/printer/PlainTextMetaPrinter.java | 4 ++- .../classfiletojavasyntax/model/cfg/Loop.java | 3 +- .../ClassFileAnnotationDeclaration.java | 4 ++- .../ClassFileClassDeclaration.java | 4 ++- .../declaration/ClassFileEnumDeclaration.java | 3 +- .../ClassFileInterfaceDeclaration.java | 4 ++- .../util/ByteCodeParser.java | 4 +-- .../util/ByteCodeWriter.java | 34 +++++++++++-------- 8 files changed, 37 insertions(+), 23 deletions(-) diff --git a/src/main/java/org/jd/core/v1/printer/PlainTextMetaPrinter.java b/src/main/java/org/jd/core/v1/printer/PlainTextMetaPrinter.java index 3e5497fa..7a93ae56 100644 --- a/src/main/java/org/jd/core/v1/printer/PlainTextMetaPrinter.java +++ b/src/main/java/org/jd/core/v1/printer/PlainTextMetaPrinter.java @@ -7,6 +7,8 @@ package org.jd.core.v1.printer; +import java.util.Optional; + public class PlainTextMetaPrinter extends PlainTextPrinter { // --- Printer --- // @Override @@ -35,7 +37,7 @@ public void printReference(int type, String internalTypeName, String name, Strin sb.append("