From 6fdf5ef6eeba50387686082f2dd4d1407a669f39 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 13 Dec 2019 17:14:26 +0100 Subject: [PATCH] Polish contribution See gh-24205 --- .../org/springframework/aop/framework/AdvisedSupport.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java b/spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java index c654811c44a2..b4de26beedfe 100644 --- a/spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java +++ b/spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -287,9 +287,8 @@ public void removeAdvisor(int index) throws AopConfigException { if (advisor instanceof IntroductionAdvisor) { IntroductionAdvisor ia = (IntroductionAdvisor) advisor; // We need to remove introduction interfaces. - Class[] interfaces = ia.getInterfaces(); - for (Class iface : interfaces) { - removeInterface(iface); + for (Class ifc : ia.getInterfaces()) { + removeInterface(ifc); } }