Author: coheigea
Date: Thu Feb 10 18:03:52 2011
New Revision: 1069502
URL: http://svn.apache.org/viewvc?rev=1069502&view=rev
Log:
JDK 1.5.x compilation fixes.
Modified:
webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/Reference.java
webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/SecurityTokenReference.java
Modified:
webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/Reference.java
URL:
http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/Reference.java?rev=1069502&r1=1069501&r2=1069502&view=diff
==============================================================================
---
webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/Reference.java
(original)
+++
webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/Reference.java
Thu Feb 10 18:03:52 2011
@@ -58,7 +58,7 @@ public class Reference {
String uri = getURI();
// Reference URI cannot be null or empty
- if (uri == null || uri.isEmpty()) {
+ if (uri == null || "".equals(uri)) {
throw new WSSecurityException(
WSSecurityException.INVALID_SECURITY, "badReferenceURI"
);
Modified:
webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/SecurityTokenReference.java
URL:
http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/SecurityTokenReference.java?rev=1069502&r1=1069501&r2=1069502&view=diff
==============================================================================
---
webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/SecurityTokenReference.java
(original)
+++
webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/SecurityTokenReference.java
Thu Feb 10 18:03:52 2011
@@ -786,14 +786,14 @@ public class SecurityTokenReference {
String valueType = getKeyIdentifierValueType();
// ValueType cannot be null
- if (valueType == null || valueType.isEmpty()) {
+ if (valueType == null || "".equals(valueType)) {
throw new WSSecurityException(
WSSecurityException.INVALID_SECURITY, "invalidValueType"
);
}
String encodingType =
getFirstElement().getAttribute("EncodingType");
// Encoding Type must be equal to Base64Binary if it's specified
- if (encodingType != null && !encodingType.isEmpty()
+ if (encodingType != null && !"".equals(encodingType)
&& !BinarySecurity.BASE64_ENCODING.equals(encodingType)) {
throw new WSSecurityException(
WSSecurityException.INVALID_SECURITY,
@@ -804,7 +804,7 @@ public class SecurityTokenReference {
// Encoding type must be specified other than for a SAML Assertion
if (!WSConstants.WSS_SAML_KI_VALUE_TYPE.equals(valueType)
&& !WSConstants.WSS_SAML2_KI_VALUE_TYPE.equals(valueType)
- && (encodingType == null || encodingType.isEmpty())) {
+ && (encodingType == null || "".equals(encodingType))) {
throw new WSSecurityException(
WSSecurityException.INVALID_SECURITY, "noEncodingType"
);