From 23762eaa5cbadc8a9b3271ecb4c65e309a5eb7d0 Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Thu, 5 Sep 2019 12:00:43 +0200 Subject: Removing ; behind //$NON-NLS-1$; to make Sonar happier See https://community.sonarsource.com/t/sonarlint-for-eclipse-report-wrong-warning-for-this-block-of-commented-out-lines-of-code-should-be-removed/11036 Also version updates included Change-Id: I3c911a062f6b20e6b66cec7d9d81ca692a36c8a4 Signed-off-by: Lars Vogel Also-by: Karsten Thoms --- bundles/org.eclipse.compare.core/META-INF/MANIFEST.MF | 2 +- bundles/org.eclipse.compare.core/pom.xml | 2 +- .../src/org/eclipse/compare/internal/core/patch/Hunk.java | 8 +++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/bundles/org.eclipse.compare.core/META-INF/MANIFEST.MF b/bundles/org.eclipse.compare.core/META-INF/MANIFEST.MF index 2c4329b52..6c5e184c2 100644 --- a/bundles/org.eclipse.compare.core/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.compare.core/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.compare.core -Bundle-Version: 3.6.600.qualifier +Bundle-Version: 3.6.700.qualifier Bundle-Activator: org.eclipse.compare.internal.core.ComparePlugin Bundle-Vendor: %providerName Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)" diff --git a/bundles/org.eclipse.compare.core/pom.xml b/bundles/org.eclipse.compare.core/pom.xml index b1c9532d7..f03ccb2bb 100644 --- a/bundles/org.eclipse.compare.core/pom.xml +++ b/bundles/org.eclipse.compare.core/pom.xml @@ -19,6 +19,6 @@ org.eclipse.compare org.eclipse.compare.core - 3.6.600-SNAPSHOT + 3.6.700-SNAPSHOT eclipse-plugin diff --git a/bundles/org.eclipse.compare.core/src/org/eclipse/compare/internal/core/patch/Hunk.java b/bundles/org.eclipse.compare.core/src/org/eclipse/compare/internal/core/patch/Hunk.java index 3a4f3dae8..a62f8e730 100644 --- a/bundles/org.eclipse.compare.core/src/org/eclipse/compare/internal/core/patch/Hunk.java +++ b/bundles/org.eclipse.compare.core/src/org/eclipse/compare/internal/core/patch/Hunk.java @@ -17,9 +17,7 @@ import java.io.InputStream; import java.util.ArrayList; import java.util.List; -import org.eclipse.compare.patch.IFilePatchResult; -import org.eclipse.compare.patch.IHunk; -import org.eclipse.compare.patch.PatchConfiguration; +import org.eclipse.compare.patch.*; import org.eclipse.core.runtime.Assert; /** @@ -362,7 +360,7 @@ public class Hunk implements IHunk { && contextLines.size() >= fuzz && !checkPrecedingContextLines(configuration, lines, fuzz, pos, contextLines)) - Assert.isTrue(false, "doPatch: preceding context lines don't match, even though fuzz factor has been used"); //$NON-NLS-1$; + Assert.isTrue(false, "doPatch: preceding context lines don't match, even though fuzz factor has been used"); //$NON-NLS-1$ // else if there is less or equal context line to the fuzz // factor we ignore them all and treat as matching @@ -381,7 +379,7 @@ public class Hunk implements IHunk { && contextLines.size() >= fuzz && !checkPrecedingContextLines(configuration, lines, fuzz, pos, contextLines)) - Assert.isTrue(false, "doPatch: preceding context lines don't match, even though fuzz factor has been used"); //$NON-NLS-1$; + Assert.isTrue(false, "doPatch: preceding context lines don't match, even though fuzz factor has been used"); //$NON-NLS-1$ precedingLinesChecked = true; contextLines.clear(); -- cgit v1.2.3