You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/06/17 18:14:11 UTC

[tomcat] branch main updated: Fix indent and small bits of other formatting. No functional change.

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 0c94180081 Fix indent and small bits of other formatting. No functional change.
0c94180081 is described below

commit 0c94180081bddad56158374b58bcb326646ae172
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Jun 17 19:13:53 2022 +0100

    Fix indent and small bits of other formatting. No functional change.
    
    Fixes the jakarta.* packages
---
 java/jakarta/ejb/EJBs.java                         |  2 +-
 java/jakarta/persistence/PersistenceContexts.java  |  2 +-
 java/jakarta/persistence/PersistenceUnits.java     |  2 +-
 java/jakarta/servlet/AsyncContext.java             |  3 +-
 java/jakarta/servlet/jsp/HttpJspPage.java          |  2 +-
 java/jakarta/servlet/jsp/el/ELParseException.java  | 36 ++++++++----------
 java/jakarta/servlet/jsp/el/FunctionMapper.java    | 19 +++++-----
 .../servlet/jsp/el/ImplicitObjectELResolver.java   | 44 +++++++++++-----------
 java/jakarta/servlet/jsp/tagext/PageData.java      |  2 +-
 java/jakarta/servlet/jsp/tagext/TagInfo.java       | 31 ++++++---------
 10 files changed, 65 insertions(+), 78 deletions(-)

diff --git a/java/jakarta/ejb/EJBs.java b/java/jakarta/ejb/EJBs.java
index 28a6b7f8fd..5f2647cb17 100644
--- a/java/jakarta/ejb/EJBs.java
+++ b/java/jakarta/ejb/EJBs.java
@@ -25,5 +25,5 @@ import java.lang.annotation.Target;
 @Retention(RetentionPolicy.RUNTIME)
 
 public @interface EJBs {
-   EJB[] value();
+    EJB[] value();
 }
diff --git a/java/jakarta/persistence/PersistenceContexts.java b/java/jakarta/persistence/PersistenceContexts.java
index 2a67d51729..671d117c7c 100644
--- a/java/jakarta/persistence/PersistenceContexts.java
+++ b/java/jakarta/persistence/PersistenceContexts.java
@@ -25,5 +25,5 @@ import java.lang.annotation.Target;
 @Retention(RetentionPolicy.RUNTIME)
 
 public @interface PersistenceContexts {
-   PersistenceContext[] value();
+    PersistenceContext[] value();
 }
diff --git a/java/jakarta/persistence/PersistenceUnits.java b/java/jakarta/persistence/PersistenceUnits.java
index e73860d275..3da4da578e 100644
--- a/java/jakarta/persistence/PersistenceUnits.java
+++ b/java/jakarta/persistence/PersistenceUnits.java
@@ -25,5 +25,5 @@ import java.lang.annotation.Target;
 @Retention(RetentionPolicy.RUNTIME)
 
 public @interface PersistenceUnits {
-   PersistenceUnit[] value();
+    PersistenceUnit[] value();
 }
diff --git a/java/jakarta/servlet/AsyncContext.java b/java/jakarta/servlet/AsyncContext.java
index 80ff5fafa3..859475dfe7 100644
--- a/java/jakarta/servlet/AsyncContext.java
+++ b/java/jakarta/servlet/AsyncContext.java
@@ -150,8 +150,7 @@ public interface AsyncContext {
      * @return the newly created AsyncListener object
      * @throws ServletException if the listener cannot be created
      */
-    <T extends AsyncListener> T createListener(Class<T> clazz)
-    throws ServletException;
+    <T extends AsyncListener> T createListener(Class<T> clazz) throws ServletException;
 
     /**
      * Set the timeout.
diff --git a/java/jakarta/servlet/jsp/HttpJspPage.java b/java/jakarta/servlet/jsp/HttpJspPage.java
index dab56523e6..145b12c57e 100644
--- a/java/jakarta/servlet/jsp/HttpJspPage.java
+++ b/java/jakarta/servlet/jsp/HttpJspPage.java
@@ -55,5 +55,5 @@ public interface HttpJspPage extends JspPage {
      */
     public void _jspService(HttpServletRequest request,
                             HttpServletResponse response)
-       throws ServletException, IOException;
+        throws ServletException, IOException;
 }
diff --git a/java/jakarta/servlet/jsp/el/ELParseException.java b/java/jakarta/servlet/jsp/el/ELParseException.java
index 72a7ef1700..a79fad0fbc 100644
--- a/java/jakarta/servlet/jsp/el/ELParseException.java
+++ b/java/jakarta/servlet/jsp/el/ELParseException.java
@@ -26,27 +26,23 @@ package jakarta.servlet.jsp.el;
 @Deprecated
 public class ELParseException extends ELException {
 
- private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-//-------------------------------------
-  /**
-   * Creates an ELParseException with no detail message.
-   */
-  public ELParseException ()
-  {
-    super ();
-  }
 
-  //-------------------------------------
-  /**
-   * Creates an ELParseException with the provided detail message.
-   *
-   * @param pMessage the detail message
-   **/
-  public ELParseException (String pMessage)
-  {
-    super (pMessage);
-  }
+    /**
+     * Creates an ELParseException with no detail message.
+     */
+    public ELParseException () {
+        super ();
+    }
 
-  //-------------------------------------
+
+    /**
+     * Creates an ELParseException with the provided detail message.
+     *
+     * @param pMessage the detail message
+     */
+    public ELParseException (String pMessage) {
+        super (pMessage);
+    }
 }
diff --git a/java/jakarta/servlet/jsp/el/FunctionMapper.java b/java/jakarta/servlet/jsp/el/FunctionMapper.java
index c97332ab5d..9998961819 100644
--- a/java/jakarta/servlet/jsp/el/FunctionMapper.java
+++ b/java/jakarta/servlet/jsp/el/FunctionMapper.java
@@ -27,14 +27,13 @@ package jakarta.servlet.jsp.el;
  */
 @Deprecated
 public interface FunctionMapper {
-  /**
-   * Resolves the specified local name and prefix into a Java.lang.Method.
-   * Returns null if the prefix and local name are not found.
-   *
-   * @param prefix the prefix of the function, or "" if no prefix.
-   * @param localName the short name of the function
-   * @return the result of the method mapping.  Null means no entry found.
-   **/
-  public java.lang.reflect.Method resolveFunction(String prefix,
-      String localName);
+    /**
+     * Resolves the specified local name and prefix into a Java.lang.Method.
+     * Returns null if the prefix and local name are not found.
+     *
+     * @param prefix the prefix of the function, or "" if no prefix.
+     * @param localName the short name of the function
+     * @return the result of the method mapping.  Null means no entry found.
+     */
+    public java.lang.reflect.Method resolveFunction(String prefix, String localName);
 }
diff --git a/java/jakarta/servlet/jsp/el/ImplicitObjectELResolver.java b/java/jakarta/servlet/jsp/el/ImplicitObjectELResolver.java
index 4ee707c9f0..6d0d35ba92 100644
--- a/java/jakarta/servlet/jsp/el/ImplicitObjectELResolver.java
+++ b/java/jakarta/servlet/jsp/el/ImplicitObjectELResolver.java
@@ -91,28 +91,28 @@ public class ImplicitObjectELResolver extends ELResolver {
                         .getContext(JspContext.class);
                 context.setPropertyResolved(base, property);
                 switch (idx) {
-                case APPLICATIONSCOPE:
-                    return ScopeManager.get(page).getApplicationScope();
-                case COOKIE:
-                    return ScopeManager.get(page).getCookie();
-                case HEADER:
-                    return ScopeManager.get(page).getHeader();
-                case HEADERVALUES:
-                    return ScopeManager.get(page).getHeaderValues();
-                case INITPARAM:
-                    return ScopeManager.get(page).getInitParam();
-                case PAGECONTEXT:
-                    return ScopeManager.get(page).getPageContext();
-                case PAGESCOPE:
-                    return ScopeManager.get(page).getPageScope();
-                case PARAM:
-                    return ScopeManager.get(page).getParam();
-                case PARAM_VALUES:
-                    return ScopeManager.get(page).getParamValues();
-                case REQUEST_SCOPE:
-                    return ScopeManager.get(page).getRequestScope();
-                case SESSION_SCOPE:
-                    return ScopeManager.get(page).getSessionScope();
+                    case APPLICATIONSCOPE:
+                        return ScopeManager.get(page).getApplicationScope();
+                    case COOKIE:
+                        return ScopeManager.get(page).getCookie();
+                    case HEADER:
+                        return ScopeManager.get(page).getHeader();
+                    case HEADERVALUES:
+                        return ScopeManager.get(page).getHeaderValues();
+                    case INITPARAM:
+                        return ScopeManager.get(page).getInitParam();
+                    case PAGECONTEXT:
+                        return ScopeManager.get(page).getPageContext();
+                    case PAGESCOPE:
+                        return ScopeManager.get(page).getPageScope();
+                    case PARAM:
+                        return ScopeManager.get(page).getParam();
+                    case PARAM_VALUES:
+                        return ScopeManager.get(page).getParamValues();
+                    case REQUEST_SCOPE:
+                        return ScopeManager.get(page).getRequestScope();
+                    case SESSION_SCOPE:
+                        return ScopeManager.get(page).getSessionScope();
                 }
             }
         }
diff --git a/java/jakarta/servlet/jsp/tagext/PageData.java b/java/jakarta/servlet/jsp/tagext/PageData.java
index bc47a16845..746053bb14 100644
--- a/java/jakarta/servlet/jsp/tagext/PageData.java
+++ b/java/jakarta/servlet/jsp/tagext/PageData.java
@@ -44,5 +44,5 @@ public abstract class PageData {
      *
      * @return An input stream on the document.
      */
-   public abstract InputStream getInputStream();
+    public abstract InputStream getInputStream();
 }
diff --git a/java/jakarta/servlet/jsp/tagext/TagInfo.java b/java/jakarta/servlet/jsp/tagext/TagInfo.java
index a74ccb4d92..b6ddc9e2dc 100644
--- a/java/jakarta/servlet/jsp/tagext/TagInfo.java
+++ b/java/jakarta/servlet/jsp/tagext/TagInfo.java
@@ -20,29 +20,24 @@ package jakarta.servlet.jsp.tagext;
  * Tag information for a tag in a Tag Library;
  * This class is instantiated from the Tag Library Descriptor file (TLD)
  * and is available only at translation time.
- *
- *
-*/
+ */
 
 public class TagInfo {
 
     /**
      * Static constant for getBodyContent() when it is JSP.
      */
-
     public static final String BODY_CONTENT_JSP = "JSP";
 
     /**
      * Static constant for getBodyContent() when it is Tag dependent.
      */
-
     public static final String BODY_CONTENT_TAG_DEPENDENT = "tagdependent";
 
 
     /**
      * Static constant for getBodyContent() when it is empty.
      */
-
     public static final String BODY_CONTENT_EMPTY = "empty";
 
     /**
@@ -217,7 +212,6 @@ public class TagInfo {
      *
      * @return The (short) name of the tag.
      */
-
     public String getTagName() {
         return tagName;
     }
@@ -230,10 +224,9 @@ public class TagInfo {
      * @return The array of TagAttributeInfo for this tag, or a
      *         zero-length array if the tag has no attributes.
      */
-
-   public TagAttributeInfo[] getAttributes() {
-       return attributeInfo;
-   }
+    public TagAttributeInfo[] getAttributes() {
+        return attributeInfo;
+    }
 
     /**
      * Information on the scripting objects created by this tag at runtime.
@@ -244,14 +237,14 @@ public class TagInfo {
      *     result of getTagExtraInfo().getVariableInfo( data ), otherwise
      *     null.
      */
-   public VariableInfo[] getVariableInfo(TagData data) {
-       VariableInfo[] result = null;
-       TagExtraInfo tei = getTagExtraInfo();
-       if (tei != null) {
-           result = tei.getVariableInfo( data );
-       }
-       return result;
-   }
+    public VariableInfo[] getVariableInfo(TagData data) {
+        VariableInfo[] result = null;
+        TagExtraInfo tei = getTagExtraInfo();
+        if (tei != null) {
+            result = tei.getVariableInfo( data );
+        }
+        return result;
+    }
 
     /**
      * Translation-time validation of the attributes.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org