Skip to content

Commit

Permalink
remove unnecessarry modifiers
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Feb 21, 2022
1 parent ba20ce1 commit 0ed303e
Show file tree
Hide file tree
Showing 22 changed files with 125 additions and 118 deletions.
4 changes: 2 additions & 2 deletions api/src/main/java/jakarta/jws/WebParam.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -27,7 +27,7 @@
/**
* The direction in which the parameter flows
*/
public enum Mode {
enum Mode {
IN,
OUT,
INOUT
Expand Down
8 changes: 4 additions & 4 deletions api/src/main/java/jakarta/jws/soap/SOAPBinding.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -27,23 +27,23 @@
/**
* The SOAP binding style
*/
public enum Style {
enum Style {
DOCUMENT,
RPC
};

/**
* The SOAP binding use
*/
public enum Use {
enum Use {
LITERAL,
ENCODED
};

/**
* The style of mapping parameters onto SOAP messages
*/
public enum ParameterStyle {
enum ParameterStyle {
BARE,
WRAPPED
}
Expand Down
10 changes: 7 additions & 3 deletions api/src/main/java/jakarta/xml/ws/Binding.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand All @@ -11,6 +11,10 @@
package jakarta.xml.ws;


import jakarta.xml.ws.handler.Handler;

import java.util.List;

/** The {@code Binding} interface is the base interface
* for Jakarta XML Web Services protocol bindings.
*
Expand All @@ -25,7 +29,7 @@ public interface Binding {
*
* @return {@code java.util.List<Handler>} Handler chain
*/
public java.util.List<jakarta.xml.ws.handler.Handler> getHandlerChain();
List<Handler> getHandlerChain();

/**
* Sets the handler chain for the protocol binding instance.
Expand All @@ -38,7 +42,7 @@ public interface Binding {
* avoid any overriding of a pre-configured handler
* chain.
*/
public void setHandlerChain(java.util.List<jakarta.xml.ws.handler.Handler> chain);
void setHandlerChain(List<Handler> chain);

/**
* Get the URI for this binding instance.
Expand Down
18 changes: 9 additions & 9 deletions api/src/main/java/jakarta/xml/ws/BindingProvider.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -27,14 +27,14 @@ public interface BindingProvider {
* Standard property: User name for authentication.
* <p>Type: {@code java.lang.String}
**/
public static final String USERNAME_PROPERTY =
String USERNAME_PROPERTY =
"jakarta.xml.ws.security.auth.username";

/**
* Standard property: Password for authentication.
* <p>Type: {@code java.lang.String}
**/
public static final String PASSWORD_PROPERTY =
String PASSWORD_PROPERTY =
"jakarta.xml.ws.security.auth.password";

/**
Expand All @@ -44,7 +44,7 @@ public interface BindingProvider {
* binding in use.
* <p>Type: {@code java.lang.String}
**/
public static final String ENDPOINT_ADDRESS_PROPERTY =
String ENDPOINT_ADDRESS_PROPERTY =
"jakarta.xml.ws.service.endpoint.address";

/**
Expand All @@ -56,7 +56,7 @@ public interface BindingProvider {
* The default value for this property is {@code false}.
* <p>Type: {@code java.lang.Boolean}
**/
public static final String SESSION_MAINTAIN_PROPERTY =
String SESSION_MAINTAIN_PROPERTY =
"jakarta.xml.ws.session.maintain";

/**
Expand All @@ -73,7 +73,7 @@ public interface BindingProvider {
*
* <p>Type: {@code java.lang.Boolean}
**/
public static final String SOAPACTION_USE_PROPERTY =
String SOAPACTION_USE_PROPERTY =
"jakarta.xml.ws.soap.http.soapaction.use";

/**
Expand All @@ -86,7 +86,7 @@ public interface BindingProvider {
*
* <p>Type: {@code java.lang.String}
**/
public static final String SOAPACTION_URI_PROPERTY =
String SOAPACTION_URI_PROPERTY =
"jakarta.xml.ws.soap.http.soapaction.uri";

/**
Expand Down Expand Up @@ -141,7 +141,7 @@ public interface BindingProvider {
*
* @since 1.6, JAX-WS 2.1
*/
public EndpointReference getEndpointReference();
EndpointReference getEndpointReference();


/**
Expand All @@ -164,5 +164,5 @@ public interface BindingProvider {
*
* @since 1.6, JAX-WS 2.1
*/
public <T extends EndpointReference> T getEndpointReference(Class<T> clazz);
<T extends EndpointReference> T getEndpointReference(Class<T> clazz);
}
10 changes: 5 additions & 5 deletions api/src/main/java/jakarta/xml/ws/Dispatch.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -39,7 +39,7 @@ public interface Dispatch<T> extends BindingProvider {
* @throws WebServiceException If there is any error in the configuration of
* the {@code Dispatch} instance
**/
public T invoke(T msg);
T invoke(T msg);

/** Invoke a service operation asynchronously. The
* method returns without waiting for the response to the operation
Expand All @@ -57,7 +57,7 @@ public interface Dispatch<T> extends BindingProvider {
* @throws WebServiceException If there is any error in the configuration of
* the {@code Dispatch} instance
**/
public Response<T> invokeAsync(T msg);
Response<T> invokeAsync(T msg);

/** Invoke a service operation asynchronously. The
* method returns without waiting for the response to the operation
Expand All @@ -80,7 +80,7 @@ public interface Dispatch<T> extends BindingProvider {
* @throws WebServiceException If there is any error in the configuration of
* the {@code Dispatch} instance
**/
public Future<?> invokeAsync(T msg, AsyncHandler<T> handler);
Future<?> invokeAsync(T msg, AsyncHandler<T> handler);

/** Invokes a service operation using the one-way
* interaction mode. The operation invocation is logically non-blocking,
Expand All @@ -99,5 +99,5 @@ public interface Dispatch<T> extends BindingProvider {
* the {@code Dispatch} instance or if an error occurs during the
* invocation.
**/
public void invokeOneWay(T msg);
void invokeOneWay(T msg);
}
10 changes: 5 additions & 5 deletions api/src/main/java/jakarta/xml/ws/LogicalMessage.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -36,7 +36,7 @@ public interface LogicalMessage {
* @return The contained message payload; returns {@code null} if no
* payload is present in this message.
**/
public Source getPayload();
Source getPayload();

/** Sets the message payload
*
Expand All @@ -46,7 +46,7 @@ public interface LogicalMessage {
* @throws java.lang.UnsupportedOperationException If this
* operation is not supported
**/
public void setPayload(Source payload);
void setPayload(Source payload);

/** Gets the message payload as a Jakarta XML Binding object. Note that there is no
* connection between the returned object and the message payload,
Expand All @@ -60,7 +60,7 @@ public interface LogicalMessage {
* JAXBContext to unmarshall the payload. The cause of
* the WebServiceException is the original JAXBException.
**/
public Object getPayload(JAXBContext context);
Object getPayload(JAXBContext context);

/** Sets the message payload
*
Expand All @@ -73,5 +73,5 @@ public interface LogicalMessage {
* JAXBContext to marshall the payload. The cause of
* the WebServiceException is the original JAXBException.
**/
public void setPayload(Object payload, JAXBContext context);
void setPayload(Object payload, JAXBContext context);
}
4 changes: 2 additions & 2 deletions api/src/main/java/jakarta/xml/ws/Provider.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -45,5 +45,5 @@ public interface Provider<T> {
* @see jakarta.xml.ws.handler.MessageContext
* @see jakarta.xml.ws.ProtocolException
**/
public T invoke(T request);
T invoke(T request);
}
10 changes: 5 additions & 5 deletions api/src/main/java/jakarta/xml/ws/RequestWrapper.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -36,27 +36,27 @@
* Element's local name.
* @return local name
*/
public String localName() default "";
String localName() default "";

/**
* Element's namespace name.
* @return target namespace name
*/
public String targetNamespace() default "";
String targetNamespace() default "";

/**
* Request wrapper bean name.
* @return bean name
*/
public String className() default "";
String className() default "";

/**
* wsdl:part name for the wrapper part
*
* @return wsdl:part name
* @since 1.7, JAX-WS 2.2
*/
public String partName() default "";
String partName() default "";

}

10 changes: 5 additions & 5 deletions api/src/main/java/jakarta/xml/ws/ResponseWrapper.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -37,27 +37,27 @@
* Element's local name.
* @return local name
*/
public String localName() default "";
String localName() default "";

/**
* Element's namespace name.
* @return target namespace name
*/
public String targetNamespace() default "";
String targetNamespace() default "";

/**
* Response wrapper bean name.
* @return bean name
*/
public String className() default "";
String className() default "";

/**
* wsdl:part name for the wrapper part
*
* @return wsdl:part name
* @since 1.7, JAX-WS 2.2
*/
public String partName() default "";
String partName() default "";

}

4 changes: 2 additions & 2 deletions api/src/main/java/jakarta/xml/ws/ServiceMode.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -36,5 +36,5 @@
*
* @return Service mode.
**/
public Service.Mode value() default Service.Mode.PAYLOAD;
Service.Mode value() default Service.Mode.PAYLOAD;
}
10 changes: 5 additions & 5 deletions api/src/main/java/jakarta/xml/ws/WebFault.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -32,28 +32,28 @@
*
* @return loxL name
*/
public String name() default "";
String name() default "";

/**
* Element's namespace name.
*
* @return target namespace name
*/
public String targetNamespace() default "";
String targetNamespace() default "";

/**
* Fault bean name.
*
* @return bean name
*/
public String faultBean() default "";
String faultBean() default "";

/**
* wsdl:Message's name. Default name is the exception's class name.
*
* @return wsdl:Message's name
* @since 1.7, JAX-WS 2.2
*/
public String messageName() default "";
String messageName() default "";

}

0 comments on commit 0ed303e

Please sign in to comment.