You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/11/02 07:24:15 UTC

[GitHub] [shardingsphere] xue2lang commented on issue #13405: class TypedSPIRegistry copy Properties,why use not use Properties.put(key,value) instead of Properties.setProperty(key,value)

xue2lang commented on issue #13405:
URL: https://github.com/apache/shardingsphere/issues/13405#issuecomment-957161323


   Properties only support String value 
   ```java
       public String getProperty(String key) {
           Object oval = super.get(key);
           String sval = (oval instanceof String) ? (String)oval : null;
           return ((sval == null) && (defaults != null)) ? defaults.getProperty(key) : sval;
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org