Skip to content

Commit

Permalink
Merge pull request #381 from veraPDF/fixer_config
Browse files Browse the repository at this point in the history
Remove fixId from MetadataFixerConfig
  • Loading branch information
MaximPlusov authored Sep 28, 2023
2 parents 5b6c3f0 + 8de3e62 commit 9b923cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public FeatureExtractorConfig featureExtractorConfig() {
}

public MetadataFixerConfig fixerConfig() {
return FixerFactory.configFromValues(this.prefix, true);
return FixerFactory.configFromValues(this.prefix);
}

public VeraAppConfig appConfig(final VeraAppConfig base) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public void actionPerformed(ActionEvent e) {
}

MetadataFixerConfig fixConf = FixerFactory
.configFromValues(PDFValidationApplication.this.settingsPanel.getFixMetadataPrefix(), true);
.configFromValues(PDFValidationApplication.this.settingsPanel.getFixMetadataPrefix());
try {
configManager.updateFixerConfig(fixConf);
} catch (JAXBException | IOException excep) {
Expand Down
2 changes: 1 addition & 1 deletion gui/src/test/java/org/verapdf/apps/ConfigManagerTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void testUpdateFixerConfig() throws JAXBException, IOException {
ConfigManager newManager = Applications.createTmpConfigManager();
assertNotSame(defaultConfig, newManager.getFixerConfig());
assertEquals(defaultConfig, newManager.getFixerConfig());
MetadataFixerConfig newConfig = FixerFactory.configFromValues("NOT_DEFAULT", !defaultConfig.isFixId());
MetadataFixerConfig newConfig = FixerFactory.configFromValues("NOT_DEFAULT");
newManager.updateFixerConfig(newConfig);
assertNotEquals(defaultConfig, newManager.getFixerConfig());
}
Expand Down

0 comments on commit 9b923cc

Please sign in to comment.