From 6d1ca3b7cf1b7a1285e8d3ec059b6340602ad320 Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Wed, 17 Jan 2024 15:19:59 +0100 Subject: [PATCH] have MavenTargetLocation.equals eventually return true In the TargetPlatformPreferencePage, upon the Apply button, some target definition containing some MavenTargetLocation always was rewritten to it's .target file. This was because MavenTargetLocation.equals never returned true for multiple reasons, starting with MavenTargetDependency lacking an impl of equals(). Using serialize(), we can be sure to perform the equals check on any relevant attribute, including deeply nested ones. --- org.eclipse.m2e.pde.feature/feature.xml | 2 +- org.eclipse.m2e.pde.target/META-INF/MANIFEST.MF | 2 +- .../src/org/eclipse/m2e/pde/target/MavenTargetLocation.java | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/org.eclipse.m2e.pde.feature/feature.xml b/org.eclipse.m2e.pde.feature/feature.xml index 1bdce79a74..1b400d6e98 100644 --- a/org.eclipse.m2e.pde.feature/feature.xml +++ b/org.eclipse.m2e.pde.feature/feature.xml @@ -2,7 +2,7 @@