Skip to content

Commit

Permalink
Merge pull request #78 from arjantijms/fix_warnings1
Browse files Browse the repository at this point in the history
fixes two warnings
  • Loading branch information
ggam committed Jun 6, 2018
2 parents 2390bc2 + 059da6c commit f59ce52
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 5 additions & 7 deletions src/main/java/javax/security/enterprise/CallerPrincipal.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,21 @@

import java.security.Principal;

import javax.servlet.http.HttpServletRequest;

/**
* Principal that represents the caller principal associated with the invocation being
* Principal that represents the caller principal associated with the invocation being
* processed by the container (e.g. the current HTTP request).
*/
public class CallerPrincipal implements Principal {

private final String name;

public CallerPrincipal(String name) {
this.name = name;
}

/**
* The name of the caller
*
*
* @return The name of the caller
*/
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
*/
public class IdentityStorePermission extends BasicPermission {

private static final long serialVersionUID = 1254057022829640365L;

/**
* Create an IdentityStorePermission with the specified name.
*
*
* @param name Name of the permission.
* @throws NullPointerException If name is null.
* @throws IllegalArgumentException If name is empty.
Expand All @@ -46,7 +48,7 @@ public IdentityStorePermission(String name) {
* Create an IdentityStorePermission with the specified name.
* No actions are defined for this permission; the action parameter
* should be specified as {code}null{code}.
*
*
* @param name Name of the permission.
* @param action Action for the permission; always null.
* @throws NullPointerException If name is null.
Expand Down

0 comments on commit f59ce52

Please sign in to comment.