Commit f750c13d authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #11486 from izeye:remove-condition

* pr/11486:
  Update copyright header
  Remove unnecessary condition in ConfigurationPropertyName
parents a38d9976 71aad04e
/* /*
* Copyright 2012-2017 the original author or authors. * Copyright 2012-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -409,12 +409,7 @@ public final class ConfigurationPropertyName ...@@ -409,12 +409,7 @@ public final class ConfigurationPropertyName
} }
private static boolean isIndexed(CharSequence element) { private static boolean isIndexed(CharSequence element) {
int length = element.length(); return element.charAt(0) == '[' && element.charAt(element.length() - 1) == ']';
return charAt(element, 0) == '[' && charAt(element, length - 1) == ']';
}
private static char charAt(CharSequence element, int index) {
return (index < element.length() ? element.charAt(index) : 0);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment