[ https://issues.apache.org/jira/browse/LUCENE-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shai Erera updated LUCENE-2282: ------------------------------- Attachment: LUCENE-2282.patch Updated TestFileSwitchDirectory to use the constants instead of hard coding "fdt" and "fdx". It couldn't have done that because IFN was package-private, which shows the problem with it. > Expose IndexFileNames as public, and make use of its methods in the code > ------------------------------------------------------------------------ > > Key: LUCENE-2282 > URL: https://issues.apache.org/jira/browse/LUCENE-2282 > Project: Lucene - Java > Issue Type: Improvement > Reporter: Shai Erera > Fix For: 3.1 > > Attachments: LUCENE-2282.patch, LUCENE-2282.patch, LUCENE-2282.patch > > > IndexFileNames is useful for applications that extend Lucene, an in > particular those who extend Directory or IndexWriter. It provides useful > constants and methods to query whether a certain file is a core Lucene file > or not. In addition, IndexFileNames should be used by Lucene's code to > generate segment file names, or query whether a certain file matches a > certain extension. > I'll post the patch shortly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org