Show
Ignore:
Timestamp:
2008-07-03 00:03:15 (6 months ago)
Author:
mosipov
Message:

JavaDoc issues

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/ResourceTypeHandler.java

    r2101 r2151  
    2323import java.util.HashMap; 
    2424import java.util.Map; 
     25 
     26import net.fckeditor.tool.Utils; 
    2527 
    2628/** 
     
    8587         *         represented by the string argument. 
    8688         * @throws IllegalArgumentException 
    87          *             If 'name' is null can't be parsed. 
     89         *            If 'name' is <code>null</code>, empty, or does not exist. 
    8890         */ 
    8991        public static ResourceTypeHandler valueOf(final String name) throws IllegalArgumentException { 
    90                 if (name == null) 
     92                if (Utils.isEmpty(name)) 
    9193                        throw new IllegalArgumentException(); 
    9294 
     
    110112        } 
    111113 
     114        /** 
     115         * Tries to determine ResourceType from string and return {@link #FILE} if 
     116         * provided string is invalid. 
     117         *  
     118         * @param name 
     119         * @return resource type 
     120         */ 
    112121        public static ResourceTypeHandler getDefaultResourceType(final String name) { 
    113122                ResourceTypeHandler rt = getResourceType(name);