This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit f084dfaf171904c71bd1c88fc4746756809e121b Author: Josh Tynjala <joshtynj...@apache.org> AuthorDate: Thu Oct 27 15:07:39 2022 -0700 linter: fix null results that should have been a token in TokenQuery classes --- linter/src/main/java/org/apache/royale/linter/MXMLTokenQuery.java | 6 +++--- linter/src/main/java/org/apache/royale/linter/TokenQuery.java | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/linter/src/main/java/org/apache/royale/linter/MXMLTokenQuery.java b/linter/src/main/java/org/apache/royale/linter/MXMLTokenQuery.java index 66eec2b97..cc8f6cf37 100644 --- a/linter/src/main/java/org/apache/royale/linter/MXMLTokenQuery.java +++ b/linter/src/main/java/org/apache/royale/linter/MXMLTokenQuery.java @@ -63,7 +63,7 @@ public class MXMLTokenQuery { } result = token; } - return null; + return result; } /** @@ -113,7 +113,7 @@ public class MXMLTokenQuery { result = token; } } - return null; + return result; } /** @@ -150,7 +150,7 @@ public class MXMLTokenQuery { result = token; } } - return null; + return result; } /** diff --git a/linter/src/main/java/org/apache/royale/linter/TokenQuery.java b/linter/src/main/java/org/apache/royale/linter/TokenQuery.java index b6c1089f4..798e49d0d 100644 --- a/linter/src/main/java/org/apache/royale/linter/TokenQuery.java +++ b/linter/src/main/java/org/apache/royale/linter/TokenQuery.java @@ -100,7 +100,7 @@ public class TokenQuery { } result = token; } - return null; + return result; } /** @@ -201,7 +201,7 @@ public class TokenQuery { result = token; } } - return null; + return result; } /** @@ -255,7 +255,7 @@ public class TokenQuery { result = token; } } - return null; + return result; } /** @@ -292,7 +292,7 @@ public class TokenQuery { result = token; } } - return null; + return result; } /**