[ https://issues.apache.org/jira/browse/HADOOP-10426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo Nicholas Sze updated HADOOP-10426: ----------------------------------------- Attachment: c10426_20140324.patch c10426_20140324.patch: adds generic type, simplifies Option.processChecksumOpt(..), removes unused FileContext.getFileStatus(..) and fixes various javac warnings. > CreateOpts.getOpt(..) should declare with generic type argument > --------------------------------------------------------------- > > Key: HADOOP-10426 > URL: https://issues.apache.org/jira/browse/HADOOP-10426 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs > Reporter: Tsz Wo Nicholas Sze > Assignee: Tsz Wo Nicholas Sze > Priority: Minor > Attachments: c10426_20140324.patch > > > Similar to CreateOpts.setOpt(..), the CreateOpts.getOpt(..) should also > declare with a generic type parameter <T extends CreateOpts>. Then, all the > casting from CreateOpts to its subclasses can be avoided. -- This message was sent by Atlassian JIRA (v6.2#6252)