From 0ec4b52a438c2f5a439af54a0a2c6deaceab1b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Wed, 12 Jun 2024 13:40:05 +0300 Subject: [PATCH 1/2] Fix pde warnings --- .../org.eclipse.linuxtools.changelog-feature/build.properties | 3 +-- .../build.properties | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/changelog/org.eclipse.linuxtools.changelog-feature/build.properties b/changelog/org.eclipse.linuxtools.changelog-feature/build.properties index 5b7da75c06..8c0232a0b9 100644 --- a/changelog/org.eclipse.linuxtools.changelog-feature/build.properties +++ b/changelog/org.eclipse.linuxtools.changelog-feature/build.properties @@ -2,5 +2,4 @@ bin.includes = feature.xml,\ feature.properties,\ p2.inf src.includes = feature.xml,\ - feature.properties,\ - .project + feature.properties diff --git a/changelog/org.eclipse.linuxtools.changelog.java-feature/build.properties b/changelog/org.eclipse.linuxtools.changelog.java-feature/build.properties index 9afe8b6e6a..8c0232a0b9 100644 --- a/changelog/org.eclipse.linuxtools.changelog.java-feature/build.properties +++ b/changelog/org.eclipse.linuxtools.changelog.java-feature/build.properties @@ -2,6 +2,4 @@ bin.includes = feature.xml,\ feature.properties,\ p2.inf src.includes = feature.xml,\ - feature.properties,\ - build.properties,\ - ChangeLog + feature.properties From f79d73f4d8df4e0e56327cac2be637ef4caa9e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Wed, 12 Jun 2024 13:42:27 +0300 Subject: [PATCH 2/2] Fix try-with-resources warning --- .../gprof/utils/PPC64ElfBinaryObjectWrapper.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gprof/org.eclipse.linuxtools.gprof/src/org/eclipse/linuxtools/internal/gprof/utils/PPC64ElfBinaryObjectWrapper.java b/gprof/org.eclipse.linuxtools.gprof/src/org/eclipse/linuxtools/internal/gprof/utils/PPC64ElfBinaryObjectWrapper.java index a12a8e890e..ee24b25d21 100644 --- a/gprof/org.eclipse.linuxtools.gprof/src/org/eclipse/linuxtools/internal/gprof/utils/PPC64ElfBinaryObjectWrapper.java +++ b/gprof/org.eclipse.linuxtools.gprof/src/org/eclipse/linuxtools/internal/gprof/utils/PPC64ElfBinaryObjectWrapper.java @@ -61,14 +61,14 @@ public ISymbol[] getSymbols() { return symbols; } - symbols = super.getSymbols(); - try { - if (dataSection == null) { - Elf elf = new Elf(getPath().toOSString()); - dataSection = elf.getSectionByName(".data"); //$NON-NLS-1$ - } - } catch (IOException e) { - } + symbols = super.getSymbols(); + if (dataSection == null) { + try (Elf elf = new Elf(getPath().toOSString())) { + dataSection = elf.getSectionByName(".data"); //$NON-NLS-1$ + } catch (IOException e) { + // ignore + } + } //Failed to load data Section if (dataSection == null) {