Skip to content

Commit

Permalink
Checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Mar 10, 2020
1 parent 85b2af2 commit 794a652
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jabref/gui/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@
*/
public class JabRefFrame extends BorderPane {

private static final Logger LOGGER = LoggerFactory.getLogger(JabRefFrame.class);

public static final String FRAME_TITLE = "JabRef";

private static final Logger LOGGER = LoggerFactory.getLogger(JabRefFrame.class);

private final SplitPane splitPane = new SplitPane();
private final JabRefPreferences prefs = Globals.prefs;
private final GlobalSearchBar globalSearchBar = new GlobalSearchBar(this, Globals.stateManager);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.function.Predicate;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/jabref/gui/ScreenshotDarkTheme.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
class ScreenshotDarkTheme {

private static final Logger LOGGER = LoggerFactory.getLogger(ScreenshotDarkTheme.class);
final static Path root = Path.of("build/screenshots").toAbsolutePath();
private static final Path ROOT = Path.of("build/screenshots").toAbsolutePath();

@BeforeAll
static void createDirectory() throws IOException {
Expand Down
10 changes: 5 additions & 5 deletions src/test/java/org/jabref/gui/Screenshots.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
class Screenshots {

private static final Logger LOGGER = LoggerFactory.getLogger(Screenshots.class);
final static Path root = Path.of("build/screenshots").toAbsolutePath();
private static final Path ROOT = Path.of("build/screenshots").toAbsolutePath();

@BeforeAll
static void createDirectory() throws IOException {
if (!Files.exists(root)) {
Files.createDirectory(root);
if (!Files.exists(ROOT)) {
Files.createDirectory(ROOT);
}
}

Expand Down Expand Up @@ -65,7 +65,7 @@ public void onStop() {
@Order(1)
void screenshotMainMenu() {
StringBuilder stringBuilder = new StringBuilder();
DebugUtils.saveScreenshot(() -> root.resolve("main-empty.png"), "").apply(stringBuilder);
DebugUtils.saveScreenshot(() -> ROOT.resolve("main-empty.png"), "").apply(stringBuilder);
LOGGER.debug(stringBuilder.toString());
}

Expand All @@ -79,7 +79,7 @@ void screenshotOpenedDatabase(FxRobot robot) throws Exception {
JabRefGUI.getMainFrame().getOpenDatabaseAction().openFile(jabrefAuthorsBib, true);
// give database some time load
robot.interrupt(100);
DebugUtils.saveScreenshot(() -> root.resolve("opened-database.png"), "").apply(stringBuilder);
DebugUtils.saveScreenshot(() -> ROOT.resolve("opened-database.png"), "").apply(stringBuilder);
LOGGER.debug(stringBuilder.toString());
}
}

0 comments on commit 794a652

Please sign in to comment.