Skip to content

Commit

Permalink
Fix javadoc for Java 8's strict javadoc tool
Browse files Browse the repository at this point in the history
  • Loading branch information
leoherbie committed May 14, 2015
1 parent e7b46f2 commit e753364
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 50 deletions.
44 changes: 21 additions & 23 deletions src/main/java/net/sourceforge/schemaspy/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public Config()
* Construct a configuration from an array of options (e.g. from a command
* line interface).
*
* @param options
* @param argv
*/
public Config(String[] argv)
{
Expand Down Expand Up @@ -239,12 +239,7 @@ public void setGraphvizDir(File graphvizDir) {

/**
* Return the path to Graphviz (used to find the dot executable to run to
* generate ER diagrams).<p/>
*
* Returns {@link #getDefaultGraphvizPath()} if a specific Graphviz path
* was not specified.
*
* @return
* generate ER diagrams).
*/
public File getGraphvizDir() {
if (graphvizDir == null) {
Expand Down Expand Up @@ -795,10 +790,10 @@ public boolean isEncodeCommentsEnabled() {

/**
* If enabled we'll attempt to query/render the number of rows that
* each table contains.<p/>
*
* each table contains.
* <p>
* Defaults to <code>true</code> (enabled).
*
* </p>
* @param enabled
*/
public void setNumRowsEnabled(boolean enabled) {
Expand All @@ -817,10 +812,10 @@ public boolean isNumRowsEnabled() {
}

/**
* If enabled we'll include views in the analysis.<p/>
*
* If enabled we'll include views in the analysis.
* <p>
* Defaults to <code>true</code> (enabled).
*
* </p>
* @param enabled
*/
public void setViewsEnabled(boolean enabled) {
Expand All @@ -840,8 +835,10 @@ public boolean isViewsEnabled() {

/**
* Returns <code>true</code> if metering should be embedded in
* the generated pages.<p/>
* the generated pages.
* <p>
* Defaults to <code>false</code> (disabled).
* </p>
* @return
*/
public boolean isMeterEnabled() {
Expand Down Expand Up @@ -883,7 +880,7 @@ public Pattern getColumnExclusions() {
* Set the columns to exclude from relationship diagrams where the specified
* columns aren't directly referenced by the focal table.
*
* @param columnExclusions regular expression of the columns to
* @param fullColumnExclusions regular expression of the columns to
* exclude
*/
public void setIndirectColumnExclusions(String fullColumnExclusions) {
Expand Down Expand Up @@ -942,7 +939,7 @@ public Pattern getTableInclusions() {

/**
* Set the tables to exclude as a regular expression
* @param tableInclusions
* @param tableExclusions
*/
public void setTableExclusions(String tableExclusions) {
this.tableExclusions = Pattern.compile(tableExclusions);
Expand Down Expand Up @@ -997,10 +994,12 @@ public List<String> getSchemas() {

/**
* Set the name of the {@link SqlFormatter SQL formatter} class to use to
* format SQL into HTML.<p/>
* format SQL into HTML.
* <p>
* The implementation of the class must be made available to the class
* loader, typically by specifying the path to its jar with <em>-dp</em>
* ({@link #setDriverPath(String)}).
* </p>
*/
public void setSqlFormatter(String formatterClassName) {
sqlFormatterClass = formatterClassName;
Expand Down Expand Up @@ -1232,7 +1231,8 @@ public boolean isLowQuality() {
}

/**
* Set the level of logging to perform.<p/>
* Set the level of logging to perform.
* <p>
* The levels in descending order are:
* <ul>
* <li><code>severe</code> (highest - least detail)
Expand All @@ -1243,7 +1243,7 @@ public boolean isLowQuality() {
* <li><code>finer</code>
* <li><code>finest</code> (lowest - most detail)
* </ul>
*
* </p>
* @param logLevel
*/
public void setLogLevel(String logLevel) {
Expand Down Expand Up @@ -1314,7 +1314,7 @@ public void setHasOrphans(boolean hasOrphans) {
}

/**
* @see #setHasOrphans()
* @see #setHasOrphans(boolean)
*
* @return
*/
Expand All @@ -1330,7 +1330,7 @@ public void setHasRoutines(boolean hasRoutines) {
}

/**
* @see #setHasRoutines()
* @see #setHasRoutines(boolean)
*
* @return
*/
Expand Down Expand Up @@ -1358,8 +1358,6 @@ public Properties getDbProperties() throws InvalidConfigurationException {

/**
* Determines the database properties associated with the specified type.
* A call to {@link #setDbProperties(Properties)} is expected after determining
* the complete set of properties.
*
* @param type
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
public class EmptySchemaException extends RuntimeException {
private static final long serialVersionUID = 1L;

/**
* When a message is sufficient
*
* @param msg
*/
public EmptySchemaException() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ public List<TableColumn> getChildColumns() {
/**
* Returns the delete rule for this constraint.
*
* @see {@link java.sql.DatabaseMetaData#importedKeyCascade}
* @see java.sql.DatabaseMetaData#importedKeyCascade
*/
public int getDeleteRule() {
return deleteRule;
}

/**
* Returns <code>true</code> if this constraint should
* <a href='http://en.wikipedia.org/wiki/Cascade_delete'>cascade deletions</code>.
* <a href='http://en.wikipedia.org/wiki/Cascade_delete'>cascade deletions</a>.
*
* @return
*/
Expand Down Expand Up @@ -255,7 +255,7 @@ public String getDeleteRuleAlias() {
/**
* Returns the update rule for this constraint.
*
* @see {@link java.sql.DatabaseMetaData#importedKeyCascade}
* @see java.sql.DatabaseMetaData#importedKeyCascade
*/
public int getUpdateRule() {
return updateRule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ public RemoteTable(Database db, String catalog, String schema, String name, Stri
/**
* Connect to the PK's referenced by this table that live in the original schema
* @param tables
* @param excludeIndirectColumns
* @param excludeColumns
* @throws SQLException
*/
@Override
Expand Down
27 changes: 14 additions & 13 deletions src/main/java/net/sourceforge/schemaspy/model/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,14 @@ public void addCheckConstraint(String constraintName, String text) {
}

/**
* @param rs ResultSet from {@link DatabaseMetaData#getImportedKeys(String, String, String)}
* rs ResultSet from {@link DatabaseMetaData#getImportedKeys(String, String, String)}
* rs.getString("FK_NAME");
* rs.getString("FKCOLUMN_NAME");
* rs.getString("PKTABLE_CAT");
* rs.getString("PKTABLE_SCHEM");
* rs.getString("PKTABLE_NAME");
* rs.getString("PKCOLUMN_NAME");
* @param tables Map
* @param db
* @throws SQLException
*/
protected void addForeignKey(String fkName, String fkColName,
Expand Down Expand Up @@ -683,8 +682,10 @@ public List<TableColumn> getColumns() {
}

/**
* Returns <code>true</code> if this table references no other tables..<p/>
* Returns <code>true</code> if this table references no other tables.
* <p>
* Used in dependency analysis.
* </p>
* @return
*/
public boolean isRoot() {
Expand All @@ -698,8 +699,10 @@ public boolean isRoot() {
}

/**
* Returns <code>true</code> if this table is referenced by no other tables.<p/>
* Returns <code>true</code> if this table is referenced by no other tables.
* <p>
* Used in dependency analysis.
* </p>
* @return
*/
public boolean isLeaf() {
Expand Down Expand Up @@ -904,7 +907,7 @@ public int getNumNonImpliedParents() {
/**
* Remove one foreign key constraint.
*
* <p/>Used during dependency analysis phase.
* <p>Used during dependency analysis phase.</p>
*
* @return
*/
Expand Down Expand Up @@ -997,9 +1000,7 @@ public void setNumRows(long numRows) {
*
* returns -1 if unable to successfully fetch the row count
*
* @param db Database
* @return int
* @throws SQLException
* @return long
*/
protected long fetchNumRows() {
if (isView() || isRemote())
Expand Down Expand Up @@ -1123,7 +1124,7 @@ public void update(TableMeta tableMeta) {
}

/**
* Same as {@link #connectForeignKeys(Map, Database, Properties)},
* Same as {@link #connectForeignKeys(Map)},
* but uses XML-based metadata
*
* @param tableMeta
Expand Down Expand Up @@ -1213,12 +1214,12 @@ public boolean isOrphan(boolean withImpliedRelationships) {

/**
* Compare this table to another table.
* Results are based on 1: identity, 2: table name, 3: schema name<p/>
*
* Results are based on 1: identity, 2: table name, 3: schema name
* <p>
* This implementation was put in place to deal with analyzing multiple
* schemas that contain identically named tables.
*
* @see {@link Comparable#compareTo(Object)}
* </p>
* @see Comparable#compareTo(Object)
*/
public int compareTo(Table other) {
if (other == this) // fast way out
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static String encodeToken(char ch) {

/**
* Returns an HTML-encoded equivalent of the specified tokenized string,
* where tokens such as '<', '>', '\n' and '\r' have been isolated from
* where tokens such as '&lt;', '&gt;', '\n' and '\r' have been isolated from
* other tokens.
*
* @param str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ protected Map<String, Table> getTableMap(Database db)
* keyed by several possible ways to refer to the table.
*
* @param tables
* @param dbName
* @return
*/
protected Map<String, Table> getTableMap(Collection<? extends Table> tables) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public static DotConnectorFinder getInstance() {
/**
*
* @param table Table
* @throws IOException
* @return Set of <code>dot</code> relationships (as {@link DotConnector}s)
*/
public Set<DotConnector> getRelatedConnectors(Table table, boolean includeImplied) {
Expand All @@ -63,7 +62,6 @@ public Set<DotConnector> getRelatedConnectors(Table table, boolean includeImplie
*
* @param table1 Table
* @param table2 Table
* @throws IOException
* @return Set of <code>dot</code> relationships (as {@link DotConnector}s)
*/
public Set<DotConnector> getRelatedConnectors(Table table1, Table table2, boolean includeExcluded, boolean includeImplied) {
Expand Down

0 comments on commit e753364

Please sign in to comment.