Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix annotation #10766

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public static void restrictUsagesInModel(JavaClasses classes) {
public static void restrictUsagesInLogic(JavaClasses classes) {
noClasses().that().resideInAPackage(PACKAGE_ORG_JABREF_LOGIC)
.and().areNotAnnotatedWith(AllowedToUseSwing.class)
.and().areNotAssignableFrom("org.jabref.logic.search.DatabaseSearcherWithBibFilesTest")
.should().dependOnClassesThat().resideInAPackage(PACKAGE_JAVAX_SWING)
.orShould().dependOnClassesThat().haveFullyQualifiedName(CLASS_ORG_JABREF_GLOBALS)
.check(classes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.util.Objects;
import java.util.stream.Stream;

import org.jabref.architecture.AllowedToUseSwing;
import org.jabref.gui.Globals;
import org.jabref.logic.importer.ImportFormatPreferences;
import org.jabref.logic.importer.ParserResult;
Expand Down Expand Up @@ -38,7 +37,6 @@
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

@AllowedToUseSwing("Makes use of Globals because of FullTextSearchRule")
public class DatabaseSearcherWithBibFilesTest {

private static BibEntry titleSentenceCased = new BibEntry(StandardEntryType.Misc)
Expand Down