You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/06/01 14:53:13 UTC
(commons-jexl) 12/39: Use final
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git
commit 1d118a8b750636e2930ed02346b0b2c74e380d39
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Jun 1 10:19:15 2024 -0400
Use final
---
.../org/apache/commons/jexl3/internal/introspection/ClassMisc.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/jexl3/internal/introspection/ClassMisc.java b/src/main/java/org/apache/commons/jexl3/internal/introspection/ClassMisc.java
index e28907aa..18699ce1 100644
--- a/src/main/java/org/apache/commons/jexl3/internal/introspection/ClassMisc.java
+++ b/src/main/java/org/apache/commons/jexl3/internal/introspection/ClassMisc.java
@@ -57,7 +57,7 @@ public class ClassMisc {
* @param clazz the root class.
*/
private static void addSuperInterfaces(final Set<Class<?>> superSet, final Class<?> clazz) {
- for (Class<?> inter : clazz.getInterfaces()) {
+ for (final Class<?> inter : clazz.getInterfaces()) {
superSet.add(inter);
addSuperInterfaces(superSet, inter);
}
@@ -78,7 +78,7 @@ public class ClassMisc {
if (baseClass != Object.class && other != Object.class) {
final Set<Class<?>> superSet = new LinkedHashSet<>();
addSuperClasses(superSet, baseClass);
- for (Class<?> superClass : superSet) {
+ for (final Class<?> superClass : superSet) {
if (superClass.isAssignableFrom(other)) {
return superClass;
}
@@ -105,7 +105,7 @@ public class ClassMisc {
addSuperClasses(superSet, baseClass);
// intersect otherClasses
if (otherClasses.length > 0) {
- for (Class<?> other : otherClasses) {
+ for (final Class<?> other : otherClasses) {
// remove classes from $superSet that $other is not assignable to
final Iterator<Class<?>> superClass = superSet.iterator();
while (superClass.hasNext()) {