Skip to content

Commit

Permalink
Readd @deprecated annotation (JabRef#12056)
Browse files Browse the repository at this point in the history
* Readd `@deprecated` annotation

* Fix casing
  • Loading branch information
koppor authored Oct 22, 2024
1 parent a6db811 commit 8cf8959
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,11 @@ private JabRefGuiPreferences() {
}

/**
* Never ever add a call to this method. There should be only one caller.
* All other usages should get the preferences passed (or injected).
* @deprecated Never ever add a call to this method. There should be only one caller.
* All other usages should get the preferences passed (or injected).
* The JabRef team leaves the <code>@deprecated</code> annotation to have IntelliJ listing this method with a strike-through.
*/
@Deprecated
public static JabRefGuiPreferences getInstance() {
if (JabRefGuiPreferences.singleton == null) {
JabRefGuiPreferences.singleton = new JabRefGuiPreferences();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package org.jabref.logic.bibtex;

/**
* Use only if you know what you are doing.
*
* Otherwise, you should implement your functionality as {@link org.jabref.logic.integrity.IntegrityCheck} instead.
* @deprecated Use only if you know what you are doing.
* Otherwise, you should implement your functionality as {@link org.jabref.logic.integrity.IntegrityCheck} instead.
* The JabRef team leaves the <code>@deprecated</code> annotation to have IntelliJ listing this method with a strike-through.
*/
@Deprecated
public class InvalidFieldValueException extends Exception {

public InvalidFieldValueException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,11 @@ public void setLanguageDependentDefaultValues() {
}

/**
* Never ever add a call to this method. There should be only one caller.
* All other usages should get the preferences passed (or injected).
* @deprecated Never ever add a call to this method. There should be only one caller.
* All other usages should get the preferences passed (or injected).
* The JabRef team leaves the <code>@deprecated</code> annotation to have IntelliJ listing this method with a strike-through.
*/
@Deprecated
public static JabRefCliPreferences getInstance() {
if (JabRefCliPreferences.singleton == null) {
JabRefCliPreferences.singleton = new JabRefCliPreferences();
Expand Down

0 comments on commit 8cf8959

Please sign in to comment.