提交 4a89f575 编写于 作者: K kohsuke

now that we use retrotranslator, these methods are available. Yay!


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1363 71c3de6d-444a-0410-be80-ed276b4c234a
上级 48fa40dc
......@@ -106,7 +106,7 @@ public class User extends AbstractModelObject {
public <T extends UserProperty> T getProperty(Class<T> clazz) {
for (UserProperty p : properties) {
if(clazz.isInstance(p))
return (T)p; // can't use Class.cast as that's 5.0 feature
return clazz.cast(p);
}
return null;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册