mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-18 23:34:15 +01:00
added constant Version so on the next upgrade this only needs to be updated in one location
Former-commit-id: 2131a7bae9cc75f7d7d727f0ed191f6d90d426d2
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.owasp.dependencycheck.data.lucene;
|
package org.owasp.dependencycheck.data.lucene;
|
||||||
|
|
||||||
|
import org.apache.lucene.util.Version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Lucene utils is a set of utilize written to make constructing Lucene
|
* <p>Lucene utils is a set of utilize written to make constructing Lucene
|
||||||
* queries simpler.</p>
|
* queries simpler.</p>
|
||||||
@@ -26,6 +28,12 @@ package org.owasp.dependencycheck.data.lucene;
|
|||||||
*/
|
*/
|
||||||
public final class LuceneUtils {
|
public final class LuceneUtils {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The current version of Lucene being used. Declaring this one place so an
|
||||||
|
* upgrade doesn't require hunting through the code base.
|
||||||
|
*/
|
||||||
|
public final static Version CURRENT_VERSION = Version.LUCENE_45;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private constructor as this is a utility class.
|
* Private constructor as this is a utility class.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user