Skip to content

Commit ff691d3

Browse files
committed
Remove extra ()
1 parent a83f340 commit ff691d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/codec/language/bm/PhoneticEngineRegressionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ private static String encode(final Map<String, String> args, final boolean conca
263263
// PhoneticEngine = NameType + RuleType + concat
264264
// we use common-codec's defaults: GENERIC + APPROX + true
265265
final String nameTypeArg = args.get("nameType");
266-
final NameType nameType = (nameTypeArg == null) ? NameType.GENERIC : NameType.valueOf(nameTypeArg);
266+
final NameType nameType = nameTypeArg == null ? NameType.GENERIC : NameType.valueOf(nameTypeArg);
267267

268268
final String ruleTypeArg = args.get("ruleType");
269-
final RuleType ruleType = (ruleTypeArg == null) ? RuleType.APPROX : RuleType.valueOf(ruleTypeArg);
269+
final RuleType ruleType = ruleTypeArg == null ? RuleType.APPROX : RuleType.valueOf(ruleTypeArg);
270270

271271
engine = new PhoneticEngine(nameType, ruleType, concat);
272272

0 commit comments

Comments
 (0)