From 43b9411d5b911c9664a0d6ecdac7dc570d8a8dda Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov <138671+Godin@users.noreply.github.com> Date: Mon, 12 Feb 2024 21:02:23 +0100 Subject: [PATCH] Fix compilation error caused by change in org.eclipse.jdt.core 3.37.0 (#46) Prior to this change execution of ``` mvn compile -Pe4.31 ``` leads to ``` [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:3.0.5:compile (default-compile) on project org.eclipse.eclemma.core: Compilation failure: Compilation failure: [ERROR] org.eclipse.eclemma.core/src/org/eclipse/eclemma/internal/core/SessionExporter.java:[174] [ERROR] this.tabWidth = IndentManipulation.getTabWidth(options); [ERROR] ^^^^^^^^^^^ [ERROR] The method getTabWidth(Map) in the type IndentManipulation is not applicable for the arguments (Map) ``` which is caused by change in https://github.com/eclipse-jdt/eclipse.jdt.core/commit/4556ac22b87bd69828fed9fbcf8ce24c24fad2ec --- .../org/eclipse/eclemma/internal/core/SessionExporter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.eclemma.core/src/org/eclipse/eclemma/internal/core/SessionExporter.java b/org.eclipse.eclemma.core/src/org/eclipse/eclemma/internal/core/SessionExporter.java index 3f515c89..87339af1 100644 --- a/org.eclipse.eclemma.core/src/org/eclipse/eclemma/internal/core/SessionExporter.java +++ b/org.eclipse.eclemma.core/src/org/eclipse/eclemma/internal/core/SessionExporter.java @@ -170,8 +170,8 @@ private static abstract class AbstractSourceFileLocator public AbstractSourceFileLocator(IPackageFragmentRoot root) { this.root = root; - final Map options = root.getJavaProject().getOptions(true); - this.tabWidth = IndentManipulation.getTabWidth(options); + this.tabWidth = IndentManipulation + .getTabWidth(root.getJavaProject().getOptions(true)); } public final int getTabWidth() {