Lines 495-509
Link Here
|
495 |
(classname (jde-import-get-classname name)) |
495 |
(classname (jde-import-get-classname name)) |
496 |
(case-fold-search nil) |
496 |
(case-fold-search nil) |
497 |
(number-of-matches |
497 |
(number-of-matches |
498 |
(substring (count-matches |
498 |
(count-matches |
499 |
(concat "\\b" classname "\\b")) 0 2))) |
499 |
(concat "\\b" classname "\\b")))) |
500 |
(if (or |
500 |
(if (or |
501 |
;; If name is already listed in the set |
501 |
;; If name is already listed in the set |
502 |
;; of required imports... |
502 |
;; of required imports... |
503 |
(member name required-imports) |
503 |
(member name required-imports) |
504 |
;;or the class is not reference in the file |
504 |
;;or the class is not reference in the file |
505 |
;;and is not an import of the whole package i.e. .* |
505 |
;;and is not an import of the whole package i.e. .* |
506 |
(and (< (string-to-number number-of-matches) 2) |
506 |
(and (< number-of-matches 2) |
507 |
(not (string= classname "*"))) |
507 |
(not (string= classname "*"))) |
508 |
;; or imports a class in the current package... |
508 |
;; or imports a class in the current package... |
509 |
(and |
509 |
(and |