Skip to content

Commit a23cefb

Browse files
committed
Eliminated some compiler warnings.
1 parent 8d1e0aa commit a23cefb

5 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎modules/kernel/src/org/apache/axis2/description/AxisOperationFactory.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public static AxisOperation getAxisOperation(int mepURI) throws AxisFault {
7777
}
7878

7979
//FIXME add in the latest MEP URIs AND needs to double check on about the mep we had in 2004
80+
@SuppressWarnings("deprecation")
8081
public static AxisOperation getOperationDescription(String mepURI) throws AxisFault {
8182
AxisOperation abOpdesc;
8283
if (WSDL2Constants.MEP_URI_IN_ONLY.equals(mepURI) ||

‎modules/kernel/src/org/apache/axis2/description/AxisService.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ public AxisService(String name) {
395395
this.name = name;
396396
}
397397

398-
public void addMessageReceiver(String mepURI,
398+
@SuppressWarnings("deprecation")
399+
public void addMessageReceiver(String mepURI,
399400
MessageReceiver messageReceiver) {
400401
if (WSDL2Constants.MEP_URI_IN_ONLY.equals(mepURI)
401402
|| WSDLConstants.WSDL20_2006Constants.MEP_URI_IN_ONLY
@@ -510,7 +511,7 @@ public void addMessageReceiver(String mepURI,
510511
}
511512

512513
public MessageReceiver getMessageReceiver(String mepURL) {
513-
return (MessageReceiver) messageReceivers.get(mepURL);
514+
return messageReceivers.get(mepURL);
514515
}
515516

516517
/**

‎modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ private void extractServiceGroupContextId(MessageContext msgContext) throws Axis
376376
* This method will determine if the MEP indicated by 'mepString' specifies
377377
* a oneway MEP.
378378
*/
379+
@SuppressWarnings("deprecation")
379380
boolean isOneway(String mepString) {
380381
return (mepString.equals(WSDL20_2006Constants.MEP_URI_IN_ONLY)
381382
|| mepString.equals(WSDL20_2004_Constants.MEP_URI_IN_ONLY)

‎modules/kernel/src/org/apache/axis2/util/Utils.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ public static boolean isExplicitlyTrue(MessageContext messageContext, String pro
443443
* Further, in the first lookup, it will cache the looked
444444
* up value so that the subsequent method calls are extremely efficient.
445445
*/
446+
@SuppressWarnings("deprecation")
446447
public static int getAxisSpecifMEPConstant(String messageExchangePattern) {
447448

448449

‎modules/kernel/test/org/apache/axis2/engine/DispatchPhaseTest.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class DispatchPhaseTest extends TestCase {
2929
/**
3030
* Verify capability of isOneway method in DispatchPhase.
3131
*/
32+
@SuppressWarnings("deprecation")
3233
public void testIsOneway() {
3334
String mep = WSDL2Constants.MEP_URI_IN_ONLY;
3435
DispatchPhase phase = new DispatchPhase();

0 commit comments

Comments
 (0)