From 045501af65c169661a1c38889937eb43ce210cfa Mon Sep 17 00:00:00 2001 From: Calixte Bonsart Date: Fri, 6 Sep 2024 14:48:07 -0400 Subject: [PATCH] fix ForbidCCommentsInMethods --- .../sf/eclipsecs/core/config/configtypes/PropertyUtil.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net.sf.eclipsecs.core/src/net/sf/eclipsecs/core/config/configtypes/PropertyUtil.java b/net.sf.eclipsecs.core/src/net/sf/eclipsecs/core/config/configtypes/PropertyUtil.java index 0eaa5cc62..b6f1fdcc7 100644 --- a/net.sf.eclipsecs.core/src/net/sf/eclipsecs/core/config/configtypes/PropertyUtil.java +++ b/net.sf.eclipsecs.core/src/net/sf/eclipsecs/core/config/configtypes/PropertyUtil.java @@ -54,7 +54,7 @@ private PropertyUtil() { public static boolean hasUnresolvedProperties(String value) throws CheckstyleException { if (value != null) { List props = new ArrayList<>(); - parsePropertyString(value, new ArrayList(), props); + parsePropertyString(value, new ArrayList<>(), props); return !props.isEmpty(); } else { return false; @@ -146,9 +146,7 @@ private static void parsePropertyString(String aValue, List 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$