Skip to content

Commit

Permalink
javadoc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
SingingBush committed Jul 21, 2018
1 parent f443088 commit bd858c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/singingbush/sdl/SdlValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ public class SdlValue<T> {
private final T value;
private final SdlType type;

/**
* Purposely package-private, this constructor is called internally
* by {@link SDL#value}
* @param value the Java type for this SDL value
* @param type the SdlType for this object
*/
SdlValue(final T value, final SdlType type) {
this.value=value;
this.type = type;
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/singingbush/sdl/Tag.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,13 @@ public class Tag implements Serializable {
/**
* Creates an empty tag.
*
* @deprecated As of release 2.0.2, use {@link SDL#tag(String)} instead.
* This constructor will be made package-private in a future release
* @param name The name of this tag
* @throws IllegalArgumentException if the name is not a legal SDL
* identifier. See {@link SDL#validateIdentifier(String)}
*/
@Deprecated
public Tag(String name) {
this("", name);
}
Expand All @@ -365,12 +368,15 @@ public Tag(String name) {
* Creates an empty tag in the given namespace. If the namespace is null
* it will be coerced to an empty String.
*
* @deprecated As of release 2.0.2, use {@link SDL#tag(String)} instead.
* This constructor will be made package-private in a future release
* @param namespace The namespace for this tag
* @param name The name of this tag
* @throws IllegalArgumentException if the name is not a legal SDL
* identifier (see {@link SDL#validateIdentifier(String)}) or the
* namespace is non-blank and is not a legal SDL identifier.
*/
@Deprecated
public Tag(@NotNull final String namespace, @NotNull final String name) {
if(namespace != null && !namespace.isEmpty()) {
SDL.validateIdentifier(namespace);
Expand Down

0 comments on commit bd858c7

Please sign in to comment.