Skip to content

Commit

Permalink
deprecate setFileTypeIfEmpty with array input (NationalSecurityAgency…
Browse files Browse the repository at this point in the history
  • Loading branch information
cfkoehler authored Mar 22, 2024
1 parent d49ec80 commit 6da1989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/emissary/core/BaseDataObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ public void setFileType(@Nullable final String v) {
}

@Override
@Deprecated(forRemoval = true)
public boolean setFileTypeIfEmpty(final String v, final String[] empties) {
if (isFileTypeEmpty(empties)) {
setFileType(v);
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/emissary/core/IBaseDataObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ enum MergePolicy {
* @param arg1 the value of the filetype to set
* @param arg2 the list of things caller considers equal to being empty
* @return true if it was empty and set
* @deprecated Use {@link #setFileType(String)} instead.
*/
@Deprecated(forRemoval = true)
boolean setFileTypeIfEmpty(String arg1, String[] arg2);

/**
Expand Down

0 comments on commit 6da1989

Please sign in to comment.