mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user