struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quaff <...@git.apache.org>
Subject [GitHub] struts pull request: Improve LocalizedTextUtil defend NPE
Date Wed, 11 Mar 2015 01:40:21 GMT
Github user quaff commented on the pull request:

    https://github.com/apache/struts/pull/35#issuecomment-78184739
  
    simplest case
    
    ```java
    import java.util.Locale;
    public class Main {
    	public static void main(String[] args) {
    		System.out.println(LocalizedTextUtil.findText(Main.class, "key",Locale.getDefault(),
"defaultMessage", null, null));
    	}
    }
    ```
    Main.properties
    ```
    key=this is a key
    ```
    
    it will print "this is a key"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message