Skip to content

Commit cc742c8

Browse files
author
jan
committed
fix warning and todo
1 parent a55079b commit cc742c8

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

io.sloeber.autoBuild/src/io/sloeber/autoBuild/extensionPoint/providers/AutoBuildMakeRule.java

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -382,22 +382,9 @@ public void addPrerequisites(IInputType inputType, Set<IFile> files) {
382382

383383
@Override
384384
public boolean isSimpleRule() {
385-
// TOFIX 2 times the same test with an or???
386-
if ((myTargets.size() != 1) || (myTargets.size() != 1)) {
385+
if ((myTargets.size() != 1) || (myPrerequisites.size() != 1)) {
387386
return false;
388387
}
389-
// int counter = 0;
390-
// for (Set<IFile> files : myTargets.values()) {
391-
// if ((++counter > 1) || (files.size() != 1)) {
392-
// return false;
393-
// }
394-
// }
395-
// counter = 0;
396-
// for (Set<IFile> files : myPrerequisites.values()) {
397-
// if ((++counter > 1)) {
398-
// return false;
399-
// }
400-
// }
401388
return true;
402389

403390
}
@@ -508,7 +495,7 @@ private static long getDepFileTimeStamp(IFile curdepFile, IFolder buildPath) {
508495
}
509496
}
510497
reader.close();
511-
} catch (@SuppressWarnings("unused") IOException e) {
498+
} catch ( IOException e) {
512499
e.printStackTrace();
513500
return Long.MAX_VALUE;
514501
}

0 commit comments

Comments
 (0)