8286617: Improve parameter names in javax.lang.model utility visitors

Reviewed-by: iris, jjg
This commit is contained in:
Joe Darcy 2022-05-12 16:35:40 +00:00
parent 2c5d136260
commit 0a6832b24c
3 changed files with 8 additions and 8 deletions

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -64,10 +64,10 @@ public abstract class AbstractElementVisitor14<R, P> extends AbstractElementVisi
* @implSpec Visits a {@code RecordComponentElement} in a manner defined by a
* subclass.
*
* @param t {@inheritDoc}
* @param e {@inheritDoc}
* @param p {@inheritDoc}
* @return {@inheritDoc}
*/
@Override
public abstract R visitRecordComponent(RecordComponentElement t, P p);
public abstract R visitRecordComponent(RecordComponentElement e, P p);
}

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -64,10 +64,10 @@ public abstract class AbstractElementVisitor9<R, P> extends AbstractElementVisit
* @implSpec Visits a {@code ModuleElement} in a manner defined by a
* subclass.
*
* @param t {@inheritDoc}
* @param e {@inheritDoc}
* @param p {@inheritDoc}
* @return {@inheritDoc}
*/
@Override
public abstract R visitModule(ModuleElement t, P p);
public abstract R visitModule(ModuleElement e, P p);
}

@ -117,11 +117,11 @@ public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
* @implSpec The implementation in this class just returns {@link
* #DEFAULT_VALUE}; subclasses will commonly override this method.
*
* @param e the type to process
* @param t the type to process
* @param p a visitor-specified parameter
* @return {@code DEFAULT_VALUE} unless overridden
*/
protected R defaultAction(TypeMirror e, P p) {
protected R defaultAction(TypeMirror t, P p) {
return DEFAULT_VALUE;
}