summary refs log tree commit diff
path: root/crypto/src/pkix/PkixParameters.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/pkix/PkixParameters.cs')
-rw-r--r--crypto/src/pkix/PkixParameters.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crypto/src/pkix/PkixParameters.cs b/crypto/src/pkix/PkixParameters.cs
index 01ed9d4fa..54b077f29 100644
--- a/crypto/src/pkix/PkixParameters.cs
+++ b/crypto/src/pkix/PkixParameters.cs
@@ -833,11 +833,8 @@ namespace Org.BouncyCastle.Pkix
 			{
 				foreach (object obj in prohibitedACAttributes)
 				{
-					if (!(obj is String))
-					{
-						throw new InvalidCastException("All elements of set must be "
-							+ "of type string.");
-					}
+					if (!(obj is string))
+						throw new InvalidCastException("All elements of set must be of type string.");
 				}
 				this.prohibitedACAttributes = new HashSet(prohibitedACAttributes);
 			}