Commits

Anonymous committed f18fe51

- make methods (containsItem, getDelimitedValues, isNonEmpty, getTextMessage)
- non-static
- protected
- they was made non static and protected such that sub-class could overrides, they are being used only in ths class so doesn't warrant to be static

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2873573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits d1622b3

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/interceptor/FileUploadInterceptor.java

      * @param key            - Key to search for.
      * @return true if itemCollection contains the key, false otherwise.
      */
-    private static boolean containsItem(Collection itemCollection, String key) {
+    protected boolean containsItem(Collection itemCollection, String key) {
         return itemCollection.contains(key.toLowerCase());
     }
 
-    private static Set getDelimitedValues(String delimitedString) {
+    protected Set getDelimitedValues(String delimitedString) {
         Set delimitedValues = new HashSet();
         if (delimitedString != null) {
             StringTokenizer stringTokenizer = new StringTokenizer(delimitedString, DEFAULT_DELIMITER);
         return delimitedValues;
     }
 
-    private static boolean isNonEmpty(Object[] objArray) {
+    protected boolean isNonEmpty(Object[] objArray) {
         boolean result = false;
         for (int index = 0; index < objArray.length && !result; index++) {
             if (objArray[index] != null) {
         return result;
     }
 
-    private String getTextMessage(String messageKey, Object[] args, Locale locale) {
+    protected String getTextMessage(String messageKey, Object[] args, Locale locale) {
         if (args == null || args.length == 0) {
             return LocalizedTextUtil.findText(this.getClass(), messageKey, locale);
         } else {