From 6b4de43eebdf229c44a6cc9e09b186a2594cd95b Mon Sep 17 00:00:00 2001 From: John Camelon Date: Thu, 14 Jul 2005 01:51:41 +0000 Subject: [PATCH] Removed warnings. Set Visibility of nested class to protected to help our friends in zOS. --- .../internal/ui/search/actions/SelectionParseAction.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/SelectionParseAction.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/SelectionParseAction.java index 9d1f76c7890..f7944fb7523 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/SelectionParseAction.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/SelectionParseAction.java @@ -482,12 +482,12 @@ public class SelectionParseAction extends Action { break; } case 'n': { // start of "new" - while (doc.getChar(++index) != 'w'); + while (doc.getChar(++index) != 'w') {} possibleEnd=++index; break; } case 'd': { // start of "delete" - while (doc.getChar(++index) != 't' && doc.getChar(index+1) != 'e'); + while (doc.getChar(++index) != 't' && doc.getChar(index+1) != 'e'){} index+=2; possibleEnd=index; break; @@ -536,7 +536,7 @@ public class SelectionParseAction extends Action { return sel; } - class SelSearchNode{ + protected class SelSearchNode{ protected String selText; protected int selStart; protected int selEnd; @@ -635,7 +635,7 @@ public class SelectionParseAction extends Action { } else if (locatable instanceof ILineLocatable){ int tempstartOffset = ((ILineLocatable)locatable).getStartLine(); - IDocument doc = ((AbstractTextEditor) part).getDocumentProvider().getDocument(part.getEditorInput());; + IDocument doc = ((AbstractTextEditor) part).getDocumentProvider().getDocument(part.getEditorInput()); try { //NOTE: Subtract 1 from the passed in line number because, even though the editor is 1 based, the line //resolver doesn't take this into account and is still 0 based