Commit c4480428 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

could be final


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 0e874800
......@@ -235,7 +235,7 @@ public class DependencyCollector {
while (!(allDefs.containsAll(prevDefs))) {
currDefs = new HashSet<Definition>();
allDefs.addAll(prevDefs);
for (Definition d: prevDefs) {
for (final Definition d: prevDefs) {
final DependencyFinderVisitor vis = new DependencyFinderVisitor(currDefs, imports, asnFiles);
d.accept(vis);
}
......@@ -339,7 +339,7 @@ public class DependencyCollector {
final IFile f = (IFile)asnBaseFile;
final Module mod = projectSourceParser.containedModule(f);
final List<Module> impMods = mod.getImportedModules();
for (Module m: impMods) {
for (final Module m: impMods) {
final IResource impModRes = m.getLocation().getFile();
if (asnFiles.contains(impModRes)) {
continue;
......@@ -394,7 +394,7 @@ public class DependencyCollector {
* */
private static void filterImportDefinitions(final Set<IResource> allFiles, final List<ImportModule> importDefs, final ProjectSourceParser projParser) {
final List<Identifier> allFileIds = new ArrayList<Identifier>(allFiles.size());
for (IResource r: allFiles) {
for (final IResource r: allFiles) {
if (!(r instanceof IFile)) {
continue;
}
......@@ -419,7 +419,7 @@ public class DependencyCollector {
* */
private static void filterFriendDefinitions(final Set<IResource> allFiles, final List<FriendModule> friendDefs, final ProjectSourceParser projParser) {
final List<Identifier> allFileIds = new ArrayList<Identifier>(allFiles.size());
for (IResource r: allFiles) {
for (final IResource r: allFiles) {
if (!(r instanceof IFile)) {
continue;
}
......
......@@ -241,7 +241,7 @@ public class ExtractModuleParRefactoring {
parent = parent.getParent();
}
//create all folders from project level towards file level
for (IFolder f: folders) {
for (final IFolder f: folders) {
if (!f.exists()) {
f.create(true, true, new NullProgressMonitor());
}
......
......@@ -52,7 +52,7 @@ public class SelectionFinder {
public void perform() {
modulePars = new HashSet<Def_ModulePar>();
final Collection<Module> modules = GlobalParser.getProjectSourceParser(project).getModules();
for (Module m: modules) {
for (final Module m: modules) {
final ModuleParFinder vis = new ModuleParFinder();
m.accept(vis);
modulePars.addAll(vis.getModulePars());
......@@ -65,7 +65,7 @@ public class SelectionFinder {
}
final List<ModuleParListRecord> records = new ArrayList<ModuleParListRecord>();
for (Def_ModulePar def: modulePars) {
for (final Def_ModulePar def: modulePars) {
final IResource f = def.getLocation().getFile();
if (!(f instanceof IFile)) {
ErrorReporter.logError("ExtractModulePar/SelectionFinder: IResource `" + f.getName() + "' is not an IFile.");
......@@ -79,7 +79,7 @@ public class SelectionFinder {
//
Collections.sort(records);
final StringBuilder sb = new StringBuilder();
for (ModuleParListRecord rec: records) {
for (final ModuleParListRecord rec: records) {
sb.append(rec.toString()).append('\n');
}
return sb.toString();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment