Skip to content

Commit

Permalink
style: unused imports, space character, and review adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Nov 20, 2024
1 parent b5174f2 commit 70dbe22
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
7 changes: 3 additions & 4 deletions src/org/omegat/core/data/RealProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ public Map<EntryKey, ITMXEntry> align(final ProjectProperties props, final File
File root = new File(config.getSourceRoot());
List<File> srcFileList = FileUtil.buildFileList(root, true);

AlignFilesCallback alignFilesCallback = new AlignFilesCallback(props, filterMaster, segmenter);
AlignFilesCallback alignFilesCallback = new AlignFilesCallback(props, segmenter, filterMaster);

String srcRoot = config.getSourceRoot();
for (File file : srcFileList) {
Expand Down Expand Up @@ -1944,12 +1944,11 @@ protected String getSegmentTranslation(String id, int segmentIndex, String segme
}

static class AlignFilesCallback implements IAlignCallback {
AlignFilesCallback(ProjectProperties props, FilterMaster filterMaster, Segmenter segmenter) {
AlignFilesCallback(ProjectProperties props, Segmenter segmenter, FilterMaster filterMaster) {
super();
this.config = props;
fm = filterMaster;
this.segmenter = segmenter;

fm = filterMaster;
}

Map<EntryKey, ITMXEntry> data = new TreeMap<>();
Expand Down
1 change: 0 additions & 1 deletion src/org/omegat/core/statistics/FindMatches.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.omegat.core.Core;
import org.omegat.core.data.EntryKey;
import org.omegat.core.data.ExternalTMFactory;
import org.omegat.core.data.ExternalTMX;
Expand Down
2 changes: 0 additions & 2 deletions src/org/omegat/gui/main/ProjectUICommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
import org.omegat.core.Core;
import org.omegat.core.CoreEvents;
import org.omegat.core.KnownException;
import org.omegat.core.data.IProject;
import org.omegat.core.data.ProjectFactory;
import org.omegat.core.data.ProjectProperties;
import org.omegat.core.events.IProjectEventListener;
Expand Down Expand Up @@ -796,7 +795,6 @@ public static void projectClose() {
// commit the current entry first
Core.getEditor().commitAndLeave();

final IProject project = Core.getProject();
new SwingWorker<Void, Void>() {
protected Void doInBackground() throws Exception {
Core.getMainWindow().showStatusMessageRB("MW_STATUS_SAVING");
Expand Down
3 changes: 1 addition & 2 deletions test/src/org/omegat/core/data/TmxComplianceBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ protected void align(IFilter filter, File sourceFile, String inCharset, File tra
fc.setInEncoding(inCharset);
fc.setOutEncoding(outCharset);

RealProject.AlignFilesCallback callback = new RealProject.AlignFilesCallback(props, filterMaster,
segmenter);
RealProject.AlignFilesCallback callback = new RealProject.AlignFilesCallback(props, segmenter, filterMaster);

filter.alignFile(sourceFile, translatedFile, null, fc, callback);

Expand Down
2 changes: 1 addition & 1 deletion test/src/org/omegat/languagetools/FalseFriendsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Language getTargetLanguage() {
return new Language("pl");
}
};
Core.setProject(new NotLoadedProject(){
Core.setProject(new NotLoadedProject() {
public boolean isProjectLoaded() {
return true;
}
Expand Down

0 comments on commit 70dbe22

Please sign in to comment.