From cba10744d83690c8c6f5c5b52e6390a6b7bdf99a Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Mon, 24 Apr 2017 19:58:58 +0300 Subject: [PATCH] toString for debugging --- .../jetbrains/java/decompiler/main/rels/ClassWrapper.java | 5 +++++ .../jetbrains/java/decompiler/main/rels/MethodWrapper.java | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java b/src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java index acc2849..fdabfde 100644 --- a/src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java +++ b/src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java @@ -217,4 +217,9 @@ public class ClassWrapper { public VBStyleCollection getDynamicFieldInitializers() { return dynamicFieldInitializers; } + + @Override + public String toString() { + return classStruct.qualifiedName; + } } \ No newline at end of file diff --git a/src/org/jetbrains/java/decompiler/main/rels/MethodWrapper.java b/src/org/jetbrains/java/decompiler/main/rels/MethodWrapper.java index 3060c73..8fc8fe2 100644 --- a/src/org/jetbrains/java/decompiler/main/rels/MethodWrapper.java +++ b/src/org/jetbrains/java/decompiler/main/rels/MethodWrapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2016 JetBrains s.r.o. + * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,4 +50,9 @@ public class MethodWrapper { } return graph; } + + @Override + public String toString() { + return methodStruct.getName(); + } } \ No newline at end of file