From e5f58a16023db0e36e32a021dd16722b38e18f4b Mon Sep 17 00:00:00 2001 From: A Samuel Pottinger Date: Sat, 10 Dec 2022 17:45:19 +0000 Subject: [PATCH] Fix typo on annotationPoint. --- .../mode/java/preproc/PdeParseTreeListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java/src/processing/mode/java/preproc/PdeParseTreeListener.java b/java/src/processing/mode/java/preproc/PdeParseTreeListener.java index 8e10e1c33..f2953b284 100644 --- a/java/src/processing/mode/java/preproc/PdeParseTreeListener.java +++ b/java/src/processing/mode/java/preproc/PdeParseTreeListener.java @@ -566,7 +566,7 @@ public class PdeParseTreeListener extends ProcessingBaseListener { int numChildren = possibleModifiers.getChildCount(); - ParserRuleContext annoationPoint = null; + ParserRuleContext annotationPoint = null; for (int i = 0; i < numChildren; i++) { boolean childIsVisibility; @@ -582,16 +582,16 @@ public class PdeParseTreeListener extends ProcessingBaseListener { boolean isModifier = child instanceof ProcessingParser.ModifierContext; if (isModifier && isAnnotation((ProcessingParser.ModifierContext) child)) { - annoationPoint = (ParserRuleContext) child; + annotationPoint = (ParserRuleContext) child; } } // Insert at start of method or after annoation if (!hasVisibilityModifier) { - if (annoationPoint == null) { + if (annotationPoint == null) { insertBefore(possibleModifiers.getStart(), "public "); } else { - insertAfter(annoationPoint.getStop(), " public "); + insertAfter(annotationPoint.getStop(), " public "); } }