Skip to content
Snippets Groups Projects
Commit cd8ce7c1 authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Adding penaty management

parent 13158fb4
No related branches found
No related tags found
No related merge requests found
......@@ -86,10 +86,19 @@ public class Penalties {
} else if ((indexD > -1) && (indexU > -1)) {
mustChange = true;
} else {
String remaining = "";
if (indexD > -1) {
mustChange = mustHandlePenalties == false;
remaining = data.substring(indexD+1);
} else {
mustChange = mustHandlePenalties == true;
remaining = data.substring(indexU+1);
}
if (mustChange == false) {
if (remaining.trim().length() > 0) {
mustChange = true;
}
}
}
} catch (FileException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment