1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

[180562] [api] Classes should not implement interfaces just to bring constants into namespace. Do not implement ISystemSearchConstants.

This commit is contained in:
Kushal Munir 2007-04-03 08:29:23 +00:00
parent 4f31956e59
commit 57d908cf59

View file

@ -24,7 +24,7 @@ import java.util.List;
/**
* This class locates matches.
*/
public class SystemSearchStringMatchLocator implements ISystemSearchConstants {
public class SystemSearchStringMatchLocator {
private Reader reader;
private SystemSearchStringMatcher stringMatcher;
@ -160,16 +160,16 @@ public class SystemSearchStringMatchLocator implements ISystemSearchConstants {
while (ch >= 0) {
// if we get a line feed character, then we have read a line (in Unix)
if (ch == LF_CHAR) {
if (ch == ISystemSearchConstants.LF_CHAR) {
return 1;
}
// otherwise if we get a carriage return character, then we need to check the next character
if (ch == CR_CHAR) {
if (ch == ISystemSearchConstants.CR_CHAR) {
ch = reader.read();
// if the character is a line feed, then we have read a line (in Windows)
if (ch == LF_CHAR) {
if (ch == ISystemSearchConstants.LF_CHAR) {
return 2;
}
// otherwise, we assume we are still in the same line (i.e. a carriage return does not count as a line separator)