From fc1514c834fb308e362826eddd0f350cae4794d0 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 17 Sep 2015 13:28:17 +0200 Subject: [PATCH] patch from Pavel Labath : add getBytes method to diagnostic.Attachment --- .../src/com/intellij/openapi/diagnostic/Attachment.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/util/src/com/intellij/openapi/diagnostic/Attachment.java b/platform/util/src/com/intellij/openapi/diagnostic/Attachment.java index df2c3975d673..c0a79df134fa 100644 --- a/platform/util/src/com/intellij/openapi/diagnostic/Attachment.java +++ b/platform/util/src/com/intellij/openapi/diagnostic/Attachment.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2015 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. @@ -64,6 +64,11 @@ public class Attachment { return Base64Converter.encode(myBytes); } + @NotNull + public byte[] getBytes() { + return myBytes; + } + public boolean isIncluded() { return myIncluded; }