221 @Override |
221 @Override |
222 public void visit(Location o, Location t) { |
222 public void visit(Location o, Location t) { |
223 Archive targetArchive = findArchive(t); |
223 Archive targetArchive = findArchive(t); |
224 if (filter.accepts(o, archive, t, targetArchive)) { |
224 if (filter.accepts(o, archive, t, targetArchive)) { |
225 addDep(o, t); |
225 addDep(o, t); |
226 if (!requires.contains(targetArchive)) { |
226 if (archive != targetArchive && !requires.contains(targetArchive)) { |
227 requires.add(targetArchive); |
227 requires.add(targetArchive); |
228 } |
228 } |
229 } |
229 } |
230 if (targetArchive instanceof JDKArchive) { |
230 if (targetArchive instanceof JDKArchive) { |
231 Profile p = Profile.getProfile(t.getPackageName()); |
231 Profile p = Profile.getProfile(t.getPackageName()); |