summaryrefslogtreecommitdiff
path: root/javax/security/auth/kerberos/KerberosPrincipal.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/security/auth/kerberos/KerberosPrincipal.java')
-rw-r--r--javax/security/auth/kerberos/KerberosPrincipal.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/javax/security/auth/kerberos/KerberosPrincipal.java b/javax/security/auth/kerberos/KerberosPrincipal.java
index 46da0fa1c..71002a987 100644
--- a/javax/security/auth/kerberos/KerberosPrincipal.java
+++ b/javax/security/auth/kerberos/KerberosPrincipal.java
@@ -1,5 +1,5 @@
/* KerberosPrincipal.java -- a kerberos principal
- Copyright (C) 2006, 2014 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2014, 2015 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -165,6 +165,7 @@ public final class KerberosPrincipal
/**
* Return the name of this principal.
*/
+ @Override
public String getName()
{
return name;
@@ -186,11 +187,13 @@ public final class KerberosPrincipal
return type;
}
+ @Override
public int hashCode()
{
return name.hashCode();
}
+ @Override
public boolean equals(Object other)
{
if (! (other instanceof KerberosPrincipal))
@@ -199,6 +202,7 @@ public final class KerberosPrincipal
return name.equals(kp.name) && type == kp.type;
}
+ @Override
public String toString()
{
// This is what came to mind.