Skip to content

Commit cf5b3cb

Browse files
committed
Fix capitalization of UncheckedUnParseableFormulaException
This makes it consistent with UnparseableFormulaException.
1 parent 11efdd9 commit cf5b3cb

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/main/java/org/variantsync/diffdetective/error/UncheckedUnParseableFormulaException.java renamed to src/main/java/org/variantsync/diffdetective/error/UncheckedUnparseableFormulaException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/**
44
* Runtime exception for cases in which a formula extracted from a diff cannot be parsed.
55
*/
6-
public class UncheckedUnParseableFormulaException extends RuntimeException {
6+
public class UncheckedUnparseableFormulaException extends RuntimeException {
77
final UnparseableFormulaException inner;
88

9-
public UncheckedUnParseableFormulaException(String message, Exception e) {
9+
public UncheckedUnparseableFormulaException(String message, Exception e) {
1010
super(message, e);
1111
inner = new UnparseableFormulaException(message, e);
1212
}

src/main/java/org/variantsync/diffdetective/feature/ParseErrorListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.antlr.v4.runtime.atn.ATNConfigSet;
88
import org.antlr.v4.runtime.dfa.DFA;
99
import org.tinylog.Logger;
10-
import org.variantsync.diffdetective.error.UncheckedUnParseableFormulaException;
10+
import org.variantsync.diffdetective.error.UncheckedUnparseableFormulaException;
1111

1212
import java.util.BitSet;
1313

@@ -31,7 +31,7 @@ public ParseErrorListener(String formula) {
3131
public void syntaxError(Recognizer<?, ?> recognizer, Object o, int i, int i1, String s, RecognitionException e) {
3232
Logger.warn("syntax error: {} ; {}", s, e);
3333
Logger.warn("formula: {}", formula);
34-
throw new UncheckedUnParseableFormulaException(s, e);
34+
throw new UncheckedUnparseableFormulaException(s, e);
3535
}
3636

3737
@Override

src/main/java/org/variantsync/diffdetective/feature/cpp/CPPDiffLineFormulaExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.prop4j.Node;
77
import org.prop4j.Not;
88
import org.tinylog.Logger;
9-
import org.variantsync.diffdetective.error.UncheckedUnParseableFormulaException;
9+
import org.variantsync.diffdetective.error.UncheckedUnparseableFormulaException;
1010
import org.variantsync.diffdetective.error.UnparseableFormulaException;
1111
import org.variantsync.diffdetective.feature.DiffLineFormulaExtractor;
1212
import org.variantsync.diffdetective.feature.ParseErrorListener;
@@ -56,7 +56,7 @@ public Node extractFormula(final String line) throws UnparseableFormulaException
5656
parser.addErrorListener(new ParseErrorListener(formula));
5757

5858
parsedFormula = parser.expression().accept(new ControllingCExpressionVisitor());
59-
} catch (UncheckedUnParseableFormulaException e) {
59+
} catch (UncheckedUnparseableFormulaException e) {
6060
throw e.inner();
6161
} catch (Exception e) {
6262
Logger.warn(e);

src/main/java/org/variantsync/diffdetective/feature/jpp/JPPDiffLineFormulaExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.antlr.v4.runtime.tree.ParseTree;
66
import org.prop4j.Node;
77
import org.tinylog.Logger;
8-
import org.variantsync.diffdetective.error.UncheckedUnParseableFormulaException;
8+
import org.variantsync.diffdetective.error.UncheckedUnparseableFormulaException;
99
import org.variantsync.diffdetective.error.UnparseableFormulaException;
1010
import org.variantsync.diffdetective.feature.DiffLineFormulaExtractor;
1111
import org.variantsync.diffdetective.feature.ParseErrorListener;
@@ -56,7 +56,7 @@ public Node extractFormula(final String line) throws UnparseableFormulaException
5656
parser.addErrorListener(new ParseErrorListener(formula));
5757
ParseTree tree = parser.expression();
5858
return tree.accept(new ControllingJPPExpressionVisitor());
59-
} catch (UncheckedUnParseableFormulaException e) {
59+
} catch (UncheckedUnparseableFormulaException e) {
6060
throw e.inner();
6161
} catch (Exception e) {
6262
Logger.warn(e);

0 commit comments

Comments
 (0)