Skip to content

Commit

Permalink
java7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Nov 27, 2016
1 parent 0c975bd commit 02a8082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/spoon/refactoring/Refactoring.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public final class Refactoring {
* New name of the element.
*/
public static void changeTypeName(final CtType<?> type, String name) {
String oldQualifiedName = type.getQualifiedName();
final String oldQualifiedName = type.getQualifiedName();
changeSimpleName(type, name, null, new TypeFilter<CtTypeReference<?>>(CtTypeReference.class) {
@Override
public boolean matches(CtTypeReference<?> reference) {
Expand Down Expand Up @@ -118,7 +118,7 @@ public static void changeFieldName(CtField<?> field, String name) {
//package protected. The reference can be only in this package
container = field.getParent(CtType.class).getTopLevelType().getPackage();
}
String oldQualifiedName = field.getReference().getQualifiedName();
final String oldQualifiedName = field.getReference().getQualifiedName();
changeSimpleName(field, name, container, new TypeFilter<CtFieldReference<?>>(CtFieldReference.class) {
@Override
public boolean matches(CtFieldReference<?> fieldRef) {
Expand Down

0 comments on commit 02a8082

Please sign in to comment.