Skip to content

Commit

Permalink
fix ForbidCCommentsInMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
Calixte authored and Bananeweizen committed Sep 7, 2024
1 parent 7b87f37 commit 045501a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private PropertyUtil() {
public static boolean hasUnresolvedProperties(String value) throws CheckstyleException {
if (value != null) {
List<String> props = new ArrayList<>();
parsePropertyString(value, new ArrayList<String>(), props);
parsePropertyString(value, new ArrayList<>(), props);
return !props.isEmpty();
} else {
return false;
Expand Down Expand Up @@ -146,9 +146,7 @@ private static void parsePropertyString(String aValue, List<String> aFragments,
} else if (aValue.charAt(pos + 1) != '{') {
// peek ahead to see if the next char is a property or not
// not a property: insert the char as a literal
/*
* fragments.addElement(value.substring(pos + 1, pos + 2)); prev = pos + 2;
*/
// fragments.addElement(value.substring(pos + 1, pos + 2)); prev = pos + 2;
if (aValue.charAt(pos + 1) == '$') {
// backwards compatibility two $ map to one mode
aFragments.add("$"); //$NON-NLS-1$
Expand Down

0 comments on commit 045501a

Please sign in to comment.