- Timestamp:
- 11/04/07 15:46:11 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/descent.core/src/descent/internal/compiler/util/Util.java
r902 r903 392 392 */ 393 393 public final static boolean isJavaFileName(String name) { 394 return hasSuffix(name, SUFFIX_JAVA) || hasSuffix(name, SUFFIX_DI);395 }396 397 private final static boolean hasSuffix(String name, char[] suffix) {398 394 int nameLength = name == null ? 0 : name.length(); 399 int suffixLength = suffix.length;395 int suffixLength = SUFFIX_JAVA.length; 400 396 if (nameLength < suffixLength) return false; 401 397 … … 403 399 char c = name.charAt(nameLength - i - 1); 404 400 int suffixIndex = suffixLength - i - 1; 405 if (c != suffix[suffixIndex] && c != suffix[suffixIndex]) return false;401 if (c != SUFFIX_java[suffixIndex] && c != SUFFIX_JAVA[suffixIndex]) return false; 406 402 } 407 403 return true; 408 404 } 409 410 405 /** 411 406 * Converts a boolean value into Boolean.
