This commit is contained in:
Alexey Kudravtsev
2019-01-17 15:26:24 +03:00
parent 6645fde04a
commit d1a42e9f1e
3 changed files with 2 additions and 7 deletions
@@ -8,7 +8,6 @@ import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.CharsetToolkit;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* <p>Identifies a line separator:
@@ -52,10 +51,6 @@ public enum LineSeparator {
return myBytes;
}
public static boolean knownAndDifferent(@Nullable LineSeparator separator1, @Nullable LineSeparator separator2) {
return separator1 != null && separator2 != null && !separator1.equals(separator2);
}
@NotNull
public static LineSeparator getSystemLineSeparator() {
return SystemInfo.isWindows ? CRLF : LF;
@@ -319,7 +319,7 @@ abstract class ConcurrentRefHashMap<K, V> extends AbstractMap<K, V> implements C
@Override
public int size() {
int j = 0;
for (Iterator i = iterator(); i.hasNext(); i.next()) j++;
for (Iterator<Entry<K, V>> i = iterator(); i.hasNext(); i.next()) j++;
return j;
}
@@ -356,7 +356,7 @@ abstract class RefHashMap<K, V> extends AbstractMap<K, V> implements Map<K, V> {
@Override
public int size() {
int j = 0;
for (Iterator i = iterator(); i.hasNext(); i.next()) j++;
for (Iterator<Entry<K, V>> i = iterator(); i.hasNext(); i.next()) j++;
return j;
}