diff --git a/platform/platform-impl/src/com/intellij/ide/ui/search/SearchUtil.java b/platform/platform-impl/src/com/intellij/ide/ui/search/SearchUtil.java index 7c14b6491e43..4bcb43406275 100644 --- a/platform/platform-impl/src/com/intellij/ide/ui/search/SearchUtil.java +++ b/platform/platform-impl/src/com/intellij/ide/ui/search/SearchUtil.java @@ -324,11 +324,10 @@ public class SearchUtil { head = textToMarkup.substring(0, bodyStart); if (bodyEnd >= 0) { foot = textToMarkup.substring(bodyEnd); - textToMarkup = textToMarkup.substring(0, bodyEnd); } else { foot = ""; } - textToMarkup = textToMarkup.substring(bodyStart); + textToMarkup = textToMarkup.substring(bodyStart, bodyEnd); } else { foot = ""; head = ""; diff --git a/plugins/InspectionGadgets/src/com/siyeh/ig/telemetry/InspectionRunTime.java b/plugins/InspectionGadgets/src/com/siyeh/ig/telemetry/InspectionRunTime.java index 639a468baf8c..5cd3e994ff90 100644 --- a/plugins/InspectionGadgets/src/com/siyeh/ig/telemetry/InspectionRunTime.java +++ b/plugins/InspectionGadgets/src/com/siyeh/ig/telemetry/InspectionRunTime.java @@ -1,5 +1,5 @@ /* - * Copyright 2010 Bas Leijdekkers + * Copyright 2010-2011 Bas Leijdekkers * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ */ package com.siyeh.ig.telemetry; -public class InspectionRunTime { +class InspectionRunTime { private final String inspectionName; diff --git a/plugins/InspectionGadgets/src/com/siyeh/ig/telemetry/TelemetryDisplay.java b/plugins/InspectionGadgets/src/com/siyeh/ig/telemetry/TelemetryDisplay.java index 6ea1ab576da4..5296daba7667 100644 --- a/plugins/InspectionGadgets/src/com/siyeh/ig/telemetry/TelemetryDisplay.java +++ b/plugins/InspectionGadgets/src/com/siyeh/ig/telemetry/TelemetryDisplay.java @@ -1,5 +1,5 @@ /* - * Copyright 2003-2010 Dave Griffith, Bas Leijdekkers + * Copyright 2003-2011 Dave Griffith, Bas Leijdekkers * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ import java.text.NumberFormat; import java.util.Comparator; import java.util.List; -public class TelemetryDisplay { +class TelemetryDisplay { private final JScrollPane scrollPane; private final ListTableModel tableModel;