Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Oct 19, 2024
1 parent f975adb commit de2138c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private static void handle(int code) {
System.out.println(" - Architecture: " + System.getProperty("os.arch"));
System.out.println(" - Processors: " + Runtime.getRuntime().availableProcessors());
System.out.println(" - Path Separator: " + File.pathSeparator);
System.out.println("Recaf" + JavaVersion.get());
System.out.println("Recaf");
System.out.println(" - Version: " + RecafBuildConfig.VERSION);
System.out.println(" - Build hash: " + RecafBuildConfig.GIT_SHA);
System.out.println(" - Build date: " + RecafBuildConfig.GIT_DATE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,7 @@ public Navigable getOrCreatePathContent(@Nonnull PathNode<?> path, @Nonnull Supp
return createContent(factory);
} else {
// Content by path is already open.
Navigable navigable = children.get(0);
Navigable navigable = children.getFirst();
selectTab(navigable);
navigable.requestFocus();
return navigable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ private void handleLongDurationChange() {
logger.warn("Could not create Java AST model from source of: {} after {}ms", classNameEsc, diff);
astAvailabilityButton.setUnavailable();
} else {
SourceFile result = results.get(0);
SourceFile result = results.getFirst();
if (result instanceof ParseError parseError) {
unit = null;
ParseExceptionResult errResult = (ParseExceptionResult) parseError.getMarkers().getMarkers().get(0);
ParseExceptionResult errResult = (ParseExceptionResult) parseError.getMarkers().getMarkers().getFirst();
logger.warn("Parse error from source of: {} after {}ms, err={}",
classNameEsc, diff, errResult.getMessage());
astAvailabilityButton.setParserError(errResult);
Expand Down

0 comments on commit de2138c

Please sign in to comment.