From 7cc4b1eb5973e27a130a8f98f8a13bfda6b6c541 Mon Sep 17 00:00:00 2001 From: Fabian Prasser Date: Tue, 24 Jan 2017 09:52:01 +0100 Subject: [PATCH] Fix typos --- src/main/org/deidentifier/arx/ARXAnonymizer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/org/deidentifier/arx/ARXAnonymizer.java b/src/main/org/deidentifier/arx/ARXAnonymizer.java index 1b94b9f93c..471cd0123e 100644 --- a/src/main/org/deidentifier/arx/ARXAnonymizer.java +++ b/src/main/org/deidentifier/arx/ARXAnonymizer.java @@ -314,21 +314,21 @@ private void checkAfterEncoding(final ARXConfiguration config, final DataManager KAnonymity c = config.getPrivacyModel(KAnonymity.class); // TODO: getDataGeneralized().getDataLength() does not consider data subsets if ((c.getK() > manager.getDataGeneralized().getDataLength()) || (c.getK() < 1)) { - throw new IllegalArgumentException("Parameter k (" + c.getK() + ") musst be >=1 and less or equal than the number of rows (" + manager.getDataGeneralized().getDataLength()+")"); + throw new IllegalArgumentException("Parameter k (" + c.getK() + ") must be >=1 and less or equal than the number of rows (" + manager.getDataGeneralized().getDataLength()+")"); } } if (config.isPrivacyModelSpecified(LDiversity.class)){ for (LDiversity c : config.getPrivacyModels(LDiversity.class)){ // TODO: getDataGeneralized().getDataLength() does not consider data subsets if ((c.getL() > manager.getDataGeneralized().getDataLength()) || (c.getL() < 1)) { - throw new IllegalArgumentException("Parameter l (" + c.getL() + ") musst be >=1 and less or equal than the number of rows (" + manager.getDataGeneralized().getDataLength()+")"); + throw new IllegalArgumentException("Parameter l (" + c.getL() + ") must be >=1 and less or equal than the number of rows (" + manager.getDataGeneralized().getDataLength()+")"); } } } if (config.isPrivacyModelSpecified(DDisclosurePrivacy.class)){ for (DDisclosurePrivacy c : config.getPrivacyModels(DDisclosurePrivacy.class)){ if (c.getD() <= 0) { - throw new IllegalArgumentException("Parameter d (" + c.getD() + ") musst be positive and larger than 0"); + throw new IllegalArgumentException("Parameter d (" + c.getD() + ") must be positive and larger than 0"); } } } @@ -350,7 +350,7 @@ private void checkAfterEncoding(final ARXConfiguration config, final DataManager if (maxLevels[i] > (hierarchyHeights[i] - 1)) { throw new IllegalArgumentException("Invalid maximum generalization for attribute '" + manager.getHierarchies()[i].getName() + "': " + maxLevels[i] + " > " + (hierarchyHeights[i] - 1)); } if (maxLevels[i] < minLevels[i]) { throw new IllegalArgumentException("The minimum generalization for attribute '" + manager.getHierarchies()[i].getName() + - "' has to be lower than or requal to the defined maximum!"); } + "' has to be lower than or equal to the defined maximum!"); } } }