Show
Ignore:
Timestamp:
11/04/07 15:46:11 (1 year ago)
Author:
asterite
Message:

Fixed a bug introduced in the last commit...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/descent.core/src/descent/internal/compiler/util/Util.java

    r902 r903  
    392392     */ 
    393393    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) { 
    398394        int nameLength = name == null ? 0 : name.length(); 
    399         int suffixLength = suffix.length; 
     395        int suffixLength = SUFFIX_JAVA.length; 
    400396        if (nameLength < suffixLength) return false; 
    401397 
     
    403399            char c = name.charAt(nameLength - i - 1); 
    404400            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; 
    406402        } 
    407403        return true;     
    408404    } 
    409  
    410405    /** 
    411406     * Converts a boolean value into Boolean.