Skip to content

Commit

Permalink
Merge pull request #5115 from Emkas/javadoc-fixes
Browse files Browse the repository at this point in the history
Various Javadoc fixes
  • Loading branch information
BalusC authored Jun 24, 2022
2 parents 7d050b3 + f0c8c02 commit fa7f65c
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ViewScopeContextObject implements Serializable {
* Constructor.
*
* @param passivationCapableId the return from PassivationCapable.getId().
* @param creationalContext the creational context.
* @param name name of context.
*/
public ViewScopeContextObject(String passivationCapableId, String name) {
this.passivationCapableId = passivationCapableId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ public void applyMetadata(FacesContext facesContext, UIComponent parent) throws
}

/**
* @see com.sun.faces.facelets.Facelet#apply(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent)
* @see jakarta.faces.view.facelets.Facelet#apply(jakarta.faces.context.FacesContext,
* jakarta.faces.component.UIComponent)
*/
@Override
public void apply(FacesContext facesContext, UIComponent parent) throws IOException {
Expand Down Expand Up @@ -300,7 +301,7 @@ public void include(DefaultFaceletContext ctx, UIComponent parent, String path)
/**
* Grabs a DefaultFacelet from referenced DefaultFaceletFacotry
*
* @see DefaultFaceletFactory#getFacelet(URL)
* @see DefaultFaceletFactory#getFacelet(FacesContext,URL)
* @param ctx FaceletContext to pass to the included Facelet
* @param parent UIComponent to apply changes to
* @param url URL source to include Facelet from
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ public String getBehaviorId() {
* <p class="changed_added_2_0">
* </p>
*
* @return
* @see jakarta.faces.view.facelets.TagConfig#getNextHandler()
*/
@Override
Expand All @@ -157,7 +156,6 @@ public FaceletHandler getNextHandler() {
* <p class="changed_added_2_0">
* </p>
*
* @return
* @see jakarta.faces.view.facelets.TagConfig#getTag()
*/
@Override
Expand All @@ -169,7 +167,6 @@ public Tag getTag() {
* <p class="changed_added_2_0">
* </p>
*
* @return
* @see jakarta.faces.view.facelets.TagConfig#getTagId()
*/
@Override
Expand Down
2 changes: 1 addition & 1 deletion impl/src/main/java/jakarta/faces/FacesWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* <p class="changed_added_2_3">
* The expected usage of all subclasses is to provide a constructor that takes an instance of type <code>T</code>, which
* sets the instance variable that is returned from the {@link getWrapped} method.
* sets the instance variable that is returned from the {@link #getWrapped} method.
* </p>
*
* @param <T> the wrapped type.
Expand Down
8 changes: 4 additions & 4 deletions impl/src/main/java/jakarta/faces/FactoryFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,13 @@ public static Object getFactory(String factoryName) throws FacesException {
* This method can be used by implementations to store a factory mapping while parsing the Faces configuration file
* </p>
*
* @throws IllegalArgumentException if <code>factoryName</code> does not identify a standard Jakarta Faces
* factory name
* @throws NullPointerException if <code>factoryname</code> is null
*
* @param factoryName the name to be used in a subsequent call to {@link #getFactory}.
*
* @param implName the fully qualified class name of the factory corresponding to {@code factoryName}.
*
* @throws IllegalArgumentException if <code>factoryName</code> does not identify a standard Jakarta Faces
* factory name
* @throws NullPointerException if <code>factoryname</code> is null
*/
public static void setFactory(String factoryName, String implName) {
FACTORIES_CACHE.getFactoryFinder().addFactory(factoryName, implName);
Expand Down
6 changes: 4 additions & 2 deletions impl/src/main/java/jakarta/faces/application/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,11 @@ public ProjectStage getProjectStage() {
* not breaking existing applications that extend {@link Application}.
* </p>
*
* @param resolver the Jakarta Expression Language resolver to add.
*
* @throws IllegalStateException <span class="changed_modified_2_0_rev_a">if called after the first request to the
* {@link jakarta.faces.webapp.FacesServlet} has been serviced.</span>
*
* @param resolver the Jakarta Expression Language resolver to add.
* @since 1.2
*/
public void addELResolver(ELResolver resolver) {
Expand Down Expand Up @@ -1623,11 +1624,12 @@ public void setSearchExpressionHandler(SearchExpressionHandler searchExpressionH
*
* </div>
*
* @param resolver the SearchKeywordResolver to add.
*
* @throws IllegalStateException if called after the first request to the {@link jakarta.faces.webapp.FacesServlet} has
* been serviced.
* @throws NullPointerException when resolver is null.
*
* @param resolver the SearchKeywordResolver to add.
* @since 2.3
*/
public void addSearchKeywordResolver(SearchKeywordResolver resolver) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ public ApplicationFactory getWrapped() {
* Replace the {@link Application} instance that will be returned for this web application.
* </p>
*
* @throws NullPointerException if <code>application</code> is <code>null</code>.
*
* @param application The replacement {@link Application} instance
*
* @throws NullPointerException if <code>application</code> is <code>null</code>.
*/
public abstract void setApplication(Application application);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ private void initMap(Serializable key) {
* enough.
*
* @param key
* @return
*/
@Override
public Object get(Serializable key) {
Expand Down
2 changes: 1 addition & 1 deletion impl/src/main/java/jakarta/faces/component/UIViewRoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ public boolean getRendersChildren() {
*
* @param context the context for this request
* @param phaseId the {@link PhaseId} of the current phase
* @param isBefore, if true, notify beforePhase listeners. Notify afterPhase listeners otherwise.
* @param isBefore if true, notify beforePhase listeners. Notify afterPhase listeners otherwise.
*/
private void notifyPhaseListeners(FacesContext context, PhaseId phaseId, boolean isBefore) {
PhaseEvent event = createPhaseEvent(context, phaseId);
Expand Down
2 changes: 0 additions & 2 deletions impl/src/test/java/com/sun/faces/config/DigesterFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ private DigesterFactory(boolean isValidating) {
* <p>
* Returns a new <code>DigesterFactory</code> instance that will create a
* non-validating <code>Digester</code> instance.</p>
* @return
*/
public static DigesterFactory newInstance() {
return DigesterFactory.newInstance(false);
Expand Down Expand Up @@ -178,7 +177,6 @@ public static void releaseDigester(Digester toRelease) {
* <p>
* Creates a new <code>Digester</code> instance configured for use with
* Jakarta Faces.</p>
* @return
*/
public Digester createDigester() {
Digester digester = new Digester();
Expand Down
8 changes: 4 additions & 4 deletions impl/src/test/java/com/sun/faces/mock/MockApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ public void publishEvent(FacesContext context,
* jakarta.faces.event.SystemEventListener#processEvent} method must be called
* when events of type <code>systemEventClass</code> are fired.
*
* @throws <code>NullPointerException</code> if any combination of
* @throws NullPointerException if any combination of
* <code>systemEventClass</code>, or <code>listener</code> are
* <code>null</code>.
*
Expand Down Expand Up @@ -566,7 +566,7 @@ public void subscribeToEvent(Class<? extends SystemEvent> systemEventClass,
* jakarta.faces.event.SystemEventListener#processEvent} method must be called
* when events of type <code>systemEventClass</code> are fired.
*
* @throws <code>NullPointerException</code> if any combination of
* @throws NullPointerException if any combination of
* <code>systemEventClass</code>, or <code>listener</code> are
* <code>null</code>.
*
Expand Down Expand Up @@ -600,7 +600,7 @@ public void subscribeToEvent(Class<? extends SystemEvent> systemEventClass,
* jakarta.faces.event.SystemEventListener} to remove from the internal data
* structure.
*
* @throws <code>NullPointerException</code> if any combination of
* @throws NullPointerException if any combination of
* <code>context</code>, <code>systemEventClass</code>, or
* <code>listener</code> are <code>null</code>.
*/
Expand Down Expand Up @@ -639,7 +639,7 @@ public void unsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass,
* jakarta.faces.event.SystemEventListener} to remove from the internal data
* structure.
*
* @throws <code>NullPointerException</code> if any combination of
* @throws NullPointerException if any combination of
* <code>context</code>, <code>systemEventClass</code>, or
* <code>listener</code> are <code>null</code>.
*/
Expand Down
1 change: 0 additions & 1 deletion impl/src/test/java/com/sun/faces/xml/ParseXMLTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public void setUp() throws Exception {

/**
* Return the tests included in this test suite.
* @return
*/
public static Test suite() {
return (new TestSuite(ParseXMLTestCase.class));
Expand Down
4 changes: 0 additions & 4 deletions impl/src/test/java/jakarta/faces/FactoryFinderTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
import junit.framework.Test;
import junit.framework.TestSuite;

/**
* <p>
* Unit tests for {@link UISelectBooleanBase}.</p>
*/
public class FactoryFinderTestCase extends TestCase {

// ------------------------------------------------------------ Constructors
Expand Down
4 changes: 0 additions & 4 deletions impl/src/test/java/jakarta/faces/FactoryFinderTestCase2.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
import junit.framework.Test;
import junit.framework.TestSuite;

/**
* <p>
* Unit tests for {@link UISelectBooleanBase}.</p>
*/
public class FactoryFinderTestCase2 extends TestCase {

// ------------------------------------------------------------ Constructors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void testNonClientBehaviorHolder() throws Exception {

/**
* Test method for
* {@link jakarta.faces.component.UIComponentBase#addClientBehavior(java.lang.String, jakarta.faces.component.behavior.Behavior)}.
* {@link jakarta.faces.component.UIComponentBase#addClientBehavior(java.lang.String, jakarta.faces.component.behavior.ClientBehavior)}.
*/
public void testAddBehavior() {
BehaviorComponent comp = new BehaviorComponent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ public UIViewRootTestCase(String name) {
// ---------------------------------------------------- Overall Test Methods
/**
* Return the tests included in this test suite.
*
* @return
*/
public static Test suite() {
return new TestSuite(UIViewRootTestCase.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ public void setUp() throws Exception {

/**
* Return the tests included in this test suite.
*
* @return
*/
public static Test suite() {
return (new TestSuite(ConfigFileTestCase.class));
Expand Down

0 comments on commit fa7f65c

Please sign in to comment.