You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2021/11/23 16:14:52 UTC
[GitHub] [netbeans] mbien commented on a change in pull request #3218: [jackpot] Rewrite "String::replaceAll with dot" inspection to apply to more cases and methods
mbien commented on a change in pull request #3218:
URL: https://github.com/apache/netbeans/pull/3218#discussion_r755291796
##########
File path: java/java.hints/src/org/netbeans/modules/java/hints/bugs/Bundle.properties
##########
@@ -25,10 +25,11 @@ DN_AnnotationsNotRuntime_instanceof={0} does not have runtime Retention, the con
DN_org.netbeans.modules.java.hints.bugs.AnnotationsNotRuntime=Annotations without runtime Retention
DESC_org.netbeans.modules.java.hints.bugs.AnnotationsNotRuntime=Warns about reflective access to annotations with CLASS or SOURCE retentions
-DN_org.netbeans.modules.java.hints.bugs.Tiny.stringReplaceAllDot=String.replaceAll(".", )
-DESC_org.netbeans.modules.java.hints.bugs.Tiny.stringReplaceAllDot=Finds occurrences of calls to String.replaceAll(".", $target), which would replace all characters of the source string with $target.
-ERR_string-replace-all-dot=Call to String.replaceAll(".", $target) is probably undesired
-FIX_string-replace-all-dot=Replace with call to String.replaceAll("\\.", $target)
+DN_org.netbeans.modules.java.hints.bugs.Tiny.singleCharRegex=Single Char Regex
+DESC_org.netbeans.modules.java.hints.bugs.Tiny.singleCharRegex=Finds occurrences of single regex control characters \
+ used as parameter for methods expecting regular expressions and quotes those.
+ERR_single-char-regex=Using a single regex control character as regex is probably undesired
+FIX_single-char-regex=Escape character for regex usage"
Review comment:
good eyes! fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists