Skip to content

Commit

Permalink
add back proxy constants, for improved compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kno10 committed Apr 23, 2018
1 parent 30fa302 commit 67756e1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/de/unihd/dbs/heideltime/standalone/DocumentType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package de.unihd.dbs.heideltime.standalone;

/**
* Legacy constants to transition to the enum at {@link de.unihd.dbs.uima.annotator.heideltime.DocumentType}.
*
* Because we cannot subclass enums, this will not be binary compatible,
* but at least we get compile time compatibility.
*
* @author Erich Schubert
*/
@Deprecated
public final class DocumentType {
/** Use {@link de.unihd.dbs.uima.annotator.heideltime.DocumentType.NARRATIVE} instead. */
@Deprecated
public static final de.unihd.dbs.uima.annotator.heideltime.DocumentType NARRATIVES = de.unihd.dbs.uima.annotator.heideltime.DocumentType.NARRATIVE;

/** Use {@link de.unihd.dbs.uima.annotator.heideltime.DocumentType.NEWS} instead. */
@Deprecated
public static final de.unihd.dbs.uima.annotator.heideltime.DocumentType NEWS = de.unihd.dbs.uima.annotator.heideltime.DocumentType.NEWS;

/** Use {@link de.unihd.dbs.uima.annotator.heideltime.DocumentType.COLLOQUIAL} instead. */
@Deprecated
public static final de.unihd.dbs.uima.annotator.heideltime.DocumentType COLLOQUIAL = de.unihd.dbs.uima.annotator.heideltime.DocumentType.COLLOQUIAL;

/** Use {@link de.unihd.dbs.uima.annotator.heideltime.DocumentType.SCIENTIFIC} instead. */
@Deprecated
public static final de.unihd.dbs.uima.annotator.heideltime.DocumentType SCIENTIFIC = de.unihd.dbs.uima.annotator.heideltime.DocumentType.SCIENTIFIC;
}

0 comments on commit 67756e1

Please sign in to comment.