mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -60,6 +60,7 @@ public class CompilerEncodingServiceImpl extends CompilerEncodingService {
|
||||
}, false);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private Map<Module, Set<Charset>> computeModuleCharsetMap() {
|
||||
final Map<Module, Set<Charset>> map = new THashMap<Module, Set<Charset>>();
|
||||
final Map<VirtualFile, Charset> mappings = EncodingProjectManager.getInstance(myProject).getAllMappings();
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -68,7 +68,7 @@ public abstract class ChooseFileEncodingAction extends ComboBoxAction {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(AnActionEvent e) {
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -89,7 +89,7 @@ public abstract class ChooseFileEncodingAction extends ComboBoxAction {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void actionPerformed(final AnActionEvent e) {
|
||||
public void actionPerformed(@NotNull final AnActionEvent e) {
|
||||
chosen(myFile, NO_ENCODING);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1426,8 +1426,8 @@ public class ContainerUtil extends ContainerUtilRt {
|
||||
}
|
||||
|
||||
@Contract(pure=true)
|
||||
public static <T> T getFirstItem(@Nullable final Collection<T> items, @Nullable final T def) {
|
||||
return items == null || items.isEmpty() ? def : items.iterator().next();
|
||||
public static <T> T getFirstItem(@Nullable final Collection<T> items, @Nullable final T defaultResult) {
|
||||
return items == null || items.isEmpty() ? defaultResult : items.iterator().next();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user