[java-identity-provider COMMIT] /trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/principal/impl/GenericPr...
noreply at shibboleth.net
noreply at shibboleth.net
Tue Jul 8 23:14:16 EDT 2014
Author: scantor
Date: Tue Jul 8 23:14:16 2014
New Revision: 6247
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=6247&view=rev
Log:
Fix log message.
Modified:
trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/principal/impl/GenericPrincipalSerializer.java
Modified: trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/principal/impl/GenericPrincipalSerializer.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/principal/impl/GenericPrincipalSerializer.java?rev=6247&r1=6246&r2=6247&view=diff
==============================================================================
--- trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/principal/impl/GenericPrincipalSerializer.java (original)
+++ trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/principal/impl/GenericPrincipalSerializer.java Tue Jul 8 23:14:16 2014
@@ -109,8 +109,8 @@
principalType.getConstructor(String.class);
compatiblePrincipalTypes.add(principalType);
return true;
- } catch (NoSuchMethodException | SecurityException e) {
- log.warn("Unsupported Principal type will be omitted: {}", principalType.getClass().getName());
+ } catch (final NoSuchMethodException | SecurityException e) {
+ log.warn("Unsupported Principal type will be omitted: {}", principalType.getName());
}
return false;
@@ -176,7 +176,7 @@
final Class<? extends Principal> pclass = Class.forName(type).asSubclass(Principal.class);
final Constructor<? extends Principal> ctor = pclass.getConstructor(String.class);
return ctor.newInstance(name);
- } catch (ClassNotFoundException | NoSuchMethodException | SecurityException
+ } catch (final ClassNotFoundException | NoSuchMethodException | SecurityException
| InstantiationException | IllegalAccessException | IllegalArgumentException
| InvocationTargetException e) {
log.warn("Exception instantiating custom Principal type " + type + " with name " + name, e);
More information about the commits
mailing list